diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71972a34..84d8fb1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-php' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: @@ -37,7 +37,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-php' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 10f30916..6b7b74c5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.3.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 858be979..0751bec3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ad938f500376cbcae3299507132eab0c74bdb34628abb43b9be1c74bf72b9772.yml -openapi_spec_hash: da475361c28b843ddd1b45bbea333762 -config_hash: 91d6546a82dc433b7ba1747dbe1ce4a6 +configured_endpoints: 265 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5ac36f138ceb953477f1830fb90a8455ee5fb60bb00b79351f49a0d930a7bb44.yml +openapi_spec_hash: 4925a6c29f19d5958094e6a45fb3cd5a +config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/CHANGELOG.md b/CHANGELOG.md index 693ca29e..becf28b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,264 @@ # Changelog +## 0.3.0 (2026-08-26) + +Full Changelog: [v0.2.0...v0.3.0](https://github.com/onlyfansapi/onlyfansapi-php/compare/v0.2.0...v0.3.0) + +### Features + +* **api:** api update ([649cebb](https://github.com/onlyfansapi/onlyfansapi-php/commit/649cebb8022c3e782064b524be7a303da1647140)) +* **api:** api update ([65663b8](https://github.com/onlyfansapi/onlyfansapi-php/commit/65663b8404cbda2887bac2a9257334c819f56d58)) +* **api:** api update ([47ae1fe](https://github.com/onlyfansapi/onlyfansapi-php/commit/47ae1fe33b05c557090c3a95df993f6801ee7a1b)) +* **api:** api update ([12e9698](https://github.com/onlyfansapi/onlyfansapi-php/commit/12e96984e9fbf5abf8a15bf8435e848277564c11)) +* **api:** api update ([609a680](https://github.com/onlyfansapi/onlyfansapi-php/commit/609a680017f503e0daf35e6f328c9ad7d25b3ffa)) +* **api:** api update ([f058df5](https://github.com/onlyfansapi/onlyfansapi-php/commit/f058df5963a4022f4f4cbf73dcb4817097fe9afe)) +* **api:** api update ([eb6fef4](https://github.com/onlyfansapi/onlyfansapi-php/commit/eb6fef411733907375939931602381e1d19dd086)) +* **api:** api update ([b7b91bb](https://github.com/onlyfansapi/onlyfansapi-php/commit/b7b91bb3d33a311cd000d31a40d5764cfa9591ab)) +* **api:** api update ([f38980a](https://github.com/onlyfansapi/onlyfansapi-php/commit/f38980a7192e8ef2d9fda642de3c7566166461f5)) +* **api:** api update ([be2c133](https://github.com/onlyfansapi/onlyfansapi-php/commit/be2c1338ef9e318d5d7a2141f48a999c6da36493)) +* **api:** api update ([d3fb898](https://github.com/onlyfansapi/onlyfansapi-php/commit/d3fb8986cb08ac0e535e9cdd269f7c784717991f)) +* **api:** api update ([9394f26](https://github.com/onlyfansapi/onlyfansapi-php/commit/9394f2646cc5895487dc8bf377725f22764b80aa)) +* **api:** api update ([3844d8c](https://github.com/onlyfansapi/onlyfansapi-php/commit/3844d8c036a33094b7e5afca92c5d2be91e17950)) +* **api:** api update ([e529286](https://github.com/onlyfansapi/onlyfansapi-php/commit/e5292862cb52981e0368dee55fa74e8da20e0e4e)) +* **api:** api update ([b07985b](https://github.com/onlyfansapi/onlyfansapi-php/commit/b07985b2cd436e49e38677a80d5d82ebb5568692)) +* **api:** api update ([5f77d74](https://github.com/onlyfansapi/onlyfansapi-php/commit/5f77d74c1388c7f3fbf0f66a87958522ec2aa299)) +* **api:** api update ([17d8b9b](https://github.com/onlyfansapi/onlyfansapi-php/commit/17d8b9bf75557dee8ac5b5bc8b93b994c66f24f7)) +* **api:** api update ([a586271](https://github.com/onlyfansapi/onlyfansapi-php/commit/a586271354a046aa924c47d47af0e598318e998a)) +* **api:** api update ([250217e](https://github.com/onlyfansapi/onlyfansapi-php/commit/250217e31bd7c74b9730ad584261a897a10e2178)) +* **api:** api update ([d79c3e2](https://github.com/onlyfansapi/onlyfansapi-php/commit/d79c3e21b18aa6e13557334ab6233ade8ad66c9b)) +* **api:** api update ([bab2d9f](https://github.com/onlyfansapi/onlyfansapi-php/commit/bab2d9f037122c0c24e3ce8c4c9fb888ff2741c0)) +* **api:** api update ([adec362](https://github.com/onlyfansapi/onlyfansapi-php/commit/adec3622e01a4306512ae0d3336bc6941e91b637)) +* **api:** api update ([d63b6bd](https://github.com/onlyfansapi/onlyfansapi-php/commit/d63b6bdb56d60896365cb0adc0978754971b4f19)) +* **api:** api update ([e469d6b](https://github.com/onlyfansapi/onlyfansapi-php/commit/e469d6b5fbf3de9c751b077bbef05c005ab21ce0)) +* **api:** api update ([bb09201](https://github.com/onlyfansapi/onlyfansapi-php/commit/bb092015a9ff8b0eb3987e732f76a4a58a24fe27)) +* **api:** api update ([b43af13](https://github.com/onlyfansapi/onlyfansapi-php/commit/b43af135a371f68ad5507d2332fc284ddb75b37c)) +* **api:** api update ([a4e2a77](https://github.com/onlyfansapi/onlyfansapi-php/commit/a4e2a77495340be69f7663e04694968fc3a59e21)) +* **api:** api update ([072a70f](https://github.com/onlyfansapi/onlyfansapi-php/commit/072a70fe7a78aa54c32294d702d64ab0f708726f)) +* **api:** api update ([73199a7](https://github.com/onlyfansapi/onlyfansapi-php/commit/73199a73c254fd74eb1c036c5c44a56cedb21446)) +* **api:** api update ([d300d06](https://github.com/onlyfansapi/onlyfansapi-php/commit/d300d0647c0a2c92dc887074437798fe2b692b96)) +* **api:** api update ([8f0be8b](https://github.com/onlyfansapi/onlyfansapi-php/commit/8f0be8b779b8161764cd7df5ba5965d31d1fc67c)) +* **api:** api update ([174b910](https://github.com/onlyfansapi/onlyfansapi-php/commit/174b910d828bf6365be93d33196781d02124520f)) +* **api:** api update ([3418d65](https://github.com/onlyfansapi/onlyfansapi-php/commit/3418d65a8e06502120584ba3eb21538b96b13bdc)) +* **api:** api update ([6787b0c](https://github.com/onlyfansapi/onlyfansapi-php/commit/6787b0c1e51389b6ea77d01de5144bd3e29da52f)) +* **api:** api update ([75d7ef5](https://github.com/onlyfansapi/onlyfansapi-php/commit/75d7ef5611997d8f1541a860a0fffe3fa3e86030)) +* **api:** api update ([b0908b5](https://github.com/onlyfansapi/onlyfansapi-php/commit/b0908b5c295d4f5fb0a54e76b58a6005d31dc08b)) +* **api:** api update ([37eb63f](https://github.com/onlyfansapi/onlyfansapi-php/commit/37eb63f1e8c049d477b58395f92fcefa68837bcc)) +* **api:** api update ([3ab3e0a](https://github.com/onlyfansapi/onlyfansapi-php/commit/3ab3e0a286d4eda5b9962872153bbe9a65cfae2b)) +* **api:** api update ([5e16a73](https://github.com/onlyfansapi/onlyfansapi-php/commit/5e16a7324f00eed4c73962fb9dc90964e96f7552)) +* **api:** api update ([61c019b](https://github.com/onlyfansapi/onlyfansapi-php/commit/61c019bd2b0761760f8d140e1ff1caa10cfedea1)) +* **api:** api update ([32cb1cc](https://github.com/onlyfansapi/onlyfansapi-php/commit/32cb1cc4e37894511e12dbf2ae5bbcff3a9821cc)) +* **api:** api update ([7f1715a](https://github.com/onlyfansapi/onlyfansapi-php/commit/7f1715ab6ad12cd9819cf1ccd76e4abb056d8dc0)) +* **api:** api update ([fa881b2](https://github.com/onlyfansapi/onlyfansapi-php/commit/fa881b29695363bc5d1ae42658b045ad7d119bb1)) +* **api:** api update ([ac7c99b](https://github.com/onlyfansapi/onlyfansapi-php/commit/ac7c99bfc3de1609b49a8ba60efb97d06a382f6e)) +* **api:** api update ([2876dc0](https://github.com/onlyfansapi/onlyfansapi-php/commit/2876dc0f8ed146e204cdecf7e84bcb9dfa71d6ca)) +* **api:** api update ([cb0e6e5](https://github.com/onlyfansapi/onlyfansapi-php/commit/cb0e6e5788c5780f9917cbcf6c936e6d361820c6)) +* **api:** api update ([0544581](https://github.com/onlyfansapi/onlyfansapi-php/commit/0544581a8ed77e501a164f773e63d2502e5b0064)) +* **api:** api update ([9eb42a0](https://github.com/onlyfansapi/onlyfansapi-php/commit/9eb42a013bd4f87f61421f415ed00dbfb6e1b105)) +* **api:** api update ([ffa1f6a](https://github.com/onlyfansapi/onlyfansapi-php/commit/ffa1f6a2470dcd30b44583e35992439675222ed2)) +* **api:** api update ([5e66416](https://github.com/onlyfansapi/onlyfansapi-php/commit/5e66416ce9f4d04d05df8c9d2bf9b8b54e2196f6)) +* **api:** api update ([039d65c](https://github.com/onlyfansapi/onlyfansapi-php/commit/039d65c27a24340315c2f9ea69ceef5e0084d88d)) +* **api:** api update ([b61e7c6](https://github.com/onlyfansapi/onlyfansapi-php/commit/b61e7c64315498fb5d5d35f98b5822ceed63b046)) +* **api:** api update ([5c43daf](https://github.com/onlyfansapi/onlyfansapi-php/commit/5c43dafc49b7475aeae313c372ca9e5c9d402312)) +* **api:** api update ([311cc1b](https://github.com/onlyfansapi/onlyfansapi-php/commit/311cc1b9eb87de598596a62e82d985e22d73f0a9)) +* **api:** api update ([6c88fb2](https://github.com/onlyfansapi/onlyfansapi-php/commit/6c88fb2864476935a034c2824d6505db9725a3ab)) +* **api:** api update ([6b7474d](https://github.com/onlyfansapi/onlyfansapi-php/commit/6b7474d551efd5daff9653baf2898d4e3709de2b)) +* **api:** api update ([1073c55](https://github.com/onlyfansapi/onlyfansapi-php/commit/1073c558a06fb83fa81a9ef8206d80bc3e758d57)) +* **api:** api update ([55e6dcb](https://github.com/onlyfansapi/onlyfansapi-php/commit/55e6dcbe8465e15cdf66a9c7f77528221df9236c)) +* **api:** api update ([3b529b0](https://github.com/onlyfansapi/onlyfansapi-php/commit/3b529b0218f273903c12e1c67cb63d4e992e428f)) +* **api:** api update ([2e57646](https://github.com/onlyfansapi/onlyfansapi-php/commit/2e57646d4699460cc99883d47518baf4929fadf2)) +* **api:** api update ([bc3e4e4](https://github.com/onlyfansapi/onlyfansapi-php/commit/bc3e4e40863d31c2e1e8d6c43c6337bd54a4f242)) +* **api:** api update ([9c2f121](https://github.com/onlyfansapi/onlyfansapi-php/commit/9c2f1210e96d24ccae4e47b1447f790b6c0cd503)) +* **api:** api update ([513f9a6](https://github.com/onlyfansapi/onlyfansapi-php/commit/513f9a69f46b4876387931bd012b12a47bd81b9e)) +* **api:** api update ([e04e2fe](https://github.com/onlyfansapi/onlyfansapi-php/commit/e04e2fe5038113ecb1f3ae387a54f533a7f4db6d)) +* **api:** api update ([1ebf3d2](https://github.com/onlyfansapi/onlyfansapi-php/commit/1ebf3d26261574f763c88d701b127f89107b7ba9)) +* **api:** api update ([7fdb212](https://github.com/onlyfansapi/onlyfansapi-php/commit/7fdb2123b81066fb5b145f1d8715eb680faf22e9)) +* **api:** api update ([1b1a08a](https://github.com/onlyfansapi/onlyfansapi-php/commit/1b1a08a72296380a645d50463ea8d063fdf6aa96)) +* **api:** api update ([8b106bf](https://github.com/onlyfansapi/onlyfansapi-php/commit/8b106bfa0cfedc03eda14da7ca4ce9b29cecf1e6)) +* **api:** api update ([4c1271b](https://github.com/onlyfansapi/onlyfansapi-php/commit/4c1271b671f1fe344c4c15a47fdaef7241c675c3)) +* **api:** api update ([7c1b424](https://github.com/onlyfansapi/onlyfansapi-php/commit/7c1b42441cf49a65571471982e3aaf3e45e9dd54)) +* **api:** api update ([3660482](https://github.com/onlyfansapi/onlyfansapi-php/commit/36604823f34aed6e8f14bb7a32faccad6a707cc1)) +* **api:** api update ([fc83887](https://github.com/onlyfansapi/onlyfansapi-php/commit/fc838875ba5abd3da70563bdf0ac5578daab14f1)) +* **api:** api update ([3647532](https://github.com/onlyfansapi/onlyfansapi-php/commit/364753292a163752a586384e7851a2a39545cd67)) +* **api:** api update ([933ceaf](https://github.com/onlyfansapi/onlyfansapi-php/commit/933ceaf62827139dea5d0a4b0e1a9a5d71292dca)) +* **api:** api update ([3d5e3a0](https://github.com/onlyfansapi/onlyfansapi-php/commit/3d5e3a030e281998fe561aa73be901dc9f76143f)) +* **api:** api update ([90cdf7a](https://github.com/onlyfansapi/onlyfansapi-php/commit/90cdf7a3699cd28a8d54aa6285fcfbbd303101a8)) +* **api:** api update ([6e2a066](https://github.com/onlyfansapi/onlyfansapi-php/commit/6e2a066f660fd178d7f6232e3a9ff70a4db21474)) +* **api:** api update ([90dc43f](https://github.com/onlyfansapi/onlyfansapi-php/commit/90dc43fa048189b21615140273803e771e28d33a)) +* **api:** api update ([14ad433](https://github.com/onlyfansapi/onlyfansapi-php/commit/14ad4337809fe6e3e1a49442755e53e01d4eac96)) +* **api:** api update ([df26de6](https://github.com/onlyfansapi/onlyfansapi-php/commit/df26de65574f5e90c4dde64ea62f0dedb655c7ca)) +* **api:** api update ([2e61f17](https://github.com/onlyfansapi/onlyfansapi-php/commit/2e61f17f9bd43e848ac02978e6941e2b6904f747)) +* **api:** api update ([28d9cf5](https://github.com/onlyfansapi/onlyfansapi-php/commit/28d9cf5ed7a55d8214c893fd6401261c2c9811cb)) +* **api:** api update ([e613dcc](https://github.com/onlyfansapi/onlyfansapi-php/commit/e613dcc83abe3ee46b7a856608b46ef86a690ea3)) +* **api:** api update ([fda48ad](https://github.com/onlyfansapi/onlyfansapi-php/commit/fda48ad5d6e2450be64a67e532564f174d87760e)) +* **api:** api update ([1a521c6](https://github.com/onlyfansapi/onlyfansapi-php/commit/1a521c6b2fbbcba6202b29c5d09217149fa87d79)) +* **api:** api update ([4d8fea7](https://github.com/onlyfansapi/onlyfansapi-php/commit/4d8fea7917c3670f2be5f168c9041ff8abb0ede0)) +* **api:** api update ([7c65e34](https://github.com/onlyfansapi/onlyfansapi-php/commit/7c65e34fb796753af717aacfdfc767602e7c3d90)) +* **api:** api update ([43fb611](https://github.com/onlyfansapi/onlyfansapi-php/commit/43fb611720f0c6f1f6881cc76693b182f0ec38d1)) +* **api:** api update ([63b803b](https://github.com/onlyfansapi/onlyfansapi-php/commit/63b803bb16c98fe9cc6263c50812fcfbc840e603)) +* **api:** api update ([5631351](https://github.com/onlyfansapi/onlyfansapi-php/commit/563135152037a9b4b992846f0464b365271b4ce8)) +* **api:** api update ([5a9bc71](https://github.com/onlyfansapi/onlyfansapi-php/commit/5a9bc71f33c8d61cee2ed8d7b7009132c99154e0)) +* **api:** api update ([311b007](https://github.com/onlyfansapi/onlyfansapi-php/commit/311b00787f6fbf95903b82e70ea6b3b604a18ec3)) +* **api:** api update ([ede5ea7](https://github.com/onlyfansapi/onlyfansapi-php/commit/ede5ea75da025bb9726609b583dcc0d193b3b7ed)) +* **api:** api update ([adf4188](https://github.com/onlyfansapi/onlyfansapi-php/commit/adf4188a1f29eed6d71b03218cad7c967b59c720)) +* **api:** api update ([be61b6a](https://github.com/onlyfansapi/onlyfansapi-php/commit/be61b6a7727ac8cefcf79478118479888b15759b)) +* **api:** api update ([204edc4](https://github.com/onlyfansapi/onlyfansapi-php/commit/204edc426c87747e85cad26f75182262b51f71ca)) +* **api:** api update ([e27ee20](https://github.com/onlyfansapi/onlyfansapi-php/commit/e27ee20392191505e3205a1b429ede316b46cb95)) +* **api:** api update ([d4121f8](https://github.com/onlyfansapi/onlyfansapi-php/commit/d4121f8403acd5114255cd43df59a4b132261398)) +* **api:** api update ([dc85f80](https://github.com/onlyfansapi/onlyfansapi-php/commit/dc85f80e4ba9376cfff5c48f086e616a467e048d)) +* **api:** api update ([a4fdaf5](https://github.com/onlyfansapi/onlyfansapi-php/commit/a4fdaf5c384493fed4ad4ee3d3ef5b912ab05128)) +* **api:** api update ([c0ece4e](https://github.com/onlyfansapi/onlyfansapi-php/commit/c0ece4e81d37fca61e9a56a173b5a7a19f24d4df)) +* **api:** api update ([bdedf23](https://github.com/onlyfansapi/onlyfansapi-php/commit/bdedf2395591ddf9bd887cd4b349652b9e81afc5)) +* **api:** api update ([4e57b3d](https://github.com/onlyfansapi/onlyfansapi-php/commit/4e57b3d2445c26ca27da00ba425ba7722bfc7936)) +* **api:** api update ([ccd75bd](https://github.com/onlyfansapi/onlyfansapi-php/commit/ccd75bdce1d0c210f37b7287fa5c0f48acfcfef4)) +* **api:** api update ([12f8cf3](https://github.com/onlyfansapi/onlyfansapi-php/commit/12f8cf3cd6b76587416ad7c27a728e6e1a408883)) +* **api:** api update ([a1a011a](https://github.com/onlyfansapi/onlyfansapi-php/commit/a1a011a29f5c788941c7a61118f7102b4a82b4f2)) +* **api:** api update ([a2d5d88](https://github.com/onlyfansapi/onlyfansapi-php/commit/a2d5d8873f9ab2a1b2300e07523b726d04e54d84)) +* **api:** api update ([fdcc20a](https://github.com/onlyfansapi/onlyfansapi-php/commit/fdcc20a65525cb33c52dd72b1795198b89a3b141)) +* **api:** api update ([cc90cd1](https://github.com/onlyfansapi/onlyfansapi-php/commit/cc90cd1ed3b2e2ea1c884d0000635fb194a5036c)) +* **api:** api update ([02fe111](https://github.com/onlyfansapi/onlyfansapi-php/commit/02fe111bb899a8f5d250487f89b183d2cc6ca030)) +* **api:** api update ([3a98764](https://github.com/onlyfansapi/onlyfansapi-php/commit/3a987641f786dfa1db2f33cc8daba7511f07357d)) +* **api:** api update ([75a59e5](https://github.com/onlyfansapi/onlyfansapi-php/commit/75a59e565544eaed1d54bfaf0313b1ec5257bc2b)) +* **api:** api update ([11e3c2d](https://github.com/onlyfansapi/onlyfansapi-php/commit/11e3c2d33a6ebc0ca136bd04ecc9dee6c64eac5c)) +* **api:** api update ([ac0f9fa](https://github.com/onlyfansapi/onlyfansapi-php/commit/ac0f9fa336c372eb515761f8ff71dd1cf034a6b2)) +* **api:** api update ([f2b56a9](https://github.com/onlyfansapi/onlyfansapi-php/commit/f2b56a91aa23f53a23db23e78ce7e41641667866)) +* **api:** api update ([bebd6e8](https://github.com/onlyfansapi/onlyfansapi-php/commit/bebd6e800d574dd73a70fc46d62a2bef60aa4da9)) +* **api:** api update ([16366f0](https://github.com/onlyfansapi/onlyfansapi-php/commit/16366f08898225796ecee8c1a562538522358437)) +* **api:** api update ([f45d0e0](https://github.com/onlyfansapi/onlyfansapi-php/commit/f45d0e0822eb6229f2d2792081b4481da6f6b0ff)) +* **api:** api update ([464bd11](https://github.com/onlyfansapi/onlyfansapi-php/commit/464bd110cf8c8e347d1e61eedf7cda992d8fd99f)) +* **api:** api update ([492b8ef](https://github.com/onlyfansapi/onlyfansapi-php/commit/492b8ef89b75829bfe16c9ac1f92961ba2f44a2d)) +* **api:** api update ([246fd25](https://github.com/onlyfansapi/onlyfansapi-php/commit/246fd254757217855ee2495f1fb6d481f3298876)) +* **api:** api update ([909fd2a](https://github.com/onlyfansapi/onlyfansapi-php/commit/909fd2adc9b469afd2d2fe97f7c8f58819ccc042)) +* **api:** api update ([0cede97](https://github.com/onlyfansapi/onlyfansapi-php/commit/0cede9771598c0c02e5e8ea135ff7af1ab44088c)) +* **api:** api update ([87e1f1d](https://github.com/onlyfansapi/onlyfansapi-php/commit/87e1f1d8765189fded614610d9f06342428c0a5d)) +* **api:** api update ([bc0d221](https://github.com/onlyfansapi/onlyfansapi-php/commit/bc0d221eeed6d629803c4742ff6e62c6516001a6)) +* **api:** api update ([d779efd](https://github.com/onlyfansapi/onlyfansapi-php/commit/d779efd499622dd95d3d23889ace78cfb374fc33)) +* **api:** api update ([0cbfd57](https://github.com/onlyfansapi/onlyfansapi-php/commit/0cbfd5707ff0a4e6e58726e4968a9e4825f1cfd3)) +* **api:** api update ([e55290e](https://github.com/onlyfansapi/onlyfansapi-php/commit/e55290e6d505256d5f91e3bbacc9745e63fc20a6)) +* **api:** api update ([f074936](https://github.com/onlyfansapi/onlyfansapi-php/commit/f074936f45c6f470c9d7a8490dadaf19df3ce2ed)) +* **api:** api update ([fb98e74](https://github.com/onlyfansapi/onlyfansapi-php/commit/fb98e7447a3fd62777f38ca770495d3251c330a8)) +* **api:** api update ([6fc2d94](https://github.com/onlyfansapi/onlyfansapi-php/commit/6fc2d9436ed70207505b25fd42bdcd4f5941bebe)) +* **api:** api update ([2589b75](https://github.com/onlyfansapi/onlyfansapi-php/commit/2589b753d38c316b7e38a8a2be929b1f9c896489)) +* **api:** api update ([d34ffb3](https://github.com/onlyfansapi/onlyfansapi-php/commit/d34ffb3e97bee8c9c6e45aac31e11145570326c7)) +* **api:** api update ([ce63a6c](https://github.com/onlyfansapi/onlyfansapi-php/commit/ce63a6cae99a93b473db662e9954821d76d17e43)) +* **api:** api update ([a407567](https://github.com/onlyfansapi/onlyfansapi-php/commit/a407567913fc92c2b89574cacd4b6b21cf81ff7f)) +* **api:** api update ([bc70597](https://github.com/onlyfansapi/onlyfansapi-php/commit/bc70597d4983cfd5a4cb775c5143b3adb276e941)) +* **api:** api update ([6d35ebf](https://github.com/onlyfansapi/onlyfansapi-php/commit/6d35ebfc7af999de5b813b1633e2cc40c3b863a9)) +* **api:** api update ([762460f](https://github.com/onlyfansapi/onlyfansapi-php/commit/762460fe9142f0b491befeecbab1487bb1506551)) +* **api:** api update ([a63b3c6](https://github.com/onlyfansapi/onlyfansapi-php/commit/a63b3c6b99eb54c25676c8ef2ebf8cbd3fcb2484)) +* **api:** api update ([b276693](https://github.com/onlyfansapi/onlyfansapi-php/commit/b2766937eb9f017dde188548b2e585c8c65c6998)) +* **api:** api update ([08189b1](https://github.com/onlyfansapi/onlyfansapi-php/commit/08189b15cc816b38194d4ec45d6ffb75fda1f498)) +* **api:** api update ([4fbfeed](https://github.com/onlyfansapi/onlyfansapi-php/commit/4fbfeed12c67c14ff79f8cef11452a9f23251bb5)) +* **api:** api update ([7c86617](https://github.com/onlyfansapi/onlyfansapi-php/commit/7c86617bb4d9b1b1ecdcb82e451d4ba5fa5239c4)) +* **api:** api update ([80b44f7](https://github.com/onlyfansapi/onlyfansapi-php/commit/80b44f742ee51c29f46706f23435d10fedef7a1a)) +* **api:** api update ([f05d0aa](https://github.com/onlyfansapi/onlyfansapi-php/commit/f05d0aa1ed5f84d65f2057ae144be24493375140)) +* **api:** api update ([fa45fa3](https://github.com/onlyfansapi/onlyfansapi-php/commit/fa45fa3a4ca46f2d14c8350880ad39aef8526bb7)) +* **api:** api update ([133644e](https://github.com/onlyfansapi/onlyfansapi-php/commit/133644ea2b8d697daa21eb26d37c092364bc0f61)) +* **api:** api update ([868e12d](https://github.com/onlyfansapi/onlyfansapi-php/commit/868e12d53ee830219a36981bfccc37c87da6f751)) +* **api:** api update ([2762457](https://github.com/onlyfansapi/onlyfansapi-php/commit/2762457f61c3545917b55f5493e20327e39fb56d)) +* **api:** api update ([a592b01](https://github.com/onlyfansapi/onlyfansapi-php/commit/a592b01dec40e5b5a6d88e21bc6bdc85973c741a)) +* **api:** api update ([321e302](https://github.com/onlyfansapi/onlyfansapi-php/commit/321e30286c5efe04dcdeff3ed05f44ea5e062a0c)) +* **api:** api update ([42fc2bb](https://github.com/onlyfansapi/onlyfansapi-php/commit/42fc2bbe2222e32343c8c5d37cf7b0f2869aa6b8)) +* **api:** api update ([d1494f6](https://github.com/onlyfansapi/onlyfansapi-php/commit/d1494f69402115a9b1442f4b2176a1e004e99ea6)) +* **api:** api update ([88c2852](https://github.com/onlyfansapi/onlyfansapi-php/commit/88c2852879b03d27ceef9a4c1e60839639ddfec8)) +* **api:** api update ([ab4f7c9](https://github.com/onlyfansapi/onlyfansapi-php/commit/ab4f7c96633d17c0faf0b750c3320aae01623e0c)) +* **api:** api update ([509b643](https://github.com/onlyfansapi/onlyfansapi-php/commit/509b643d97404e7d05c331df2d079472e814acaa)) +* **api:** api update ([50dc093](https://github.com/onlyfansapi/onlyfansapi-php/commit/50dc0935f4dd372dbace5caa21e36d2f85cadc2c)) +* **api:** api update ([8f416b9](https://github.com/onlyfansapi/onlyfansapi-php/commit/8f416b9bd3e7566bc669d8e9122967b0b36de383)) +* **api:** api update ([4edd87e](https://github.com/onlyfansapi/onlyfansapi-php/commit/4edd87e75d1b6e35cf9254145db0e2f262bca93c)) +* **api:** api update ([02c7518](https://github.com/onlyfansapi/onlyfansapi-php/commit/02c7518ec14f5868171160820372b1d5845c5920)) +* **api:** api update ([622c186](https://github.com/onlyfansapi/onlyfansapi-php/commit/622c186ed54d9abc05695d54c274097d4b9f4238)) +* **api:** api update ([8d6d088](https://github.com/onlyfansapi/onlyfansapi-php/commit/8d6d088dbaf7e08d97a7170b9a6ffc115aceb0c5)) +* **api:** api update ([7d1b31b](https://github.com/onlyfansapi/onlyfansapi-php/commit/7d1b31bc792dc7aecd6e62b6dfbcd77d7a33773b)) +* **api:** api update ([83a6511](https://github.com/onlyfansapi/onlyfansapi-php/commit/83a651119f5d55a15228c3d741c6ebf79d3e0359)) +* **api:** api update ([abf585e](https://github.com/onlyfansapi/onlyfansapi-php/commit/abf585e37f7bffdb0cdb9c688456d7bd4a0c6689)) +* **api:** api update ([9b0b7b0](https://github.com/onlyfansapi/onlyfansapi-php/commit/9b0b7b0b3d4372df0a7375a14d6862b1bfad6ee3)) +* **api:** api update ([aa7542f](https://github.com/onlyfansapi/onlyfansapi-php/commit/aa7542f7a03057cfef5a44cd14d47c99aa1ff644)) +* **api:** api update ([5cda4df](https://github.com/onlyfansapi/onlyfansapi-php/commit/5cda4df3332856944967edce81b5e5c11c58fc75)) +* **api:** api update ([d0ba057](https://github.com/onlyfansapi/onlyfansapi-php/commit/d0ba0578aae69a3765ce4f77aae6ee194be0ca4c)) +* **api:** api update ([df6b350](https://github.com/onlyfansapi/onlyfansapi-php/commit/df6b350cb9735678d361f97bb3fd078be605c6cd)) +* **api:** api update ([b2cae90](https://github.com/onlyfansapi/onlyfansapi-php/commit/b2cae90f3efc9c3656c38732870d27126b4521cc)) +* **api:** api update ([fc8995f](https://github.com/onlyfansapi/onlyfansapi-php/commit/fc8995fc637a3c95aa1ad77a3868e864ccc95543)) +* **api:** api update ([d151489](https://github.com/onlyfansapi/onlyfansapi-php/commit/d15148976bf50d331ce34a983ff72f52f119cabc)) +* **api:** api update ([3b1d09c](https://github.com/onlyfansapi/onlyfansapi-php/commit/3b1d09c2cd6c88886dfe193831a4963f8e66896c)) +* **api:** api update ([9b3e791](https://github.com/onlyfansapi/onlyfansapi-php/commit/9b3e791374ee71191e9ef674f0f3c64b76cce003)) +* **api:** api update ([c4fbab6](https://github.com/onlyfansapi/onlyfansapi-php/commit/c4fbab615f81360e60b2fb4c66bdce2ac1a94970)) +* **api:** api update ([0f0d67c](https://github.com/onlyfansapi/onlyfansapi-php/commit/0f0d67c06cea567a023b1d8531c9e01af6df82e8)) +* **api:** api update ([66163a6](https://github.com/onlyfansapi/onlyfansapi-php/commit/66163a6c7f9ae3860a1990e76752487ad8086c49)) +* **api:** api update ([d016d26](https://github.com/onlyfansapi/onlyfansapi-php/commit/d016d26b516c610bd4ce7fadb710f1c9a655f171)) +* **api:** api update ([de53aff](https://github.com/onlyfansapi/onlyfansapi-php/commit/de53aff347fc0ac42d74df5d742453349f07a338)) +* **api:** api update ([411b946](https://github.com/onlyfansapi/onlyfansapi-php/commit/411b94600cb1b57f1a82e50fd7ae7b6b23eacadc)) +* **api:** api update ([6274863](https://github.com/onlyfansapi/onlyfansapi-php/commit/6274863a01d8f196d7161adb081950f8fb6a4cf2)) +* **api:** api update ([413b8c1](https://github.com/onlyfansapi/onlyfansapi-php/commit/413b8c184c72d4839268efcef0b36140f52be3ce)) +* **api:** api update ([17830d7](https://github.com/onlyfansapi/onlyfansapi-php/commit/17830d7f13f67aa3456198cf87eee4a99ac7adcd)) +* **api:** api update ([d5abe7f](https://github.com/onlyfansapi/onlyfansapi-php/commit/d5abe7fb186a1eb5e11aa97524514b5320b4b066)) +* **api:** api update ([8c42ee6](https://github.com/onlyfansapi/onlyfansapi-php/commit/8c42ee64c4e82dd2893bd408b25a211760f1113d)) +* **api:** api update ([089f32a](https://github.com/onlyfansapi/onlyfansapi-php/commit/089f32a50b050a188236a80363fb918eb75c48ab)) +* **api:** api update ([5ebb20b](https://github.com/onlyfansapi/onlyfansapi-php/commit/5ebb20be8adb36f4457e71d97d6cb47de24e5d9f)) +* **api:** api update ([3349342](https://github.com/onlyfansapi/onlyfansapi-php/commit/334934272f9a77f31aeaa8d548fc99b61a93f3a8)) +* **api:** api update ([3614d93](https://github.com/onlyfansapi/onlyfansapi-php/commit/3614d93baa388d8908cc8cad2160daf382d0692d)) +* **api:** api update ([c7900af](https://github.com/onlyfansapi/onlyfansapi-php/commit/c7900afc8be139d1204c5af45a6cf2239d03d512)) +* **api:** api update ([d14348f](https://github.com/onlyfansapi/onlyfansapi-php/commit/d14348f5024c0fcf482889f6cca6091dd9d50221)) +* **api:** api update ([7854d50](https://github.com/onlyfansapi/onlyfansapi-php/commit/7854d50822d1850e8362b0f2f89e71b45ad98f9b)) +* **api:** api update ([8f2de97](https://github.com/onlyfansapi/onlyfansapi-php/commit/8f2de97025328d9c9e5106ebf41e6d3b00cc4c07)) +* **api:** api update ([e4222da](https://github.com/onlyfansapi/onlyfansapi-php/commit/e4222dafa844e85800a60a5113c925e58ef50090)) +* **api:** api update ([241af94](https://github.com/onlyfansapi/onlyfansapi-php/commit/241af94cde44cb7954b2a99b91bef32fc1c969ad)) +* **api:** api update ([5a89776](https://github.com/onlyfansapi/onlyfansapi-php/commit/5a8977693529bca2803a66586bffe38ba8763453)) +* **api:** api update ([ea0d119](https://github.com/onlyfansapi/onlyfansapi-php/commit/ea0d1195bcb5930ff82a4528c11d6c7b7521cb6c)) +* **api:** api update ([8816948](https://github.com/onlyfansapi/onlyfansapi-php/commit/881694852a614ed09c77ad922cacfa46dee98e36)) +* **api:** api update ([a1cb6f0](https://github.com/onlyfansapi/onlyfansapi-php/commit/a1cb6f001508c421e91ca0c01087f4e2ffbcedeb)) +* **api:** api update ([64a0147](https://github.com/onlyfansapi/onlyfansapi-php/commit/64a01471553792208a2e1d71b8f0a1a5b912e79e)) +* **api:** api update ([aac1edf](https://github.com/onlyfansapi/onlyfansapi-php/commit/aac1edf29a337f9eadff734230a30276d1152825)) +* **api:** api update ([25c90af](https://github.com/onlyfansapi/onlyfansapi-php/commit/25c90afc6bdfcee343e6c1823612ba24b31a5a3c)) +* **api:** api update ([b8e24d1](https://github.com/onlyfansapi/onlyfansapi-php/commit/b8e24d103b3bac9a421fe448ed681feb7d893313)) +* **api:** api update ([4280617](https://github.com/onlyfansapi/onlyfansapi-php/commit/428061742e3ddd2355a3c8b03ed4d1d7a04be836)) +* **api:** api update ([9b2b115](https://github.com/onlyfansapi/onlyfansapi-php/commit/9b2b115d02535e2542f2164eed9b2cc259ddc2a5)) +* **api:** api update ([71d4210](https://github.com/onlyfansapi/onlyfansapi-php/commit/71d4210a6cac23be4d7529548e2f0fc1e2023971)) +* **api:** api update ([90dd8e0](https://github.com/onlyfansapi/onlyfansapi-php/commit/90dd8e01337f27a326fc2602614cc19c5ce3db0a)) +* **api:** api update ([c6a50ce](https://github.com/onlyfansapi/onlyfansapi-php/commit/c6a50cefc4e7841499c092446deb1ee26b274d25)) +* **api:** api update ([19acccf](https://github.com/onlyfansapi/onlyfansapi-php/commit/19acccf39ac8c0ebf3ecc73c132b61266c26ebc4)) +* **api:** api update ([6c6d5e6](https://github.com/onlyfansapi/onlyfansapi-php/commit/6c6d5e61c3ec8a8da79936e1a8b01fbcf7b0df69)) +* **api:** api update ([14a80f6](https://github.com/onlyfansapi/onlyfansapi-php/commit/14a80f6188eaaec670403e0aeb6b581b0b0e5d6f)) +* **api:** api update ([1d2e5c8](https://github.com/onlyfansapi/onlyfansapi-php/commit/1d2e5c84c3c5d191f22bd07eb5c7fc6bb90aae11)) +* **api:** api update ([6fdab28](https://github.com/onlyfansapi/onlyfansapi-php/commit/6fdab283d9e34a0ebbd0c16f8bd279b8e359e258)) +* **api:** api update ([77b0151](https://github.com/onlyfansapi/onlyfansapi-php/commit/77b0151c0213f328df0f0aac7fd44bf5bf9c2f70)) +* **api:** api update ([a4a09a6](https://github.com/onlyfansapi/onlyfansapi-php/commit/a4a09a64f6dc27355e543ad3953e636a28e8fdf9)) +* **api:** api update ([0f088f5](https://github.com/onlyfansapi/onlyfansapi-php/commit/0f088f513642c5529a783199dd64f2ce8c8e4230)) +* **api:** api update ([8e1f537](https://github.com/onlyfansapi/onlyfansapi-php/commit/8e1f5379384bdf367d9cfc2c03602508f94f6336)) +* **api:** api update ([2666e0b](https://github.com/onlyfansapi/onlyfansapi-php/commit/2666e0be7997782696ec390d69ab3f050cf52489)) +* **api:** api update ([220694c](https://github.com/onlyfansapi/onlyfansapi-php/commit/220694c485a0161bee8d450cd84015ecf8708b5c)) +* **api:** api update ([75cb872](https://github.com/onlyfansapi/onlyfansapi-php/commit/75cb87233d33df903f3def9ecdf55d127944b3ed)) +* **api:** api update ([2ee574d](https://github.com/onlyfansapi/onlyfansapi-php/commit/2ee574d033d7c8bb9abdfd7c3d81821c00cb4d2e)) +* **api:** api update ([e3ff810](https://github.com/onlyfansapi/onlyfansapi-php/commit/e3ff8106fdcde19729265f1b1d5ff04337979b07)) +* **api:** api update ([347d1c0](https://github.com/onlyfansapi/onlyfansapi-php/commit/347d1c065fcf3ad0e1f8986d3cb8a1e1e65ea4ea)) +* **api:** api update ([3465acb](https://github.com/onlyfansapi/onlyfansapi-php/commit/3465acbd130e62466671d2b3e370bbecd67535f9)) +* **api:** api update ([c7f9d31](https://github.com/onlyfansapi/onlyfansapi-php/commit/c7f9d3185f39dfae7081e07312e8773705807bd1)) +* **api:** api update ([9edc1aa](https://github.com/onlyfansapi/onlyfansapi-php/commit/9edc1aa34aced890ec942b554c78fb241cd647f8)) +* **api:** api update ([150fbfa](https://github.com/onlyfansapi/onlyfansapi-php/commit/150fbfa30008ab18d1dc527a787aff9f64705c39)) +* **api:** api update ([b4af2b4](https://github.com/onlyfansapi/onlyfansapi-php/commit/b4af2b45a3e6605f103c614616e4ec6e14bafe56)) +* **api:** api update ([0a0f76c](https://github.com/onlyfansapi/onlyfansapi-php/commit/0a0f76c7046fcc166854cf9887b4797a02475f7f)) +* **api:** api update ([1f084c6](https://github.com/onlyfansapi/onlyfansapi-php/commit/1f084c62cbce1fbb85ca5d4e2bd4ebd7a39d5faa)) +* **api:** api update ([9ff9772](https://github.com/onlyfansapi/onlyfansapi-php/commit/9ff977248256672f77bdc2b5ae9121b99b9a43bc)) +* **api:** api update ([94c9d7a](https://github.com/onlyfansapi/onlyfansapi-php/commit/94c9d7ae48ac6603a0ae107adaa73b5cfc25253d)) +* **api:** api update ([88d64e0](https://github.com/onlyfansapi/onlyfansapi-php/commit/88d64e0d7bc382250803223a0a119b97cf917d11)) +* **api:** api update ([3bcbd2e](https://github.com/onlyfansapi/onlyfansapi-php/commit/3bcbd2e1e77f15472f81aa10191d842f1840c703)) +* **api:** api update ([bd033bc](https://github.com/onlyfansapi/onlyfansapi-php/commit/bd033bceb8f8d5e383044483302f73ada1b05aa3)) +* **api:** api update ([9ac0e9f](https://github.com/onlyfansapi/onlyfansapi-php/commit/9ac0e9fda55c719f635d291c5f60d7e5d719f1f8)) +* **api:** api update ([8f7eca1](https://github.com/onlyfansapi/onlyfansapi-php/commit/8f7eca166f19e68ff8d7ba553041c2e17e054aed)) +* **api:** api update ([c2a1181](https://github.com/onlyfansapi/onlyfansapi-php/commit/c2a1181639de5c1dca15ebbddb9ce5643631cbe1)) +* **api:** api update ([1ea639f](https://github.com/onlyfansapi/onlyfansapi-php/commit/1ea639f4b9dbfaa3e8829e3ff58abc9a1831abaa)) +* **api:** api update ([5ab05cc](https://github.com/onlyfansapi/onlyfansapi-php/commit/5ab05cc6e21349df94ab5cbcb6e1f5378cfdcbb9)) +* **api:** api update ([8666666](https://github.com/onlyfansapi/onlyfansapi-php/commit/86666661d840fb5c1d425fb6ab31410064df75ae)) +* **api:** api update ([486d47f](https://github.com/onlyfansapi/onlyfansapi-php/commit/486d47f26ce0d855bf9c3a6b79dbe201cc432e8d)) +* **api:** api update ([f3ef756](https://github.com/onlyfansapi/onlyfansapi-php/commit/f3ef75633a53b82c200b7ae77412aef940ee5bb1)) +* **api:** api update ([2ef90f9](https://github.com/onlyfansapi/onlyfansapi-php/commit/2ef90f96597eca193e34f4d811894ea3c77b67d2)) +* **api:** manual updates ([6114dbf](https://github.com/onlyfansapi/onlyfansapi-php/commit/6114dbf2f78d56582016ea45f52666e0d26302bf)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([d01d9da](https://github.com/onlyfansapi/onlyfansapi-php/commit/d01d9da90dd3588c632b6122ba15d2695eb2b475)) + + +### Chores + +* **internal:** codegen related update ([c39ce46](https://github.com/onlyfansapi/onlyfansapi-php/commit/c39ce46046aeb093413ff873d8d62b8f4f9d19e6)) + ## 0.2.0 (2026-05-25) Full Changelog: [v0.1.0...v0.2.0](https://github.com/onlyfansapi/onlyfansapi-php/compare/v0.1.0...v0.2.0) diff --git a/README.md b/README.md index 6257c8db..a6b43f8f 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Parameters with a default value must be set by name. ```php withName("Joey")`. ### Handling errors -When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `Onlyfansapi\Core\Exceptions\APIException` will be thrown: +When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `OnlyFansAPI\Core\Exceptions\APIException` will be thrown: ```php whoami->retrieve(); @@ -105,7 +105,7 @@ You can use the `maxRetries` option to configure or disable this: ```php 0]); @@ -121,7 +121,7 @@ Request parameters that correspond to file uploads can be passed as a resource r ```php , diff --git a/src/Analytics/Financial/FinancialGetForecastParams/Metric.php b/src/Analytics/Financial/FinancialGetForecastParams/Metric.php index f1f35c73..631be46e 100644 --- a/src/Analytics/Financial/FinancialGetForecastParams/Metric.php +++ b/src/Analytics/Financial/FinancialGetForecastParams/Metric.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\FinancialGetForecastParams; +namespace OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams; /** * The metric to forecast. diff --git a/src/Analytics/Financial/FinancialGetForecastParams/Model.php b/src/Analytics/Financial/FinancialGetForecastParams/Model.php index 2fa4c1e7..6fe991ba 100644 --- a/src/Analytics/Financial/FinancialGetForecastParams/Model.php +++ b/src/Analytics/Financial/FinancialGetForecastParams/Model.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\FinancialGetForecastParams; +namespace OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams; /** * The forecasting model to use. diff --git a/src/Analytics/Financial/FinancialGetForecastResponse.php b/src/Analytics/Financial/FinancialGetForecastResponse.php index bb341f81..b4700697 100644 --- a/src/Analytics/Financial/FinancialGetForecastResponse.php +++ b/src/Analytics/Financial/FinancialGetForecastResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial; +namespace OnlyFansAPI\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse\Forecast; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse\Historical; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse\Forecast; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse\Historical; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type ForecastShape from \Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse\Forecast - * @phpstan-import-type HistoricalShape from \Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse\Historical + * @phpstan-import-type ForecastShape from \OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse\Forecast + * @phpstan-import-type HistoricalShape from \OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse\Historical * * @phpstan-type FinancialGetForecastResponseShape = array{ * forecast?: list|null, diff --git a/src/Analytics/Financial/FinancialGetForecastResponse/Forecast.php b/src/Analytics/Financial/FinancialGetForecastResponse/Forecast.php index eda85934..8f2a702a 100644 --- a/src/Analytics/Financial/FinancialGetForecastResponse/Forecast.php +++ b/src/Analytics/Financial/FinancialGetForecastResponse/Forecast.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse; +namespace OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ForecastShape = array{date?: string|null, value?: float|null} diff --git a/src/Analytics/Financial/FinancialGetForecastResponse/Historical.php b/src/Analytics/Financial/FinancialGetForecastResponse/Historical.php index bd3e3f65..b597cb5e 100644 --- a/src/Analytics/Financial/FinancialGetForecastResponse/Historical.php +++ b/src/Analytics/Financial/FinancialGetForecastResponse/Historical.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse; +namespace OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HistoricalShape = array{date?: string|null, value?: float|null} diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryParams.php b/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryParams.php index 9ae29b89..cc759ebe 100644 --- a/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryParams.php +++ b/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\Profitability; +namespace OnlyFansAPI\Analytics\Financial\Profitability; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get historical profitability data for a specific account over multiple months. * - * @see Onlyfansapi\Services\Analytics\Financial\ProfitabilityService::getHistory() + * @see OnlyFansAPI\Services\Analytics\Financial\ProfitabilityService::getHistory() * * @phpstan-type ProfitabilityGetHistoryParamsShape = array{ * accountPrefixedID: string, months?: int|null diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponse.php b/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponse.php new file mode 100644 index 00000000..05e9aaf3 --- /dev/null +++ b/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponse.php @@ -0,0 +1,59 @@ +|null + * } + */ +final class ProfitabilityGetHistoryResponse implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + /** @var list|null $data */ + #[Optional(list: Data::class)] + public ?array $data; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param list|null $data + */ + public static function with(?array $data = null): self + { + $self = new self; + + null !== $data && $self['data'] = $data; + + return $self; + } + + /** + * @param list $data + */ + public function withData(array $data): self + { + $self = clone $this; + $self['data'] = $data; + + return $self; + } +} diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponse/Data.php b/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponse/Data.php new file mode 100644 index 00000000..46f64a01 --- /dev/null +++ b/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponse/Data.php @@ -0,0 +1,287 @@ +|null, + * creatorName?: string|null, + * hasCommissionForPeriod?: bool|null, + * hasCostsForPeriod?: bool|null, + * marginPercentage?: string|null, + * month?: int|null, + * onlyFansUserID?: int|null, + * profit?: string|null, + * projectedNet?: string|null, + * ratePeriods?: list|null, + * referralNote?: string|null, + * totalCosts?: string|null, + * year?: int|null, + * } + */ +final class Data implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + #[Optional(nullable: true)] + public ?string $activeMilestones; + + #[Optional] + public ?string $agencyEarnings; + + #[Optional] + public ?string $commissionAmount; + + #[Optional] + public ?string $commissionRate; + + /** @var list|null $costs */ + #[Optional(list: 'mixed')] + public ?array $costs; + + #[Optional] + public ?string $creatorName; + + #[Optional] + public ?bool $hasCommissionForPeriod; + + #[Optional] + public ?bool $hasCostsForPeriod; + + #[Optional] + public ?string $marginPercentage; + + #[Optional] + public ?int $month; + + #[Optional('onlyFansUserId')] + public ?int $onlyFansUserID; + + #[Optional] + public ?string $profit; + + #[Optional] + public ?string $projectedNet; + + /** @var list|null $ratePeriods */ + #[Optional(list: 'mixed')] + public ?array $ratePeriods; + + #[Optional(nullable: true)] + public ?string $referralNote; + + #[Optional] + public ?string $totalCosts; + + #[Optional] + public ?int $year; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param list|null $costs + * @param list|null $ratePeriods + */ + public static function with( + ?string $activeMilestones = null, + ?string $agencyEarnings = null, + ?string $commissionAmount = null, + ?string $commissionRate = null, + ?array $costs = null, + ?string $creatorName = null, + ?bool $hasCommissionForPeriod = null, + ?bool $hasCostsForPeriod = null, + ?string $marginPercentage = null, + ?int $month = null, + ?int $onlyFansUserID = null, + ?string $profit = null, + ?string $projectedNet = null, + ?array $ratePeriods = null, + ?string $referralNote = null, + ?string $totalCosts = null, + ?int $year = null, + ): self { + $self = new self; + + null !== $activeMilestones && $self['activeMilestones'] = $activeMilestones; + null !== $agencyEarnings && $self['agencyEarnings'] = $agencyEarnings; + null !== $commissionAmount && $self['commissionAmount'] = $commissionAmount; + null !== $commissionRate && $self['commissionRate'] = $commissionRate; + null !== $costs && $self['costs'] = $costs; + null !== $creatorName && $self['creatorName'] = $creatorName; + null !== $hasCommissionForPeriod && $self['hasCommissionForPeriod'] = $hasCommissionForPeriod; + null !== $hasCostsForPeriod && $self['hasCostsForPeriod'] = $hasCostsForPeriod; + null !== $marginPercentage && $self['marginPercentage'] = $marginPercentage; + null !== $month && $self['month'] = $month; + null !== $onlyFansUserID && $self['onlyFansUserID'] = $onlyFansUserID; + null !== $profit && $self['profit'] = $profit; + null !== $projectedNet && $self['projectedNet'] = $projectedNet; + null !== $ratePeriods && $self['ratePeriods'] = $ratePeriods; + null !== $referralNote && $self['referralNote'] = $referralNote; + null !== $totalCosts && $self['totalCosts'] = $totalCosts; + null !== $year && $self['year'] = $year; + + return $self; + } + + public function withActiveMilestones(?string $activeMilestones): self + { + $self = clone $this; + $self['activeMilestones'] = $activeMilestones; + + return $self; + } + + public function withAgencyEarnings(string $agencyEarnings): self + { + $self = clone $this; + $self['agencyEarnings'] = $agencyEarnings; + + return $self; + } + + public function withCommissionAmount(string $commissionAmount): self + { + $self = clone $this; + $self['commissionAmount'] = $commissionAmount; + + return $self; + } + + public function withCommissionRate(string $commissionRate): self + { + $self = clone $this; + $self['commissionRate'] = $commissionRate; + + return $self; + } + + /** + * @param list $costs + */ + public function withCosts(array $costs): self + { + $self = clone $this; + $self['costs'] = $costs; + + return $self; + } + + public function withCreatorName(string $creatorName): self + { + $self = clone $this; + $self['creatorName'] = $creatorName; + + return $self; + } + + public function withHasCommissionForPeriod( + bool $hasCommissionForPeriod + ): self { + $self = clone $this; + $self['hasCommissionForPeriod'] = $hasCommissionForPeriod; + + return $self; + } + + public function withHasCostsForPeriod(bool $hasCostsForPeriod): self + { + $self = clone $this; + $self['hasCostsForPeriod'] = $hasCostsForPeriod; + + return $self; + } + + public function withMarginPercentage(string $marginPercentage): self + { + $self = clone $this; + $self['marginPercentage'] = $marginPercentage; + + return $self; + } + + public function withMonth(int $month): self + { + $self = clone $this; + $self['month'] = $month; + + return $self; + } + + public function withOnlyFansUserID(int $onlyFansUserID): self + { + $self = clone $this; + $self['onlyFansUserID'] = $onlyFansUserID; + + return $self; + } + + public function withProfit(string $profit): self + { + $self = clone $this; + $self['profit'] = $profit; + + return $self; + } + + public function withProjectedNet(string $projectedNet): self + { + $self = clone $this; + $self['projectedNet'] = $projectedNet; + + return $self; + } + + /** + * @param list $ratePeriods + */ + public function withRatePeriods(array $ratePeriods): self + { + $self = clone $this; + $self['ratePeriods'] = $ratePeriods; + + return $self; + } + + public function withReferralNote(?string $referralNote): self + { + $self = clone $this; + $self['referralNote'] = $referralNote; + + return $self; + } + + public function withTotalCosts(string $totalCosts): self + { + $self = clone $this; + $self['totalCosts'] = $totalCosts; + + return $self; + } + + public function withYear(int $year): self + { + $self = clone $this; + $self['year'] = $year; + + return $self; + } +} diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponseItem.php b/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponseItem.php deleted file mode 100644 index ce67005f..00000000 --- a/src/Analytics/Financial/Profitability/ProfitabilityGetHistoryResponseItem.php +++ /dev/null @@ -1,121 +0,0 @@ - */ - use SdkModel; - - #[Optional('gross_revenue')] - public ?float $grossRevenue; - - #[Optional] - public ?float $margin; - - #[Optional] - public ?int $month; - - #[Optional('net_revenue')] - public ?float $netRevenue; - - #[Optional] - public ?float $profit; - - #[Optional] - public ?int $year; - - public function __construct() - { - $this->initialize(); - } - - /** - * Construct an instance from the required parameters. - * - * You must use named parameters to construct any parameters with a default value. - */ - public static function with( - ?float $grossRevenue = null, - ?float $margin = null, - ?int $month = null, - ?float $netRevenue = null, - ?float $profit = null, - ?int $year = null, - ): self { - $self = new self; - - null !== $grossRevenue && $self['grossRevenue'] = $grossRevenue; - null !== $margin && $self['margin'] = $margin; - null !== $month && $self['month'] = $month; - null !== $netRevenue && $self['netRevenue'] = $netRevenue; - null !== $profit && $self['profit'] = $profit; - null !== $year && $self['year'] = $year; - - return $self; - } - - public function withGrossRevenue(float $grossRevenue): self - { - $self = clone $this; - $self['grossRevenue'] = $grossRevenue; - - return $self; - } - - public function withMargin(float $margin): self - { - $self = clone $this; - $self['margin'] = $margin; - - return $self; - } - - public function withMonth(int $month): self - { - $self = clone $this; - $self['month'] = $month; - - return $self; - } - - public function withNetRevenue(float $netRevenue): self - { - $self = clone $this; - $self['netRevenue'] = $netRevenue; - - return $self; - } - - public function withProfit(float $profit): self - { - $self = clone $this; - $self['profit'] = $profit; - - return $self; - } - - public function withYear(int $year): self - { - $self = clone $this; - $self['year'] = $year; - - return $self; - } -} diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityParams.php b/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityParams.php index 5ada5349..e0e7669d 100644 --- a/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityParams.php +++ b/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\Profitability; +namespace OnlyFansAPI\Analytics\Financial\Profitability; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Calculate profitability for creators including revenue, costs, commissions, and margins for a specific month. * - * @see Onlyfansapi\Services\Analytics\Financial\ProfitabilityService::getProfitability() + * @see OnlyFansAPI\Services\Analytics\Financial\ProfitabilityService::getProfitability() * * @phpstan-type ProfitabilityGetProfitabilityParamsShape = array{ * accountIDs: list, month: int, year: int diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponse.php b/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponse.php new file mode 100644 index 00000000..693f43d2 --- /dev/null +++ b/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponse.php @@ -0,0 +1,59 @@ +|null + * } + */ +final class ProfitabilityGetProfitabilityResponse implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + /** @var list|null $data */ + #[Optional(list: Data::class)] + public ?array $data; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param list|null $data + */ + public static function with(?array $data = null): self + { + $self = new self; + + null !== $data && $self['data'] = $data; + + return $self; + } + + /** + * @param list $data + */ + public function withData(array $data): self + { + $self = clone $this; + $self['data'] = $data; + + return $self; + } +} diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponse/Data.php b/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponse/Data.php new file mode 100644 index 00000000..9d63efa2 --- /dev/null +++ b/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponse/Data.php @@ -0,0 +1,287 @@ +|null, + * creatorName?: string|null, + * hasCommissionForPeriod?: bool|null, + * hasCostsForPeriod?: bool|null, + * marginPercentage?: string|null, + * month?: int|null, + * onlyFansUserID?: int|null, + * profit?: string|null, + * projectedNet?: string|null, + * ratePeriods?: list|null, + * referralNote?: string|null, + * totalCosts?: string|null, + * year?: int|null, + * } + */ +final class Data implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + #[Optional(nullable: true)] + public ?string $activeMilestones; + + #[Optional] + public ?string $agencyEarnings; + + #[Optional] + public ?string $commissionAmount; + + #[Optional] + public ?string $commissionRate; + + /** @var list|null $costs */ + #[Optional(list: 'mixed')] + public ?array $costs; + + #[Optional] + public ?string $creatorName; + + #[Optional] + public ?bool $hasCommissionForPeriod; + + #[Optional] + public ?bool $hasCostsForPeriod; + + #[Optional] + public ?string $marginPercentage; + + #[Optional] + public ?int $month; + + #[Optional('onlyFansUserId')] + public ?int $onlyFansUserID; + + #[Optional] + public ?string $profit; + + #[Optional] + public ?string $projectedNet; + + /** @var list|null $ratePeriods */ + #[Optional(list: 'mixed')] + public ?array $ratePeriods; + + #[Optional(nullable: true)] + public ?string $referralNote; + + #[Optional] + public ?string $totalCosts; + + #[Optional] + public ?int $year; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param list|null $costs + * @param list|null $ratePeriods + */ + public static function with( + ?string $activeMilestones = null, + ?string $agencyEarnings = null, + ?string $commissionAmount = null, + ?string $commissionRate = null, + ?array $costs = null, + ?string $creatorName = null, + ?bool $hasCommissionForPeriod = null, + ?bool $hasCostsForPeriod = null, + ?string $marginPercentage = null, + ?int $month = null, + ?int $onlyFansUserID = null, + ?string $profit = null, + ?string $projectedNet = null, + ?array $ratePeriods = null, + ?string $referralNote = null, + ?string $totalCosts = null, + ?int $year = null, + ): self { + $self = new self; + + null !== $activeMilestones && $self['activeMilestones'] = $activeMilestones; + null !== $agencyEarnings && $self['agencyEarnings'] = $agencyEarnings; + null !== $commissionAmount && $self['commissionAmount'] = $commissionAmount; + null !== $commissionRate && $self['commissionRate'] = $commissionRate; + null !== $costs && $self['costs'] = $costs; + null !== $creatorName && $self['creatorName'] = $creatorName; + null !== $hasCommissionForPeriod && $self['hasCommissionForPeriod'] = $hasCommissionForPeriod; + null !== $hasCostsForPeriod && $self['hasCostsForPeriod'] = $hasCostsForPeriod; + null !== $marginPercentage && $self['marginPercentage'] = $marginPercentage; + null !== $month && $self['month'] = $month; + null !== $onlyFansUserID && $self['onlyFansUserID'] = $onlyFansUserID; + null !== $profit && $self['profit'] = $profit; + null !== $projectedNet && $self['projectedNet'] = $projectedNet; + null !== $ratePeriods && $self['ratePeriods'] = $ratePeriods; + null !== $referralNote && $self['referralNote'] = $referralNote; + null !== $totalCosts && $self['totalCosts'] = $totalCosts; + null !== $year && $self['year'] = $year; + + return $self; + } + + public function withActiveMilestones(?string $activeMilestones): self + { + $self = clone $this; + $self['activeMilestones'] = $activeMilestones; + + return $self; + } + + public function withAgencyEarnings(string $agencyEarnings): self + { + $self = clone $this; + $self['agencyEarnings'] = $agencyEarnings; + + return $self; + } + + public function withCommissionAmount(string $commissionAmount): self + { + $self = clone $this; + $self['commissionAmount'] = $commissionAmount; + + return $self; + } + + public function withCommissionRate(string $commissionRate): self + { + $self = clone $this; + $self['commissionRate'] = $commissionRate; + + return $self; + } + + /** + * @param list $costs + */ + public function withCosts(array $costs): self + { + $self = clone $this; + $self['costs'] = $costs; + + return $self; + } + + public function withCreatorName(string $creatorName): self + { + $self = clone $this; + $self['creatorName'] = $creatorName; + + return $self; + } + + public function withHasCommissionForPeriod( + bool $hasCommissionForPeriod + ): self { + $self = clone $this; + $self['hasCommissionForPeriod'] = $hasCommissionForPeriod; + + return $self; + } + + public function withHasCostsForPeriod(bool $hasCostsForPeriod): self + { + $self = clone $this; + $self['hasCostsForPeriod'] = $hasCostsForPeriod; + + return $self; + } + + public function withMarginPercentage(string $marginPercentage): self + { + $self = clone $this; + $self['marginPercentage'] = $marginPercentage; + + return $self; + } + + public function withMonth(int $month): self + { + $self = clone $this; + $self['month'] = $month; + + return $self; + } + + public function withOnlyFansUserID(int $onlyFansUserID): self + { + $self = clone $this; + $self['onlyFansUserID'] = $onlyFansUserID; + + return $self; + } + + public function withProfit(string $profit): self + { + $self = clone $this; + $self['profit'] = $profit; + + return $self; + } + + public function withProjectedNet(string $projectedNet): self + { + $self = clone $this; + $self['projectedNet'] = $projectedNet; + + return $self; + } + + /** + * @param list $ratePeriods + */ + public function withRatePeriods(array $ratePeriods): self + { + $self = clone $this; + $self['ratePeriods'] = $ratePeriods; + + return $self; + } + + public function withReferralNote(?string $referralNote): self + { + $self = clone $this; + $self['referralNote'] = $referralNote; + + return $self; + } + + public function withTotalCosts(string $totalCosts): self + { + $self = clone $this; + $self['totalCosts'] = $totalCosts; + + return $self; + } + + public function withYear(int $year): self + { + $self = clone $this; + $self['year'] = $year; + + return $self; + } +} diff --git a/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponseItem.php b/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponseItem.php deleted file mode 100644 index 6c0a5a46..00000000 --- a/src/Analytics/Financial/Profitability/ProfitabilityGetProfitabilityResponseItem.php +++ /dev/null @@ -1,149 +0,0 @@ - */ - use SdkModel; - - #[Optional] - public ?float $commission; - - #[Optional('creator_id')] - public ?int $creatorID; - - #[Optional('gross_revenue')] - public ?float $grossRevenue; - - #[Optional] - public ?float $margin; - - #[Optional] - public ?string $name; - - #[Optional('net_revenue')] - public ?float $netRevenue; - - #[Optional] - public ?float $profit; - - #[Optional('total_costs')] - public ?float $totalCosts; - - public function __construct() - { - $this->initialize(); - } - - /** - * Construct an instance from the required parameters. - * - * You must use named parameters to construct any parameters with a default value. - */ - public static function with( - ?float $commission = null, - ?int $creatorID = null, - ?float $grossRevenue = null, - ?float $margin = null, - ?string $name = null, - ?float $netRevenue = null, - ?float $profit = null, - ?float $totalCosts = null, - ): self { - $self = new self; - - null !== $commission && $self['commission'] = $commission; - null !== $creatorID && $self['creatorID'] = $creatorID; - null !== $grossRevenue && $self['grossRevenue'] = $grossRevenue; - null !== $margin && $self['margin'] = $margin; - null !== $name && $self['name'] = $name; - null !== $netRevenue && $self['netRevenue'] = $netRevenue; - null !== $profit && $self['profit'] = $profit; - null !== $totalCosts && $self['totalCosts'] = $totalCosts; - - return $self; - } - - public function withCommission(float $commission): self - { - $self = clone $this; - $self['commission'] = $commission; - - return $self; - } - - public function withCreatorID(int $creatorID): self - { - $self = clone $this; - $self['creatorID'] = $creatorID; - - return $self; - } - - public function withGrossRevenue(float $grossRevenue): self - { - $self = clone $this; - $self['grossRevenue'] = $grossRevenue; - - return $self; - } - - public function withMargin(float $margin): self - { - $self = clone $this; - $self['margin'] = $margin; - - return $self; - } - - public function withName(string $name): self - { - $self = clone $this; - $self['name'] = $name; - - return $self; - } - - public function withNetRevenue(float $netRevenue): self - { - $self = clone $this; - $self['netRevenue'] = $netRevenue; - - return $self; - } - - public function withProfit(float $profit): self - { - $self = clone $this; - $self['profit'] = $profit; - - return $self; - } - - public function withTotalCosts(float $totalCosts): self - { - $self = clone $this; - $self['totalCosts'] = $totalCosts; - - return $self; - } -} diff --git a/src/Analytics/Financial/Transactions/TransactionGetByTypeParams.php b/src/Analytics/Financial/Transactions/TransactionGetByTypeParams.php index 378bb66f..5b86042b 100644 --- a/src/Analytics/Financial/Transactions/TransactionGetByTypeParams.php +++ b/src/Analytics/Financial/Transactions/TransactionGetByTypeParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\Transactions; +namespace OnlyFansAPI\Analytics\Financial\Transactions; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get transaction totals grouped by transaction type (subscriptions, tips, messages, etc.). * - * @see Onlyfansapi\Services\Analytics\Financial\TransactionsService::getByType() + * @see OnlyFansAPI\Services\Analytics\Financial\TransactionsService::getByType() * * @phpstan-type TransactionGetByTypeParamsShape = array{ * accountIDs: list, endDate: string, startDate: string diff --git a/src/Analytics/Financial/Transactions/TransactionGetByTypeResponseItem.php b/src/Analytics/Financial/Transactions/TransactionGetByTypeResponseItem.php index 41e4c297..85bcae4b 100644 --- a/src/Analytics/Financial/Transactions/TransactionGetByTypeResponseItem.php +++ b/src/Analytics/Financial/Transactions/TransactionGetByTypeResponseItem.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\Transactions; +namespace OnlyFansAPI\Analytics\Financial\Transactions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TransactionGetByTypeResponseItemShape = array{ diff --git a/src/Analytics/Financial/Transactions/TransactionGetSummaryParams.php b/src/Analytics/Financial/Transactions/TransactionGetSummaryParams.php index 790fe301..456c9a0a 100644 --- a/src/Analytics/Financial/Transactions/TransactionGetSummaryParams.php +++ b/src/Analytics/Financial/Transactions/TransactionGetSummaryParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\Transactions; +namespace OnlyFansAPI\Analytics\Financial\Transactions; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get transaction summary including counts for succeeded, refunded, and disputed transactions, plus gross, net, and fee totals. * - * @see Onlyfansapi\Services\Analytics\Financial\TransactionsService::getSummary() + * @see OnlyFansAPI\Services\Analytics\Financial\TransactionsService::getSummary() * * @phpstan-type TransactionGetSummaryParamsShape = array{ * accountIDs: list, endDate: string, startDate: string diff --git a/src/Analytics/Financial/Transactions/TransactionGetSummaryResponse.php b/src/Analytics/Financial/Transactions/TransactionGetSummaryResponse.php index 5d48476f..8c549c34 100644 --- a/src/Analytics/Financial/Transactions/TransactionGetSummaryResponse.php +++ b/src/Analytics/Financial/Transactions/TransactionGetSummaryResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Financial\Transactions; +namespace OnlyFansAPI\Analytics\Financial\Transactions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TransactionGetSummaryResponseShape = array{ diff --git a/src/Analytics/Summary/SummaryGetEarningsOverviewParams.php b/src/Analytics/Summary/SummaryGetEarningsOverviewParams.php index 4f754ff1..b13f7b41 100644 --- a/src/Analytics/Summary/SummaryGetEarningsOverviewParams.php +++ b/src/Analytics/Summary/SummaryGetEarningsOverviewParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary; +namespace OnlyFansAPI\Analytics\Summary; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get earnings overview by category for selected accounts within a date range. Returns total earnings, subscriptions, posts, messages, tips, streams, and content stats. * - * @see Onlyfansapi\Services\Analytics\SummaryService::getEarningsOverview() + * @see OnlyFansAPI\Services\Analytics\SummaryService::getEarningsOverview() * * @phpstan-type SummaryGetEarningsOverviewParamsShape = array{ * accountIDs: list, endDate: string, startDate: string diff --git a/src/Analytics/Summary/SummaryGetEarningsOverviewResponse.php b/src/Analytics/Summary/SummaryGetEarningsOverviewResponse.php index 83c82208..6c41cd6a 100644 --- a/src/Analytics/Summary/SummaryGetEarningsOverviewResponse.php +++ b/src/Analytics/Summary/SummaryGetEarningsOverviewResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary; +namespace OnlyFansAPI\Analytics\Summary; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryGetEarningsOverviewResponseShape = array{ diff --git a/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams.php b/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams.php index 4b522903..31e6c820 100644 --- a/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams.php +++ b/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary; +namespace OnlyFansAPI\Analytics\Summary; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get historical earnings chart data for the team. Returns monthly aggregated revenue data for the specified time range. * - * @see Onlyfansapi\Services\Analytics\SummaryService::getHistoricalPerformance() + * @see OnlyFansAPI\Services\Analytics\SummaryService::getHistoricalPerformance() * * @phpstan-type SummaryGetHistoricalPerformanceParamsShape = array{ * timeRange?: null|TimeRange|value-of diff --git a/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams/TimeRange.php b/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams/TimeRange.php index 777e2a9e..d1230101 100644 --- a/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams/TimeRange.php +++ b/src/Analytics/Summary/SummaryGetHistoricalPerformanceParams/TimeRange.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceParams; +namespace OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceParams; /** * The time range for historical data. diff --git a/src/Analytics/Summary/SummaryGetHistoricalPerformanceResponseItem.php b/src/Analytics/Summary/SummaryGetHistoricalPerformanceResponseItem.php index 9c10b946..a604aa03 100644 --- a/src/Analytics/Summary/SummaryGetHistoricalPerformanceResponseItem.php +++ b/src/Analytics/Summary/SummaryGetHistoricalPerformanceResponseItem.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary; +namespace OnlyFansAPI\Analytics\Summary; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryGetHistoricalPerformanceResponseItemShape = array{ diff --git a/src/Analytics/Summary/SummaryGetPeriodComparisonParams.php b/src/Analytics/Summary/SummaryGetPeriodComparisonParams.php index dbbcc219..4043feb7 100644 --- a/src/Analytics/Summary/SummaryGetPeriodComparisonParams.php +++ b/src/Analytics/Summary/SummaryGetPeriodComparisonParams.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary; - -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +namespace OnlyFansAPI\Analytics\Summary; + +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Compare two time periods to analyze performance changes. Returns summary, breakdown, and chart data for the comparison. * - * @see Onlyfansapi\Services\Analytics\SummaryService::getPeriodComparison() + * @see OnlyFansAPI\Services\Analytics\SummaryService::getPeriodComparison() * - * @phpstan-import-type PeriodAShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA - * @phpstan-import-type PeriodBShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB + * @phpstan-import-type PeriodAShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA + * @phpstan-import-type PeriodBShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB * * @phpstan-type SummaryGetPeriodComparisonParamsShape = array{ * accountIDs: list, diff --git a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/Granularity.php b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/Granularity.php index 8e38229d..5855d876 100644 --- a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/Granularity.php +++ b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/Granularity.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams; +namespace OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams; /** * Comparison granularity. diff --git a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodA.php b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodA.php index 13264d59..51af838f 100644 --- a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodA.php +++ b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodA.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams; +namespace OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * First period to compare. diff --git a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodB.php b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodB.php index d5bca042..45b0659c 100644 --- a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodB.php +++ b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/PeriodB.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams; +namespace OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Second period to compare. diff --git a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/StatType.php b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/StatType.php index 1450404c..737025ac 100644 --- a/src/Analytics/Summary/SummaryGetPeriodComparisonParams/StatType.php +++ b/src/Analytics/Summary/SummaryGetPeriodComparisonParams/StatType.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams; +namespace OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams; /** * The statistic type to compare. diff --git a/src/Analytics/Summary/SummaryGetPeriodComparisonResponse.php b/src/Analytics/Summary/SummaryGetPeriodComparisonResponse.php index 94aab1f3..4732fc74 100644 --- a/src/Analytics/Summary/SummaryGetPeriodComparisonResponse.php +++ b/src/Analytics/Summary/SummaryGetPeriodComparisonResponse.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary; +namespace OnlyFansAPI\Analytics\Summary; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse\Summary; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse\Summary; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type SummaryShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse\Summary + * @phpstan-import-type SummaryShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse\Summary * * @phpstan-type SummaryGetPeriodComparisonResponseShape = array{ * breakdown?: list|null, diff --git a/src/Analytics/Summary/SummaryGetPeriodComparisonResponse/Summary.php b/src/Analytics/Summary/SummaryGetPeriodComparisonResponse/Summary.php index ed625439..f1cb67f9 100644 --- a/src/Analytics/Summary/SummaryGetPeriodComparisonResponse/Summary.php +++ b/src/Analytics/Summary/SummaryGetPeriodComparisonResponse/Summary.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse; +namespace OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryShape = array{ diff --git a/src/Authenticate/AuthenticatePollStatusResponse.php b/src/Authenticate/AuthenticatePollStatusResponse.php index 33e1254d..04568414 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse.php +++ b/src/Authenticate/AuthenticatePollStatusResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate; +namespace OnlyFansAPI\Authenticate; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\LastAttempt; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\LastAttempt; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type AccountShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account - * @phpstan-import-type LastAttemptShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\LastAttempt + * @phpstan-import-type AccountShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account + * @phpstan-import-type LastAttemptShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\LastAttempt * * @phpstan-type AuthenticatePollStatusResponseShape = array{ * account?: null|Account|AccountShape, diff --git a/src/Authenticate/AuthenticatePollStatusResponse/Account.php b/src/Authenticate/AuthenticatePollStatusResponse/Account.php index 5cbf911d..a73664bd 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/Account.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/Account.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type OnlyfansDataShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData + * @phpstan-import-type OnlyfansDataShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData * * @phpstan-type AccountShape = array{ * id?: string|null, diff --git a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData.php b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData.php index 92dd5bd2..6f693d8f 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\AgeVerificationSession; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\HasNewTicketReplies; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\AgeVerificationSession; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\HasNewTicketReplies; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type AgeVerificationSessionShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\AgeVerificationSession - * @phpstan-import-type HasNewTicketRepliesShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\HasNewTicketReplies - * @phpstan-import-type UploadShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload + * @phpstan-import-type AgeVerificationSessionShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\AgeVerificationSession + * @phpstan-import-type HasNewTicketRepliesShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\HasNewTicketReplies + * @phpstan-import-type UploadShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload * * @phpstan-type OnlyfansDataShape = array{ * id?: int|null, diff --git a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/AgeVerificationSession.php b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/AgeVerificationSession.php index 7ecc3a0c..2fa71c2a 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/AgeVerificationSession.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/AgeVerificationSession.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AgeVerificationSessionShape = array{ diff --git a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/HasNewTicketReplies.php b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/HasNewTicketReplies.php index ac536d6c..8253d4c3 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/HasNewTicketReplies.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/HasNewTicketReplies.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HasNewTicketRepliesShape = array{ diff --git a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload.php b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload.php index 44afb9d7..6b88af9a 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type GeoUploadArgsShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs + * @phpstan-import-type GeoUploadArgsShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs * * @phpstan-type UploadShape = array{ * geoUploadArgs?: null|GeoUploadArgs|GeoUploadArgsShape diff --git a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs.php b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs.php index 0f7c2a55..41208853 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs\Additional; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs\Additional; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type AdditionalShape from \Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs\Additional + * @phpstan-import-type AdditionalShape from \OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs\Additional * * @phpstan-type GeoUploadArgsShape = array{ * additional?: null|Additional|AdditionalShape, diff --git a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs/Additional.php b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs/Additional.php index c78a3ad4..0095a748 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs/Additional.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/Account/OnlyfansData/Upload/GeoUploadArgs/Additional.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse\Account\OnlyfansData\Upload\GeoUploadArgs; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AdditionalShape = array{user?: string|null} diff --git a/src/Authenticate/AuthenticatePollStatusResponse/LastAttempt.php b/src/Authenticate/AuthenticatePollStatusResponse/LastAttempt.php index 3fa751c4..31d89a64 100644 --- a/src/Authenticate/AuthenticatePollStatusResponse/LastAttempt.php +++ b/src/Authenticate/AuthenticatePollStatusResponse/LastAttempt.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticatePollStatusResponse; +namespace OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LastAttemptShape = array{ diff --git a/src/Authenticate/AuthenticateReauthenticateResponse.php b/src/Authenticate/AuthenticateReauthenticateResponse.php index 31c00104..97d46234 100644 --- a/src/Authenticate/AuthenticateReauthenticateResponse.php +++ b/src/Authenticate/AuthenticateReauthenticateResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate; +namespace OnlyFansAPI\Authenticate; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AuthenticateReauthenticateResponseShape = array{ diff --git a/src/Authenticate/AuthenticateSend2faEmailResponse.php b/src/Authenticate/AuthenticateSend2faEmailResponse.php index f9257010..81f2f018 100644 --- a/src/Authenticate/AuthenticateSend2faEmailResponse.php +++ b/src/Authenticate/AuthenticateSend2faEmailResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate; +namespace OnlyFansAPI\Authenticate; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AuthenticateSend2faEmailResponseShape = array{ diff --git a/src/Authenticate/AuthenticateStartParams.php b/src/Authenticate/AuthenticateStartParams.php index 8c4988b2..fc692544 100644 --- a/src/Authenticate/AuthenticateStartParams.php +++ b/src/Authenticate/AuthenticateStartParams.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate; +namespace OnlyFansAPI\Authenticate; -use Onlyfansapi\Authenticate\AuthenticateStartParams\AuthType; -use Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy; -use Onlyfansapi\Authenticate\AuthenticateStartParams\ProxyCountry; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\AuthType; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\ProxyCountry; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Start the authentication process for a new account. Supports three methods: email/password (default), cookies & headers (raw_data), or FansAPI Auth+ mobile app (mobile_app). For email/password, our systems will bypass Captcha and ask you for 2FA if required. For raw_data, provide session cookies directly for instant authentication. For mobile_app, the response includes a `mobile_auth_session_deeplink` that the creator opens on their phone (or scans as a QR code) to complete authentication via the FansAPI Auth+ mobile app. All credentials are stored securely and encrypted at rest. * - * @see Onlyfansapi\Services\AuthenticateService::start() + * @see OnlyFansAPI\Services\AuthenticateService::start() * - * @phpstan-import-type CustomProxyShape from \Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy + * @phpstan-import-type CustomProxyShape from \OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy * * @phpstan-type AuthenticateStartParamsShape = array{ * authID?: string|null, diff --git a/src/Authenticate/AuthenticateStartParams/AuthType.php b/src/Authenticate/AuthenticateStartParams/AuthType.php index 48c225ce..878e76a9 100644 --- a/src/Authenticate/AuthenticateStartParams/AuthType.php +++ b/src/Authenticate/AuthenticateStartParams/AuthType.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticateStartParams; +namespace OnlyFansAPI\Authenticate\AuthenticateStartParams; /** * The authentication method to use. Defaults to `email_password` if omitted. Use `mobile_app` to authenticate via the FansAPI Auth+ mobile app (no credential fields required). diff --git a/src/Authenticate/AuthenticateStartParams/CustomProxy.php b/src/Authenticate/AuthenticateStartParams/CustomProxy.php index fa6fac1b..8d11af40 100644 --- a/src/Authenticate/AuthenticateStartParams/CustomProxy.php +++ b/src/Authenticate/AuthenticateStartParams/CustomProxy.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticateStartParams; +namespace OnlyFansAPI\Authenticate\AuthenticateStartParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Custom proxy configuration. Cannot be used together with proxyCountry. diff --git a/src/Authenticate/AuthenticateStartParams/ProxyCountry.php b/src/Authenticate/AuthenticateStartParams/ProxyCountry.php index ca258bf6..0fab484a 100644 --- a/src/Authenticate/AuthenticateStartParams/ProxyCountry.php +++ b/src/Authenticate/AuthenticateStartParams/ProxyCountry.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticateStartParams; +namespace OnlyFansAPI\Authenticate\AuthenticateStartParams; /** * The country of the managed proxy server you want to use. Eg. "us" for United States. Cannot be used together with customProxy. @@ -12,4 +12,6 @@ enum ProxyCountry: string case US = 'us'; case UK = 'uk'; + + case GB = 'gb'; } diff --git a/src/Authenticate/AuthenticateStartResponse.php b/src/Authenticate/AuthenticateStartResponse.php index ffb9528b..c487ace5 100644 --- a/src/Authenticate/AuthenticateStartResponse.php +++ b/src/Authenticate/AuthenticateStartResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate; +namespace OnlyFansAPI\Authenticate; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember0; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember1; -use Onlyfansapi\Core\Concerns\SdkUnion; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember0; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember1; +use OnlyFansAPI\Core\Concerns\SdkUnion; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; /** * For email_password or raw_data auth types. * - * @phpstan-import-type UnionMember0Shape from \Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember0 - * @phpstan-import-type UnionMember1Shape from \Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember1 + * @phpstan-import-type UnionMember0Shape from \OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember0 + * @phpstan-import-type UnionMember1Shape from \OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember1 * * @phpstan-type AuthenticateStartResponseVariants = UnionMember0|UnionMember1 * @phpstan-type AuthenticateStartResponseShape = AuthenticateStartResponseVariants|UnionMember0Shape|UnionMember1Shape diff --git a/src/Authenticate/AuthenticateStartResponse/UnionMember0.php b/src/Authenticate/AuthenticateStartResponse/UnionMember0.php index f22f9d35..9b03ad9c 100644 --- a/src/Authenticate/AuthenticateStartResponse/UnionMember0.php +++ b/src/Authenticate/AuthenticateStartResponse/UnionMember0.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticateStartResponse; +namespace OnlyFansAPI\Authenticate\AuthenticateStartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * For email_password or raw_data auth types. diff --git a/src/Authenticate/AuthenticateStartResponse/UnionMember1.php b/src/Authenticate/AuthenticateStartResponse/UnionMember1.php index 6aa3bc0b..8935d714 100644 --- a/src/Authenticate/AuthenticateStartResponse/UnionMember1.php +++ b/src/Authenticate/AuthenticateStartResponse/UnionMember1.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate\AuthenticateStartResponse; +namespace OnlyFansAPI\Authenticate\AuthenticateStartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * For mobile_app auth type — includes the session code to scan with the FansAPI Auth+ app. diff --git a/src/Authenticate/AuthenticateSubmit2faParams.php b/src/Authenticate/AuthenticateSubmit2faParams.php index 43fd8186..b4af80ac 100644 --- a/src/Authenticate/AuthenticateSubmit2faParams.php +++ b/src/Authenticate/AuthenticateSubmit2faParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate; +namespace OnlyFansAPI\Authenticate; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Submit the 2FA code, or Selfie Verification status, for the authentication process. * - * @see Onlyfansapi\Services\AuthenticateService::submit2fa() + * @see OnlyFansAPI\Services\AuthenticateService::submit2fa() * * @phpstan-type AuthenticateSubmit2faParamsShape = array{ * code?: string|null, selfieVerificationCompleted?: mixed diff --git a/src/Authenticate/AuthenticateSubmit2faResponse.php b/src/Authenticate/AuthenticateSubmit2faResponse.php index 97240d9a..1dee22f5 100644 --- a/src/Authenticate/AuthenticateSubmit2faResponse.php +++ b/src/Authenticate/AuthenticateSubmit2faResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Authenticate; +namespace OnlyFansAPI\Authenticate; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AuthenticateSubmit2faResponseShape = array{message?: string|null} diff --git a/src/Banking/BankingListAvailablePayoutSystemsResponse.php b/src/Banking/BankingListAvailablePayoutSystemsResponse.php index a0fcb8a9..13361d13 100644 --- a/src/Banking/BankingListAvailablePayoutSystemsResponse.php +++ b/src/Banking/BankingListAvailablePayoutSystemsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking; +namespace OnlyFansAPI\Banking; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\Data * * @phpstan-type BankingListAvailablePayoutSystemsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Banking/BankingListAvailablePayoutSystemsResponse/Data.php b/src/Banking/BankingListAvailablePayoutSystemsResponse/Data.php index 05ba6248..78755e17 100644 --- a/src/Banking/BankingListAvailablePayoutSystemsResponse/Data.php +++ b/src/Banking/BankingListAvailablePayoutSystemsResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse; +namespace OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\Data\Payout; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\Data\Payout; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type PayoutShape from \Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\Data\Payout + * @phpstan-import-type PayoutShape from \OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\Data\Payout * * @phpstan-type DataShape = array{ * payoutCode?: string|null, payouts?: list|null diff --git a/src/Banking/BankingListAvailablePayoutSystemsResponse/Data/Payout.php b/src/Banking/BankingListAvailablePayoutSystemsResponse/Data/Payout.php index 0d05bf7c..bb6bd214 100644 --- a/src/Banking/BankingListAvailablePayoutSystemsResponse/Data/Payout.php +++ b/src/Banking/BankingListAvailablePayoutSystemsResponse/Data/Payout.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\Data; +namespace OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PayoutShape = array{ diff --git a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta.php b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta.php index 2b8fcddf..a82ce45c 100644 --- a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta.php +++ b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse; +namespace OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Cache; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Credits; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Cache; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Credits; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Cache.php b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Cache.php index 4acf7b20..19a1e091 100644 --- a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Cache.php +++ b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; +namespace OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Credits.php b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Credits.php index 8b71f3e0..9099548c 100644 --- a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Credits.php +++ b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; +namespace OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_RateLimits.php b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_RateLimits.php index 88b90ec2..fb28b508 100644 --- a/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_RateLimits.php +++ b/src/Banking/BankingListAvailablePayoutSystemsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; +namespace OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Banking/BankingListCountriesResponse.php b/src/Banking/BankingListCountriesResponse.php index dbb68bb6..ef89d035 100644 --- a/src/Banking/BankingListCountriesResponse.php +++ b/src/Banking/BankingListCountriesResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking; +namespace OnlyFansAPI\Banking; -use Onlyfansapi\Banking\BankingListCountriesResponse\_Meta; -use Onlyfansapi\Banking\BankingListCountriesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta; +use OnlyFansAPI\Banking\BankingListCountriesResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Banking\BankingListCountriesResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Banking\BankingListCountriesResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Banking\BankingListCountriesResponse\Data * * @phpstan-type BankingListCountriesResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Banking/BankingListCountriesResponse/Data.php b/src/Banking/BankingListCountriesResponse/Data.php index 3fc9ddbd..7aa91d1a 100644 --- a/src/Banking/BankingListCountriesResponse/Data.php +++ b/src/Banking/BankingListCountriesResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListCountriesResponse; +namespace OnlyFansAPI\Banking\BankingListCountriesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Banking/BankingListCountriesResponse/_Meta.php b/src/Banking/BankingListCountriesResponse/_Meta.php index 0ac2f006..6281c74e 100644 --- a/src/Banking/BankingListCountriesResponse/_Meta.php +++ b/src/Banking/BankingListCountriesResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListCountriesResponse; +namespace OnlyFansAPI\Banking\BankingListCountriesResponse; -use Onlyfansapi\Banking\BankingListCountriesResponse\_Meta\_Cache; -use Onlyfansapi\Banking\BankingListCountriesResponse\_Meta\_Credits; -use Onlyfansapi\Banking\BankingListCountriesResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta\_Cache; +use OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta\_Credits; +use OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Banking\BankingListCountriesResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Banking\BankingListCountriesResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Banking\BankingListCountriesResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Banking/BankingListCountriesResponse/_Meta/_Cache.php b/src/Banking/BankingListCountriesResponse/_Meta/_Cache.php index cdf6cf11..b4e6a207 100644 --- a/src/Banking/BankingListCountriesResponse/_Meta/_Cache.php +++ b/src/Banking/BankingListCountriesResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListCountriesResponse\_Meta; +namespace OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Banking/BankingListCountriesResponse/_Meta/_Credits.php b/src/Banking/BankingListCountriesResponse/_Meta/_Credits.php index 60ae76f6..e5f8b2b5 100644 --- a/src/Banking/BankingListCountriesResponse/_Meta/_Credits.php +++ b/src/Banking/BankingListCountriesResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListCountriesResponse\_Meta; +namespace OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Banking/BankingListCountriesResponse/_Meta/_RateLimits.php b/src/Banking/BankingListCountriesResponse/_Meta/_RateLimits.php index ce8e0145..530658d2 100644 --- a/src/Banking/BankingListCountriesResponse/_Meta/_RateLimits.php +++ b/src/Banking/BankingListCountriesResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\BankingListCountriesResponse\_Meta; +namespace OnlyFansAPI\Banking\BankingListCountriesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Banking/Details/DetailGetAccountCountryDetailsResponse.php b/src/Banking/Details/DetailGetAccountCountryDetailsResponse.php index 9598a550..9f5872cc 100644 --- a/src/Banking/Details/DetailGetAccountCountryDetailsResponse.php +++ b/src/Banking/Details/DetailGetAccountCountryDetailsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details; +namespace OnlyFansAPI\Banking\Details; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\Data * * @phpstan-type DetailGetAccountCountryDetailsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/Data.php b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/Data.php index bc8a05db..a68b5c90 100644 --- a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/Data.php +++ b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta.php b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta.php index c423f381..453bcc4f 100644 --- a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta.php +++ b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Cache; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Credits; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Cache; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Credits; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Cache.php b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Cache.php index eded3c61..435f38f2 100644 --- a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Cache.php +++ b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Credits.php b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Credits.php index 50589f92..f3b51814 100644 --- a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Credits.php +++ b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_RateLimits.php b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_RateLimits.php index cd5fe7b3..4223f5f2 100644 --- a/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_RateLimits.php +++ b/src/Banking/Details/DetailGetAccountCountryDetailsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Banking/Details/DetailGetBankDetailsResponse.php b/src/Banking/Details/DetailGetBankDetailsResponse.php index 6e488d23..5d07d466 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details; +namespace OnlyFansAPI\Banking\Details; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data * * @phpstan-type DetailGetBankDetailsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data.php index f9604431..416e1e26 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type PayoutShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout + * @phpstan-import-type PayoutShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout * * @phpstan-type DataShape = array{ * isPayoutDataFilled?: bool|null, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout.php index f3cb7252..f4cbadef 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FieldsShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields - * @phpstan-import-type UiMappingShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping + * @phpstan-import-type FieldsShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields + * @phpstan-import-type UiMappingShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping * * @phpstan-type PayoutShape = array{ * code?: string|null, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields.php index 6f76fb0c..6ac42403 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields.php @@ -2,31 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout; - -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout; + +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type AddressShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address - * @phpstan-import-type BankNameShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName - * @phpstan-import-type BicShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic - * @phpstan-import-type CityShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City - * @phpstan-import-type CountryShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country - * @phpstan-import-type FirstNameShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName - * @phpstan-import-type IbanShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban - * @phpstan-import-type LastNameShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName - * @phpstan-import-type PostalShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal + * @phpstan-import-type AddressShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address + * @phpstan-import-type BankNameShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName + * @phpstan-import-type BicShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic + * @phpstan-import-type CityShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City + * @phpstan-import-type CountryShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country + * @phpstan-import-type FirstNameShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName + * @phpstan-import-type IbanShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban + * @phpstan-import-type LastNameShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName + * @phpstan-import-type PostalShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal * * @phpstan-type FieldsShape = array{ * address?: null|Address|AddressShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address.php index 95347981..3a171bd0 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address\Label; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address\Label; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address\Label + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address\Label * * @phpstan-type AddressShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address/Label.php index 23d25e40..fa0c5a31 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Address/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Address; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName.php index 246c7274..73b62dd8 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName\Label; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName\Label; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName\Label + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName\Label * * @phpstan-type BankNameShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName/Label.php index bfdf2f6e..834d139b 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/BankName/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\BankName; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic.php index d123397f..1ba4e717 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic\Label; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic\Label; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic\Label + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic\Label * * @phpstan-type BicShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic/Label.php index 44c14245..8c66c381 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Bic/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Bic; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City.php index 7bbcfd56..ad34dd70 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City\Label; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City\Label; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City\Label + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City\Label * * @phpstan-type CityShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City/Label.php index 268c26e5..6f0d7998 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/City/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\City; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country.php index 3076923d..37751868 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country\Label; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country\Label; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country\Label + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country\Label * * @phpstan-type CountryShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country/Label.php index cc33bd54..af17fd02 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Country/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Country; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName.php index 05df77b7..97899d20 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Label; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Label; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Label - * @phpstan-import-type OninputShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Label + * @phpstan-import-type OninputShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput * * @phpstan-type FirstNameShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Label.php index 55f49c68..4c628591 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput.php index a93bf039..889ae40f 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput\Replace; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput\Replace; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type ReplaceShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput\Replace + * @phpstan-import-type ReplaceShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput\Replace * * @phpstan-type OninputShape = array{replace?: null|Replace|ReplaceShape} */ diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput/Replace.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput/Replace.php index c510aff1..3a199d51 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput/Replace.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/FirstName/Oninput/Replace.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\FirstName\Oninput; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ReplaceShape = array{flag?: string|null, pattern?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban.php index c8978876..8a006e40 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Label; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Regex; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Label; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Regex; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Label - * @phpstan-import-type RegexShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Regex + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Label + * @phpstan-import-type RegexShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban\Regex * * @phpstan-type IbanShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Label.php index 7ebfb12a..203e2f45 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Regex.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Regex.php index d49fa539..60e2bcaf 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Regex.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Iban/Regex.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Iban; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RegexShape = array{flag?: string|null, pattern?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName.php index c00a7eff..d88ec2d7 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Label; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Label; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Label - * @phpstan-import-type OninputShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Label + * @phpstan-import-type OninputShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput * * @phpstan-type LastNameShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Label.php index 29ae2d46..cd592435 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput.php index 0b745ea3..d78d075c 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput\Replace; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput\Replace; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type ReplaceShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput\Replace + * @phpstan-import-type ReplaceShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput\Replace * * @phpstan-type OninputShape = array{replace?: null|Replace|ReplaceShape} */ diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput/Replace.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput/Replace.php index 135acf46..6fb38ed7 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput/Replace.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/LastName/Oninput/Replace.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\LastName\Oninput; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ReplaceShape = array{flag?: string|null, pattern?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal.php index 8075ed3e..6dc47b35 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal\Label; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal\Label; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type LabelShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal\Label + * @phpstan-import-type LabelShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal\Label * * @phpstan-type PostalShape = array{ * label?: null|Label|LabelShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal/Label.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal/Label.php index da440515..c0bb516d 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal/Label.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/Fields/Postal/Label.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\Fields\Postal; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping.php index cc74a879..1a9dcf47 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\BtnSubmit; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Title; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\BtnSubmit; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Title; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type AlertShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert - * @phpstan-import-type BtnSubmitShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\BtnSubmit - * @phpstan-import-type TitleShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Title + * @phpstan-import-type AlertShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert + * @phpstan-import-type BtnSubmitShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\BtnSubmit + * @phpstan-import-type TitleShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Title * * @phpstan-type UiMappingShape = array{ * alert?: null|Alert|AlertShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert.php index b8607ae9..8e71a26b 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert\Text; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert\Text; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type TextShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert\Text + * @phpstan-import-type TextShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert\Text * * @phpstan-type AlertShape = array{ * class?: string|null, text?: null|Text|TextShape diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert/Text.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert/Text.php index c808bc3b..b0036d86 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert/Text.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Alert/Text.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping\Alert; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TextShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/BtnSubmit.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/BtnSubmit.php index 97a33999..221e5798 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/BtnSubmit.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/BtnSubmit.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type BtnSubmitShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Title.php b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Title.php index b4891e3c..7a539582 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Title.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/Data/Payout/UiMapping/Title.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\Data\Payout\UiMapping; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TitleShape = array{key?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta.php b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta.php index b63d4e4d..76b5471e 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Cache; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Credits; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Cache; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Credits; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Cache.php b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Cache.php index 65809147..2f96352d 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Cache.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Credits.php b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Credits.php index ff3b0ec4..35abd2d9 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Credits.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_RateLimits.php b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_RateLimits.php index ce3672bb..5d0cd1d3 100644 --- a/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_RateLimits.php +++ b/src/Banking/Details/DetailGetBankDetailsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Banking/Details/DetailGetDac7FormDetailsResponse.php b/src/Banking/Details/DetailGetDac7FormDetailsResponse.php index 3c6dd957..d5b030ca 100644 --- a/src/Banking/Details/DetailGetDac7FormDetailsResponse.php +++ b/src/Banking/Details/DetailGetDac7FormDetailsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details; +namespace OnlyFansAPI\Banking\Details; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\Data * * @phpstan-type DetailGetDac7FormDetailsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Banking/Details/DetailGetDac7FormDetailsResponse/Data.php b/src/Banking/Details/DetailGetDac7FormDetailsResponse/Data.php index c5786234..e2ee0962 100644 --- a/src/Banking/Details/DetailGetDac7FormDetailsResponse/Data.php +++ b/src/Banking/Details/DetailGetDac7FormDetailsResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta.php b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta.php index 1c78b772..01e572ff 100644 --- a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta.php +++ b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Cache; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Credits; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Cache; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Credits; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Cache.php b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Cache.php index 765f643b..6f20aea4 100644 --- a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Cache.php +++ b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Credits.php b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Credits.php index d3001f02..2773d355 100644 --- a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Credits.php +++ b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_RateLimits.php b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_RateLimits.php index 45ddf745..601d7138 100644 --- a/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_RateLimits.php +++ b/src/Banking/Details/DetailGetDac7FormDetailsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse.php index 7fa5d65a..3158acb2 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details; +namespace OnlyFansAPI\Banking\Details; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data * * @phpstan-type DetailGetLegalAndTaxStatusResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data.php index d481ceb3..881d6851 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Dac7; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Tax; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Dac7; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Tax; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type Dac7Shape from \Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Dac7 - * @phpstan-import-type TaxShape from \Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Tax + * @phpstan-import-type Dac7Shape from \OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Dac7 + * @phpstan-import-type TaxShape from \OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data\Tax * * @phpstan-type DataShape = array{ * canChangePayoutType?: bool|null, diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Dac7.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Dac7.php index 3da293f9..52a015ba 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Dac7.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Dac7.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type Dac7Shape = array{ diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Tax.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Tax.php index bffe9c67..97f5ddf4 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Tax.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/Data/Tax.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TaxShape = array{ diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta.php index d99e7903..9ca4a229 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Cache; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Credits; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Cache; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Credits; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Cache.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Cache.php index 13e66d65..e5774174 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Cache.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Credits.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Credits.php index 12b2b373..db95d1b9 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Credits.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_RateLimits.php b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_RateLimits.php index 26aad909..8ff5d263 100644 --- a/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_RateLimits.php +++ b/src/Banking/Details/DetailGetLegalAndTaxStatusResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse.php index 10302399..13796e54 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details; +namespace OnlyFansAPI\Banking\Details; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data * * @phpstan-type DetailGetLegalFormDetailsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data.php index ee0ce218..54b16ab1 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type DocumentTypeShape from \Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType + * @phpstan-import-type DocumentTypeShape from \OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType * * @phpstan-type DataShape = array{ * dateOfBirth?: string|null, diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType.php index f6604405..00b294fa 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType\Value; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType\Value; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type ValueShape from \Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType\Value + * @phpstan-import-type ValueShape from \OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType\Value * * @phpstan-type DocumentTypeShape = array{values?: list|null} */ diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType/Value.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType/Value.php index 7976498a..3d22a4d0 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType/Value.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse/Data/DocumentType/Value.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\Data\DocumentType; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ValueShape = array{code?: string|null, name?: string|null} diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta.php index 6acd2b49..b5471ed3 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Cache; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Credits; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Cache; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Credits; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Cache.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Cache.php index 501bb1d3..321cc4cb 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Cache.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Credits.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Credits.php index 790e1630..3267b7b7 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Credits.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_RateLimits.php b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_RateLimits.php index ebb52dc1..85367495 100644 --- a/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_RateLimits.php +++ b/src/Banking/Details/DetailGetLegalFormDetailsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; +namespace OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Bundles/BundleCreateParams.php b/src/Bundles/BundleCreateParams.php index c8f4cfaf..dcaf115b 100644 --- a/src/Bundles/BundleCreateParams.php +++ b/src/Bundles/BundleCreateParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles; +namespace OnlyFansAPI\Bundles; -use Onlyfansapi\Bundles\BundleCreateParams\Discount; -use Onlyfansapi\Bundles\BundleCreateParams\Duration; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Bundles\BundleCreateParams\Discount; +use OnlyFansAPI\Bundles\BundleCreateParams\Duration; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a new bundle for the account. * - * @see Onlyfansapi\Services\BundlesService::create() + * @see OnlyFansAPI\Services\BundlesService::create() * * @phpstan-type BundleCreateParamsShape = array{ * discount: Discount|value-of, duration: Duration|value-of diff --git a/src/Bundles/BundleCreateParams/Discount.php b/src/Bundles/BundleCreateParams/Discount.php index 33e7f371..6d78071c 100644 --- a/src/Bundles/BundleCreateParams/Discount.php +++ b/src/Bundles/BundleCreateParams/Discount.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleCreateParams; +namespace OnlyFansAPI\Bundles\BundleCreateParams; /** * The bundle's discount percentage. diff --git a/src/Bundles/BundleCreateParams/Duration.php b/src/Bundles/BundleCreateParams/Duration.php index 1d0bcd97..997976e8 100644 --- a/src/Bundles/BundleCreateParams/Duration.php +++ b/src/Bundles/BundleCreateParams/Duration.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleCreateParams; +namespace OnlyFansAPI\Bundles\BundleCreateParams; /** * The bundle's duration in months. diff --git a/src/Bundles/BundleDeleteParams.php b/src/Bundles/BundleDeleteParams.php index b63e9658..dfc0eb84 100644 --- a/src/Bundles/BundleDeleteParams.php +++ b/src/Bundles/BundleDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles; +namespace OnlyFansAPI\Bundles; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a bundle for the account. * - * @see Onlyfansapi\Services\BundlesService::delete() + * @see OnlyFansAPI\Services\BundlesService::delete() * * @phpstan-type BundleDeleteParamsShape = array{account: string} */ diff --git a/src/Bundles/BundleDeleteResponse.php b/src/Bundles/BundleDeleteResponse.php index 951c7bd3..875ca825 100644 --- a/src/Bundles/BundleDeleteResponse.php +++ b/src/Bundles/BundleDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles; +namespace OnlyFansAPI\Bundles; -use Onlyfansapi\Bundles\BundleDeleteResponse\_Meta; -use Onlyfansapi\Bundles\BundleDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta; +use OnlyFansAPI\Bundles\BundleDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Bundles\BundleDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Bundles\BundleDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Bundles\BundleDeleteResponse\Data * * @phpstan-type BundleDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Bundles/BundleDeleteResponse/Data.php b/src/Bundles/BundleDeleteResponse/Data.php index 70cd7773..810cf438 100644 --- a/src/Bundles/BundleDeleteResponse/Data.php +++ b/src/Bundles/BundleDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleDeleteResponse; +namespace OnlyFansAPI\Bundles\BundleDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Bundles/BundleDeleteResponse/_Meta.php b/src/Bundles/BundleDeleteResponse/_Meta.php index 09819d2e..7f5badcf 100644 --- a/src/Bundles/BundleDeleteResponse/_Meta.php +++ b/src/Bundles/BundleDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleDeleteResponse; +namespace OnlyFansAPI\Bundles\BundleDeleteResponse; -use Onlyfansapi\Bundles\BundleDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Bundles\BundleDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Bundles\BundleDeleteResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Bundles\BundleDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Bundles\BundleDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Bundles\BundleDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Bundles/BundleDeleteResponse/_Meta/_Cache.php b/src/Bundles/BundleDeleteResponse/_Meta/_Cache.php index 711a738e..b9bd3272 100644 --- a/src/Bundles/BundleDeleteResponse/_Meta/_Cache.php +++ b/src/Bundles/BundleDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleDeleteResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Bundles/BundleDeleteResponse/_Meta/_Credits.php b/src/Bundles/BundleDeleteResponse/_Meta/_Credits.php index 85a88ead..2e80432d 100644 --- a/src/Bundles/BundleDeleteResponse/_Meta/_Credits.php +++ b/src/Bundles/BundleDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleDeleteResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Bundles/BundleDeleteResponse/_Meta/_RateLimits.php b/src/Bundles/BundleDeleteResponse/_Meta/_RateLimits.php index ef865c4d..337b87e0 100644 --- a/src/Bundles/BundleDeleteResponse/_Meta/_RateLimits.php +++ b/src/Bundles/BundleDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleDeleteResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Bundles/BundleListResponse.php b/src/Bundles/BundleListResponse.php index 34765722..6a4cac4e 100644 --- a/src/Bundles/BundleListResponse.php +++ b/src/Bundles/BundleListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles; +namespace OnlyFansAPI\Bundles; -use Onlyfansapi\Bundles\BundleListResponse\_Meta; -use Onlyfansapi\Bundles\BundleListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Bundles\BundleListResponse\_Meta; +use OnlyFansAPI\Bundles\BundleListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Bundles\BundleListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Bundles\BundleListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Bundles\BundleListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Bundles\BundleListResponse\Data * * @phpstan-type BundleListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Bundles/BundleListResponse/Data.php b/src/Bundles/BundleListResponse/Data.php index 9969cf82..f6bd381d 100644 --- a/src/Bundles/BundleListResponse/Data.php +++ b/src/Bundles/BundleListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleListResponse; +namespace OnlyFansAPI\Bundles\BundleListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Bundles/BundleListResponse/_Meta.php b/src/Bundles/BundleListResponse/_Meta.php index 7b702da0..6d75b55b 100644 --- a/src/Bundles/BundleListResponse/_Meta.php +++ b/src/Bundles/BundleListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleListResponse; +namespace OnlyFansAPI\Bundles\BundleListResponse; -use Onlyfansapi\Bundles\BundleListResponse\_Meta\_Cache; -use Onlyfansapi\Bundles\BundleListResponse\_Meta\_Credits; -use Onlyfansapi\Bundles\BundleListResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Bundles\BundleListResponse\_Meta\_Cache; +use OnlyFansAPI\Bundles\BundleListResponse\_Meta\_Credits; +use OnlyFansAPI\Bundles\BundleListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Bundles\BundleListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Bundles\BundleListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Bundles\BundleListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Bundles\BundleListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Bundles\BundleListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Bundles\BundleListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Bundles/BundleListResponse/_Meta/_Cache.php b/src/Bundles/BundleListResponse/_Meta/_Cache.php index 1c73dfa8..6a569eef 100644 --- a/src/Bundles/BundleListResponse/_Meta/_Cache.php +++ b/src/Bundles/BundleListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleListResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Bundles/BundleListResponse/_Meta/_Credits.php b/src/Bundles/BundleListResponse/_Meta/_Credits.php index 5c74776d..bd6ad17f 100644 --- a/src/Bundles/BundleListResponse/_Meta/_Credits.php +++ b/src/Bundles/BundleListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleListResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Bundles/BundleListResponse/_Meta/_RateLimits.php b/src/Bundles/BundleListResponse/_Meta/_RateLimits.php index 8128a211..4f81ed8e 100644 --- a/src/Bundles/BundleListResponse/_Meta/_RateLimits.php +++ b/src/Bundles/BundleListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleListResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Bundles/BundleNewResponse.php b/src/Bundles/BundleNewResponse.php index 3841323f..c1000967 100644 --- a/src/Bundles/BundleNewResponse.php +++ b/src/Bundles/BundleNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles; +namespace OnlyFansAPI\Bundles; -use Onlyfansapi\Bundles\BundleNewResponse\_Meta; -use Onlyfansapi\Bundles\BundleNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Bundles\BundleNewResponse\_Meta; +use OnlyFansAPI\Bundles\BundleNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Bundles\BundleNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Bundles\BundleNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Bundles\BundleNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Bundles\BundleNewResponse\Data * * @phpstan-type BundleNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Bundles/BundleNewResponse/Data.php b/src/Bundles/BundleNewResponse/Data.php index 6d6bd4ae..25305b8f 100644 --- a/src/Bundles/BundleNewResponse/Data.php +++ b/src/Bundles/BundleNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleNewResponse; +namespace OnlyFansAPI\Bundles\BundleNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Bundles/BundleNewResponse/_Meta.php b/src/Bundles/BundleNewResponse/_Meta.php index 51a6361a..5d0e97b1 100644 --- a/src/Bundles/BundleNewResponse/_Meta.php +++ b/src/Bundles/BundleNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleNewResponse; +namespace OnlyFansAPI\Bundles\BundleNewResponse; -use Onlyfansapi\Bundles\BundleNewResponse\_Meta\_Cache; -use Onlyfansapi\Bundles\BundleNewResponse\_Meta\_Credits; -use Onlyfansapi\Bundles\BundleNewResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Bundles\BundleNewResponse\_Meta\_Cache; +use OnlyFansAPI\Bundles\BundleNewResponse\_Meta\_Credits; +use OnlyFansAPI\Bundles\BundleNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Bundles\BundleNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Bundles\BundleNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Bundles\BundleNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Bundles\BundleNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Bundles\BundleNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Bundles\BundleNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Bundles/BundleNewResponse/_Meta/_Cache.php b/src/Bundles/BundleNewResponse/_Meta/_Cache.php index 1baa721c..2426db15 100644 --- a/src/Bundles/BundleNewResponse/_Meta/_Cache.php +++ b/src/Bundles/BundleNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleNewResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Bundles/BundleNewResponse/_Meta/_Credits.php b/src/Bundles/BundleNewResponse/_Meta/_Credits.php index 8817c35c..37b78807 100644 --- a/src/Bundles/BundleNewResponse/_Meta/_Credits.php +++ b/src/Bundles/BundleNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleNewResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Bundles/BundleNewResponse/_Meta/_RateLimits.php b/src/Bundles/BundleNewResponse/_Meta/_RateLimits.php index ae8d7720..b76a92be 100644 --- a/src/Bundles/BundleNewResponse/_Meta/_RateLimits.php +++ b/src/Bundles/BundleNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Bundles\BundleNewResponse\_Meta; +namespace OnlyFansAPI\Bundles\BundleNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chargebacks/ChargebackCalculateRatioParams.php b/src/Chargebacks/ChargebackCalculateRatioParams.php index b4a5aa63..0c5d9245 100644 --- a/src/Chargebacks/ChargebackCalculateRatioParams.php +++ b/src/Chargebacks/ChargebackCalculateRatioParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks; +namespace OnlyFansAPI\Chargebacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * The Chargeback Ratio reflects the number of chargebacks compared to the total number of payments as a percentage. Ideally, your Chargeback Ratio should be under 1%. * - * @see Onlyfansapi\Services\ChargebacksService::calculateRatio() + * @see OnlyFansAPI\Services\ChargebacksService::calculateRatio() * * @phpstan-type ChargebackCalculateRatioParamsShape = array{ * endDate?: string|null, startDate?: string|null diff --git a/src/Chargebacks/ChargebackCalculateRatioResponse.php b/src/Chargebacks/ChargebackCalculateRatioResponse.php index fff9fb31..c9ba2d3b 100644 --- a/src/Chargebacks/ChargebackCalculateRatioResponse.php +++ b/src/Chargebacks/ChargebackCalculateRatioResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks; +namespace OnlyFansAPI\Chargebacks; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\Data * * @phpstan-type ChargebackCalculateRatioResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chargebacks/ChargebackCalculateRatioResponse/Data.php b/src/Chargebacks/ChargebackCalculateRatioResponse/Data.php index 33b37550..f28bef6e 100644 --- a/src/Chargebacks/ChargebackCalculateRatioResponse/Data.php +++ b/src/Chargebacks/ChargebackCalculateRatioResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse; +namespace OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{chargebacksRatio?: float|null} diff --git a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta.php b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta.php index 43e65817..d65e2d40 100644 --- a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta.php +++ b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse; +namespace OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Cache; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Credits; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Cache; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Credits; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Cache.php b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Cache.php index 75275e96..9b29e80d 100644 --- a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Cache.php +++ b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Credits.php b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Credits.php index 28724267..04b5967a 100644 --- a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Credits.php +++ b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_RateLimits.php b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_RateLimits.php index 81996d3a..024614c5 100644 --- a/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_RateLimits.php +++ b/src/Chargebacks/ChargebackCalculateRatioResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chargebacks/ChargebackListParams.php b/src/Chargebacks/ChargebackListParams.php index 33ff7c21..a9f7dfe0 100644 --- a/src/Chargebacks/ChargebackListParams.php +++ b/src/Chargebacks/ChargebackListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks; +namespace OnlyFansAPI\Chargebacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve a list of chargebacks within a specified date range. Possible statuses are `loading`, `done`, `undo`. * - * @see Onlyfansapi\Services\ChargebacksService::list() + * @see OnlyFansAPI\Services\ChargebacksService::list() * * @phpstan-type ChargebackListParamsShape = array{ * endDate?: string|null, diff --git a/src/Chargebacks/ChargebackListResponse.php b/src/Chargebacks/ChargebackListResponse.php index 66766994..dfdc5e40 100644 --- a/src/Chargebacks/ChargebackListResponse.php +++ b/src/Chargebacks/ChargebackListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks; +namespace OnlyFansAPI\Chargebacks; -use Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta; -use Onlyfansapi\Chargebacks\ChargebackListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\Data * * @phpstan-type ChargebackListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chargebacks/ChargebackListResponse/Data.php b/src/Chargebacks/ChargebackListResponse/Data.php index 16ea89a9..ac497767 100644 --- a/src/Chargebacks/ChargebackListResponse/Data.php +++ b/src/Chargebacks/ChargebackListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse; -use Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_ * * @phpstan-type DataShape = array{ * list?: list|null, marker?: int|null diff --git a/src/Chargebacks/ChargebackListResponse/Data/List_.php b/src/Chargebacks/ChargebackListResponse/Data/List_.php index df02653c..334a7e6a 100644 --- a/src/Chargebacks/ChargebackListResponse/Data/List_.php +++ b/src/Chargebacks/ChargebackListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse\Data; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse\Data; -use Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_\Payment; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_\Payment; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type PaymentShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_\Payment + * @phpstan-import-type PaymentShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_\Payment * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Chargebacks/ChargebackListResponse/Data/List_/Payment.php b/src/Chargebacks/ChargebackListResponse/Data/List_/Payment.php index 20219cef..56aa1c5c 100644 --- a/src/Chargebacks/ChargebackListResponse/Data/List_/Payment.php +++ b/src/Chargebacks/ChargebackListResponse/Data/List_/Payment.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_; -use Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_\Payment\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_\Payment\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type UserShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_\Payment\User + * @phpstan-import-type UserShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_\Payment\User * * @phpstan-type PaymentShape = array{ * id?: string|null, diff --git a/src/Chargebacks/ChargebackListResponse/Data/List_/Payment/User.php b/src/Chargebacks/ChargebackListResponse/Data/List_/Payment/User.php index c2ca54e3..13d3d98f 100644 --- a/src/Chargebacks/ChargebackListResponse/Data/List_/Payment/User.php +++ b/src/Chargebacks/ChargebackListResponse/Data/List_/Payment/User.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse\Data\List_\Payment; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse\Data\List_\Payment; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type UserShape = array{ diff --git a/src/Chargebacks/ChargebackListResponse/_Meta.php b/src/Chargebacks/ChargebackListResponse/_Meta.php index 8dc0159c..72f08027 100644 --- a/src/Chargebacks/ChargebackListResponse/_Meta.php +++ b/src/Chargebacks/ChargebackListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse; -use Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta\_Cache; -use Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta\_Credits; -use Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta\_Cache; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta\_Credits; +use OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chargebacks/ChargebackListResponse/_Meta/_Cache.php b/src/Chargebacks/ChargebackListResponse/_Meta/_Cache.php index af19128a..3c26c721 100644 --- a/src/Chargebacks/ChargebackListResponse/_Meta/_Cache.php +++ b/src/Chargebacks/ChargebackListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chargebacks/ChargebackListResponse/_Meta/_Credits.php b/src/Chargebacks/ChargebackListResponse/_Meta/_Credits.php index bb3d3c7e..470103b0 100644 --- a/src/Chargebacks/ChargebackListResponse/_Meta/_Credits.php +++ b/src/Chargebacks/ChargebackListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chargebacks/ChargebackListResponse/_Meta/_RateLimits.php b/src/Chargebacks/ChargebackListResponse/_Meta/_RateLimits.php index ec961534..777936b5 100644 --- a/src/Chargebacks/ChargebackListResponse/_Meta/_RateLimits.php +++ b/src/Chargebacks/ChargebackListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chargebacks/ChargebackListStatisticsParams.php b/src/Chargebacks/ChargebackListStatisticsParams.php index 40f8b511..6861c08f 100644 --- a/src/Chargebacks/ChargebackListStatisticsParams.php +++ b/src/Chargebacks/ChargebackListStatisticsParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks; +namespace OnlyFansAPI\Chargebacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List chargeback counts & amounts per hour, day or month. * - * @see Onlyfansapi\Services\ChargebacksService::listStatistics() + * @see OnlyFansAPI\Services\ChargebacksService::listStatistics() * * @phpstan-type ChargebackListStatisticsParamsShape = array{ * endDate?: string|null, startDate?: string|null diff --git a/src/Chargebacks/ChargebackListStatisticsResponse.php b/src/Chargebacks/ChargebackListStatisticsResponse.php index e2c9ca3c..db2581b4 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks; +namespace OnlyFansAPI\Chargebacks; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data * * @phpstan-type ChargebackListStatisticsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chargebacks/ChargebackListStatisticsResponse/Data.php b/src/Chargebacks/ChargebackListStatisticsResponse/Data.php index caff3025..ff4c6f46 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse/Data.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse; +namespace OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data\ChartAmount; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data\ChartCount; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data\ChartAmount; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data\ChartCount; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type ChartAmountShape from \Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data\ChartAmount - * @phpstan-import-type ChartCountShape from \Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data\ChartCount + * @phpstan-import-type ChartAmountShape from \OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data\ChartAmount + * @phpstan-import-type ChartCountShape from \OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data\ChartCount * * @phpstan-type DataShape = array{ * chartAmount?: list|null, diff --git a/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartAmount.php b/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartAmount.php index d69f5e96..b96992ba 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartAmount.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartAmount.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data; +namespace OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartAmountShape = array{count?: float|null, date?: string|null} diff --git a/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartCount.php b/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartCount.php index a4f586a6..ebfd883e 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartCount.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse/Data/ChartCount.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\Data; +namespace OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartCountShape = array{count?: int|null, date?: string|null} diff --git a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta.php b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta.php index 30492be4..aa947d44 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse; +namespace OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Cache; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Credits; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Cache; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Credits; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Cache.php b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Cache.php index 926c2787..a680097c 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Cache.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Credits.php b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Credits.php index 15c902af..5110a8ce 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Credits.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_RateLimits.php b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_RateLimits.php index 19edc8a1..6457c82a 100644 --- a/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_RateLimits.php +++ b/src/Chargebacks/ChargebackListStatisticsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse\_Meta; +namespace OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatDeleteParams.php b/src/Chats/ChatDeleteParams.php index f1b79439..7ad634a4 100644 --- a/src/Chats/ChatDeleteParams.php +++ b/src/Chats/ChatDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a specific chat. * - * @see Onlyfansapi\Services\ChatsService::delete() + * @see OnlyFansAPI\Services\ChatsService::delete() * * @phpstan-type ChatDeleteParamsShape = array{account: string} */ diff --git a/src/Chats/ChatDeleteResponse.php b/src/Chats/ChatDeleteResponse.php index 0e683963..e102b3a7 100644 --- a/src/Chats/ChatDeleteResponse.php +++ b/src/Chats/ChatDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatDeleteResponse\_Meta; -use Onlyfansapi\Chats\ChatDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatDeleteResponse\_Meta; +use OnlyFansAPI\Chats\ChatDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatDeleteResponse\Data * * @phpstan-type ChatDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatDeleteResponse/Data.php b/src/Chats/ChatDeleteResponse/Data.php index 5c2b844d..2928bd17 100644 --- a/src/Chats/ChatDeleteResponse/Data.php +++ b/src/Chats/ChatDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatDeleteResponse; +namespace OnlyFansAPI\Chats\ChatDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/ChatDeleteResponse/_Meta.php b/src/Chats/ChatDeleteResponse/_Meta.php index 279c4b3c..054f8125 100644 --- a/src/Chats/ChatDeleteResponse/_Meta.php +++ b/src/Chats/ChatDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatDeleteResponse; +namespace OnlyFansAPI\Chats\ChatDeleteResponse; -use Onlyfansapi\Chats\ChatDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatDeleteResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatDeleteResponse/_Meta/_Cache.php b/src/Chats/ChatDeleteResponse/_Meta/_Cache.php index 0dbbdc54..29590ccb 100644 --- a/src/Chats/ChatDeleteResponse/_Meta/_Cache.php +++ b/src/Chats/ChatDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatDeleteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatDeleteResponse/_Meta/_Credits.php b/src/Chats/ChatDeleteResponse/_Meta/_Credits.php index 87743d2d..e1098101 100644 --- a/src/Chats/ChatDeleteResponse/_Meta/_Credits.php +++ b/src/Chats/ChatDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatDeleteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatDeleteResponse/_Meta/_RateLimits.php b/src/Chats/ChatDeleteResponse/_Meta/_RateLimits.php index e9658b21..8ecfab42 100644 --- a/src/Chats/ChatDeleteResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatDeleteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatHideParams.php b/src/Chats/ChatHideParams.php index 1db3c487..12cabb37 100644 --- a/src/Chats/ChatHideParams.php +++ b/src/Chats/ChatHideParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Hide a specific chat from the chat list. To unhide this chat, send a new message to the user. * - * @see Onlyfansapi\Services\ChatsService::hide() + * @see OnlyFansAPI\Services\ChatsService::hide() * * @phpstan-type ChatHideParamsShape = array{account: string} */ diff --git a/src/Chats/ChatHideResponse.php b/src/Chats/ChatHideResponse.php index f5070676..87ce55de 100644 --- a/src/Chats/ChatHideResponse.php +++ b/src/Chats/ChatHideResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatHideResponse\_Meta; -use Onlyfansapi\Chats\ChatHideResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatHideResponse\_Meta; +use OnlyFansAPI\Chats\ChatHideResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatHideResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatHideResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatHideResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatHideResponse\Data * * @phpstan-type ChatHideResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatHideResponse/Data.php b/src/Chats/ChatHideResponse/Data.php index 59408bbb..039cf91c 100644 --- a/src/Chats/ChatHideResponse/Data.php +++ b/src/Chats/ChatHideResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatHideResponse; +namespace OnlyFansAPI\Chats\ChatHideResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/ChatHideResponse/_Meta.php b/src/Chats/ChatHideResponse/_Meta.php index b9836c11..abf8316f 100644 --- a/src/Chats/ChatHideResponse/_Meta.php +++ b/src/Chats/ChatHideResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatHideResponse; +namespace OnlyFansAPI\Chats\ChatHideResponse; -use Onlyfansapi\Chats\ChatHideResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatHideResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatHideResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatHideResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatHideResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatHideResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatHideResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatHideResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatHideResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatHideResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatHideResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatHideResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatHideResponse/_Meta/_Cache.php b/src/Chats/ChatHideResponse/_Meta/_Cache.php index 97216a3a..473609fc 100644 --- a/src/Chats/ChatHideResponse/_Meta/_Cache.php +++ b/src/Chats/ChatHideResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatHideResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatHideResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatHideResponse/_Meta/_Credits.php b/src/Chats/ChatHideResponse/_Meta/_Credits.php index 6b09511a..e5592898 100644 --- a/src/Chats/ChatHideResponse/_Meta/_Credits.php +++ b/src/Chats/ChatHideResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatHideResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatHideResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatHideResponse/_Meta/_RateLimits.php b/src/Chats/ChatHideResponse/_Meta/_RateLimits.php index 390828a4..018f773e 100644 --- a/src/Chats/ChatHideResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatHideResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatHideResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatHideResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatListMediaParams.php b/src/Chats/ChatListMediaParams.php index 05063d15..fb3cc6a9 100644 --- a/src/Chats/ChatListMediaParams.php +++ b/src/Chats/ChatListMediaParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatListMediaParams\Type; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListMediaParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List media files shared in a specific chat. * - * @see Onlyfansapi\Services\ChatsService::listMedia() + * @see OnlyFansAPI\Services\ChatsService::listMedia() * * @phpstan-type ChatListMediaParamsShape = array{ * account: string, @@ -46,7 +46,7 @@ final class ChatListMediaParams implements BaseModel public ?string $offset; /** - * Whether to skip user details in response (all or none). Default = all. + * Whether to skip user details in the response (`all` or `none`). Defaults to `all`. */ #[Optional] public ?string $skipUsers; @@ -135,7 +135,7 @@ public function withOffset(string $offset): self } /** - * Whether to skip user details in response (all or none). Default = all. + * Whether to skip user details in the response (`all` or `none`). Defaults to `all`. */ public function withSkipUsers(string $skipUsers): self { diff --git a/src/Chats/ChatListMediaParams/Type.php b/src/Chats/ChatListMediaParams/Type.php index 3afde23f..1ab96804 100644 --- a/src/Chats/ChatListMediaParams/Type.php +++ b/src/Chats/ChatListMediaParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaParams; +namespace OnlyFansAPI\Chats\ChatListMediaParams; /** * Filter by specific media types. Keep empty to return all. diff --git a/src/Chats/ChatListMediaResponse.php b/src/Chats/ChatListMediaResponse.php index 6b6f5d05..0b275ee2 100644 --- a/src/Chats/ChatListMediaResponse.php +++ b/src/Chats/ChatListMediaResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatListMediaResponse\_Meta; -use Onlyfansapi\Chats\ChatListMediaResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListMediaResponse\_Meta; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatListMediaResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatListMediaResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data * * @phpstan-type ChatListMediaResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatListMediaResponse/Data.php b/src/Chats/ChatListMediaResponse/Data.php index c7085013..bcbae533 100644 --- a/src/Chats/ChatListMediaResponse/Data.php +++ b/src/Chats/ChatListMediaResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse; +namespace OnlyFansAPI\Chats\ChatListMediaResponse; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, diff --git a/src/Chats/ChatListMediaResponse/Data/List_.php b/src/Chats/ChatListMediaResponse/Data/List_.php index 79318ed0..ed8910c7 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_.php +++ b/src/Chats/ChatListMediaResponse/Data/List_.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\FromUser; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\FromUser; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FromUserShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\FromUser - * @phpstan-import-type MediaShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media + * @phpstan-import-type FromUserShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\FromUser + * @phpstan-import-type MediaShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Chats/ChatListMediaResponse/Data/List_/FromUser.php b/src/Chats/ChatListMediaResponse/Data/List_/FromUser.php index e47ef84c..157b1359 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/FromUser.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/FromUser.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FromUserShape = array{id?: int|null, _view?: string|null} diff --git a/src/Chats/ChatListMediaResponse/Data/List_/Media.php b/src/Chats/ChatListMediaResponse/Data/List_/Media.php index 84f45b89..4be96b64 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/Media.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\VideoSources; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files.php b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files.php index e0ad89e3..d0892593 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\Full; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\Preview; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\SquarePreview; -use Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\Thumb; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\Full; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\Preview; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\SquarePreview; +use OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Full.php b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Full.php index 889069ae..6fa320ca 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Full.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Preview.php b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Preview.php index d40d702e..7f035b9e 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Preview.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Preview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PreviewShape = array{ diff --git a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/SquarePreview.php b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/SquarePreview.php index 41eadd82..464ca688 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/SquarePreview.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/SquarePreview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SquarePreviewShape = array{ diff --git a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Thumb.php b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Thumb.php index c4e99838..053763a0 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Thumb.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Chats/ChatListMediaResponse/Data/List_/Media/VideoSources.php b/src/Chats/ChatListMediaResponse/Data/List_/Media/VideoSources.php index 711f629d..07ce8e82 100644 --- a/src/Chats/ChatListMediaResponse/Data/List_/Media/VideoSources.php +++ b/src/Chats/ChatListMediaResponse/Data/List_/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\Data\List_\Media; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\Data\List_\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Chats/ChatListMediaResponse/_Meta.php b/src/Chats/ChatListMediaResponse/_Meta.php index 1690e130..f3889d46 100644 --- a/src/Chats/ChatListMediaResponse/_Meta.php +++ b/src/Chats/ChatListMediaResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse; +namespace OnlyFansAPI\Chats\ChatListMediaResponse; -use Onlyfansapi\Chats\ChatListMediaResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatListMediaResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatListMediaResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListMediaResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatListMediaResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatListMediaResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatListMediaResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatListMediaResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatListMediaResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatListMediaResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatListMediaResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatListMediaResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatListMediaResponse/_Meta/_Cache.php b/src/Chats/ChatListMediaResponse/_Meta/_Cache.php index 3ace076d..2b147ed8 100644 --- a/src/Chats/ChatListMediaResponse/_Meta/_Cache.php +++ b/src/Chats/ChatListMediaResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatListMediaResponse/_Meta/_Credits.php b/src/Chats/ChatListMediaResponse/_Meta/_Credits.php index be99df2d..c3fbd120 100644 --- a/src/Chats/ChatListMediaResponse/_Meta/_Credits.php +++ b/src/Chats/ChatListMediaResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatListMediaResponse/_Meta/_RateLimits.php b/src/Chats/ChatListMediaResponse/_Meta/_RateLimits.php index e2ec0f49..b1a584dd 100644 --- a/src/Chats/ChatListMediaResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatListMediaResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListMediaResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatListMediaResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatListParams.php b/src/Chats/ChatListParams.php index bc9f9d52..9eeccab4 100644 --- a/src/Chats/ChatListParams.php +++ b/src/Chats/ChatListParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatListParams\Filter; -use Onlyfansapi\Chats\ChatListParams\Order; -use Onlyfansapi\Chats\ChatListParams\SkipUsers; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListParams\Filter; +use OnlyFansAPI\Chats\ChatListParams\Order; +use OnlyFansAPI\Chats\ChatListParams\SkipUsers; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get the list of chats for an Account. * - * @see Onlyfansapi\Services\ChatsService::list() + * @see OnlyFansAPI\Services\ChatsService::list() * * @phpstan-type ChatListParamsShape = array{ * filter?: null|Filter|value-of, @@ -67,7 +67,7 @@ final class ChatListParams implements BaseModel public ?string $query; /** - * Whether to skip user details in response (all or none). Default = all. + * Whether to skip user details in the response (`all` or `none`). Defaults to `all`. * * @var value-of|null $skipUsers */ @@ -168,7 +168,7 @@ public function withQuery(string $query): self } /** - * Whether to skip user details in response (all or none). Default = all. + * Whether to skip user details in the response (`all` or `none`). Defaults to `all`. * * @param SkipUsers|value-of $skipUsers */ diff --git a/src/Chats/ChatListParams/Filter.php b/src/Chats/ChatListParams/Filter.php index f6d30f8d..a78bb143 100644 --- a/src/Chats/ChatListParams/Filter.php +++ b/src/Chats/ChatListParams/Filter.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListParams; +namespace OnlyFansAPI\Chats\ChatListParams; /** * Optionally, filter the chats by type. diff --git a/src/Chats/ChatListParams/Order.php b/src/Chats/ChatListParams/Order.php index 46040522..c4648bfd 100644 --- a/src/Chats/ChatListParams/Order.php +++ b/src/Chats/ChatListParams/Order.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListParams; +namespace OnlyFansAPI\Chats\ChatListParams; /** * Sort order for chats (recent or old). Default = recent. diff --git a/src/Chats/ChatListParams/SkipUsers.php b/src/Chats/ChatListParams/SkipUsers.php index d6b6b7e2..f7a3997c 100644 --- a/src/Chats/ChatListParams/SkipUsers.php +++ b/src/Chats/ChatListParams/SkipUsers.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListParams; +namespace OnlyFansAPI\Chats\ChatListParams; /** - * Whether to skip user details in response (all or none). Default = all. + * Whether to skip user details in the response (`all` or `none`). Defaults to `all`. */ enum SkipUsers: string { diff --git a/src/Chats/ChatListResponse.php b/src/Chats/ChatListResponse.php index 029f6dd4..601b05e1 100644 --- a/src/Chats/ChatListResponse.php +++ b/src/Chats/ChatListResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatListResponse\_Meta; -use Onlyfansapi\Chats\ChatListResponse\_Pagination; -use Onlyfansapi\Chats\ChatListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListResponse\_Meta; +use OnlyFansAPI\Chats\ChatListResponse\_Pagination; +use OnlyFansAPI\Chats\ChatListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatListResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Chats\ChatListResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatListResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Chats\ChatListResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatListResponse\Data * * @phpstan-type ChatListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Chats/ChatListResponse/Data.php b/src/Chats/ChatListResponse/Data.php index 7a8e7edb..fda3f567 100644 --- a/src/Chats/ChatListResponse/Data.php +++ b/src/Chats/ChatListResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse; +namespace OnlyFansAPI\Chats\ChatListResponse; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan; -use Onlyfansapi\Chats\ChatListResponse\Data\LastMessage; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan; +use OnlyFansAPI\Chats\ChatListResponse\Data\LastMessage; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FanShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan - * @phpstan-import-type LastMessageShape from \Onlyfansapi\Chats\ChatListResponse\Data\LastMessage + * @phpstan-import-type FanShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan + * @phpstan-import-type LastMessageShape from \OnlyFansAPI\Chats\ChatListResponse\Data\LastMessage * * @phpstan-type DataShape = array{ * canGoToProfile?: bool|null, diff --git a/src/Chats/ChatListResponse/Data/Fan.php b/src/Chats/ChatListResponse/Data/Fan.php index ffe793a9..745a5e3d 100644 --- a/src/Chats/ChatListResponse/Data/Fan.php +++ b/src/Chats/ChatListResponse/Data/Fan.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data; - -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\AvatarThumbs; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\HeaderSize; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\HeaderThumbs; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\ListsState; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedByData; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +namespace OnlyFansAPI\Chats\ChatListResponse\Data; + +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\AvatarThumbs; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\HeaderSize; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\HeaderThumbs; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\ListsState; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedByData; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedOnData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedOnData * * @phpstan-type FanShape = array{ * id?: int|null, diff --git a/src/Chats/ChatListResponse/Data/Fan/AvatarThumbs.php b/src/Chats/ChatListResponse/Data/Fan/AvatarThumbs.php index ffd56909..01e57d69 100644 --- a/src/Chats/ChatListResponse/Data/Fan/AvatarThumbs.php +++ b/src/Chats/ChatListResponse/Data/Fan/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Chats/ChatListResponse/Data/Fan/HeaderSize.php b/src/Chats/ChatListResponse/Data/Fan/HeaderSize.php index 7dbda97b..c1a64fec 100644 --- a/src/Chats/ChatListResponse/Data/Fan/HeaderSize.php +++ b/src/Chats/ChatListResponse/Data/Fan/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Chats/ChatListResponse/Data/Fan/HeaderThumbs.php b/src/Chats/ChatListResponse/Data/Fan/HeaderThumbs.php index ed142a0f..a4984dd1 100644 --- a/src/Chats/ChatListResponse/Data/Fan/HeaderThumbs.php +++ b/src/Chats/ChatListResponse/Data/Fan/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Chats/ChatListResponse/Data/Fan/ListsState.php b/src/Chats/ChatListResponse/Data/Fan/ListsState.php index c7de6365..0fd43fba 100644 --- a/src/Chats/ChatListResponse/Data/Fan/ListsState.php +++ b/src/Chats/ChatListResponse/Data/Fan/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Chats/ChatListResponse/Data/Fan/SubscribedByData.php b/src/Chats/ChatListResponse/Data/Fan/SubscribedByData.php index 64da8c4d..5896a4a9 100644 --- a/src/Chats/ChatListResponse/Data/Fan/SubscribedByData.php +++ b/src/Chats/ChatListResponse/Data/Fan/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedByData\Subscribe; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Chats/ChatListResponse/Data/Fan/SubscribedByData/Subscribe.php b/src/Chats/ChatListResponse/Data/Fan/SubscribedByData/Subscribe.php index bcddf703..10fed819 100644 --- a/src/Chats/ChatListResponse/Data/Fan/SubscribedByData/Subscribe.php +++ b/src/Chats/ChatListResponse/Data/Fan/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedByData; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData.php b/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData.php index ca0eb8f3..88dd2726 100644 --- a/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData.php +++ b/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan; -use Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedOnData\Subscribe; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData/Subscribe.php b/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData/Subscribe.php index e117a4b7..cea02c6a 100644 --- a/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData/Subscribe.php +++ b/src/Chats/ChatListResponse/Data/Fan/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\Fan\SubscribedOnData; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\Fan\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Chats/ChatListResponse/Data/LastMessage.php b/src/Chats/ChatListResponse/Data/LastMessage.php index 1771a1f9..7dd7d4d5 100644 --- a/src/Chats/ChatListResponse/Data/LastMessage.php +++ b/src/Chats/ChatListResponse/Data/LastMessage.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data; +namespace OnlyFansAPI\Chats\ChatListResponse\Data; -use Onlyfansapi\Chats\ChatListResponse\Data\LastMessage\FromUser; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListResponse\Data\LastMessage\FromUser; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FromUserShape from \Onlyfansapi\Chats\ChatListResponse\Data\LastMessage\FromUser + * @phpstan-import-type FromUserShape from \OnlyFansAPI\Chats\ChatListResponse\Data\LastMessage\FromUser * * @phpstan-type LastMessageShape = array{ * id?: int|null, diff --git a/src/Chats/ChatListResponse/Data/LastMessage/FromUser.php b/src/Chats/ChatListResponse/Data/LastMessage/FromUser.php index b7189cbd..9a913a1c 100644 --- a/src/Chats/ChatListResponse/Data/LastMessage/FromUser.php +++ b/src/Chats/ChatListResponse/Data/LastMessage/FromUser.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\Data\LastMessage; +namespace OnlyFansAPI\Chats\ChatListResponse\Data\LastMessage; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FromUserShape = array{id?: int|null, _view?: string|null} diff --git a/src/Chats/ChatListResponse/_Meta.php b/src/Chats/ChatListResponse/_Meta.php index fbef5c33..84f76575 100644 --- a/src/Chats/ChatListResponse/_Meta.php +++ b/src/Chats/ChatListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse; +namespace OnlyFansAPI\Chats\ChatListResponse; -use Onlyfansapi\Chats\ChatListResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatListResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatListResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatListResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatListResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatListResponse/_Meta/_Cache.php b/src/Chats/ChatListResponse/_Meta/_Cache.php index 3f70f4c7..cfc98909 100644 --- a/src/Chats/ChatListResponse/_Meta/_Cache.php +++ b/src/Chats/ChatListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatListResponse/_Meta/_Credits.php b/src/Chats/ChatListResponse/_Meta/_Credits.php index e0ad88a2..5e95994e 100644 --- a/src/Chats/ChatListResponse/_Meta/_Credits.php +++ b/src/Chats/ChatListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatListResponse/_Meta/_RateLimits.php b/src/Chats/ChatListResponse/_Meta/_RateLimits.php index 4440990c..5f6c4d03 100644 --- a/src/Chats/ChatListResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatListResponse/_Pagination.php b/src/Chats/ChatListResponse/_Pagination.php index b77955b5..ea29e969 100644 --- a/src/Chats/ChatListResponse/_Pagination.php +++ b/src/Chats/ChatListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatListResponse; +namespace OnlyFansAPI\Chats\ChatListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Chats/ChatMarkAsReadParams.php b/src/Chats/ChatMarkAsReadParams.php index 6de20329..675b6e7e 100644 --- a/src/Chats/ChatMarkAsReadParams.php +++ b/src/Chats/ChatMarkAsReadParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Mark a specific chat as read. Alternative to List Chat Messages endpoint, if you just want to mark the chat as read without fetching messages. * - * @see Onlyfansapi\Services\ChatsService::markAsRead() + * @see OnlyFansAPI\Services\ChatsService::markAsRead() * * @phpstan-type ChatMarkAsReadParamsShape = array{account: string} */ diff --git a/src/Chats/ChatMarkAsReadResponse.php b/src/Chats/ChatMarkAsReadResponse.php index 27620880..1bf75180 100644 --- a/src/Chats/ChatMarkAsReadResponse.php +++ b/src/Chats/ChatMarkAsReadResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta; -use Onlyfansapi\Chats\ChatMarkAsReadResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatMarkAsReadResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatMarkAsReadResponse\Data * * @phpstan-type ChatMarkAsReadResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatMarkAsReadResponse/Data.php b/src/Chats/ChatMarkAsReadResponse/Data.php index f0854299..6bcd6302 100644 --- a/src/Chats/ChatMarkAsReadResponse/Data.php +++ b/src/Chats/ChatMarkAsReadResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsReadResponse; +namespace OnlyFansAPI\Chats\ChatMarkAsReadResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/ChatMarkAsReadResponse/_Meta.php b/src/Chats/ChatMarkAsReadResponse/_Meta.php index 2aea1f56..74279283 100644 --- a/src/Chats/ChatMarkAsReadResponse/_Meta.php +++ b/src/Chats/ChatMarkAsReadResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsReadResponse; +namespace OnlyFansAPI\Chats\ChatMarkAsReadResponse; -use Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatMarkAsReadResponse/_Meta/_Cache.php b/src/Chats/ChatMarkAsReadResponse/_Meta/_Cache.php index 1ebc5c93..061889c8 100644 --- a/src/Chats/ChatMarkAsReadResponse/_Meta/_Cache.php +++ b/src/Chats/ChatMarkAsReadResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatMarkAsReadResponse/_Meta/_Credits.php b/src/Chats/ChatMarkAsReadResponse/_Meta/_Credits.php index 24042836..8ed07740 100644 --- a/src/Chats/ChatMarkAsReadResponse/_Meta/_Credits.php +++ b/src/Chats/ChatMarkAsReadResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatMarkAsReadResponse/_Meta/_RateLimits.php b/src/Chats/ChatMarkAsReadResponse/_Meta/_RateLimits.php index 7ab43ad0..47353529 100644 --- a/src/Chats/ChatMarkAsReadResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatMarkAsReadResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsReadResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMarkAsReadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatMarkAsUnreadParams.php b/src/Chats/ChatMarkAsUnreadParams.php index df4fc0bd..20c8dc68 100644 --- a/src/Chats/ChatMarkAsUnreadParams.php +++ b/src/Chats/ChatMarkAsUnreadParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Mark a specific chat as unread. * - * @see Onlyfansapi\Services\ChatsService::markAsUnread() + * @see OnlyFansAPI\Services\ChatsService::markAsUnread() * * @phpstan-type ChatMarkAsUnreadParamsShape = array{account: string} */ diff --git a/src/Chats/ChatMarkAsUnreadResponse.php b/src/Chats/ChatMarkAsUnreadResponse.php index 9a1ff087..bc8257f5 100644 --- a/src/Chats/ChatMarkAsUnreadResponse.php +++ b/src/Chats/ChatMarkAsUnreadResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatMarkAsUnreadResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\Data * * @phpstan-type ChatMarkAsUnreadResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatMarkAsUnreadResponse/Data.php b/src/Chats/ChatMarkAsUnreadResponse/Data.php index 1222d4be..ea7e32fe 100644 --- a/src/Chats/ChatMarkAsUnreadResponse/Data.php +++ b/src/Chats/ChatMarkAsUnreadResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsUnreadResponse; +namespace OnlyFansAPI\Chats\ChatMarkAsUnreadResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/ChatMarkAsUnreadResponse/_Meta.php b/src/Chats/ChatMarkAsUnreadResponse/_Meta.php index cb9d90cf..a88f107b 100644 --- a/src/Chats/ChatMarkAsUnreadResponse/_Meta.php +++ b/src/Chats/ChatMarkAsUnreadResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsUnreadResponse; +namespace OnlyFansAPI\Chats\ChatMarkAsUnreadResponse; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Cache.php b/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Cache.php index 87207062..baa27561 100644 --- a/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Cache.php +++ b/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Credits.php b/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Credits.php index 8e05619e..f2d05eb9 100644 --- a/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Credits.php +++ b/src/Chats/ChatMarkAsUnreadResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatMarkAsUnreadResponse/_Meta/_RateLimits.php b/src/Chats/ChatMarkAsUnreadResponse/_Meta/_RateLimits.php index dbd9cb62..89c2556d 100644 --- a/src/Chats/ChatMarkAsUnreadResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatMarkAsUnreadResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMarkAsUnreadResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMarkAsUnreadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatMuteParams.php b/src/Chats/ChatMuteParams.php index 4f28d2fe..e586ac5c 100644 --- a/src/Chats/ChatMuteParams.php +++ b/src/Chats/ChatMuteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Mute notifications for a specific chat. * - * @see Onlyfansapi\Services\ChatsService::mute() + * @see OnlyFansAPI\Services\ChatsService::mute() * * @phpstan-type ChatMuteParamsShape = array{account: string} */ diff --git a/src/Chats/ChatMuteResponse.php b/src/Chats/ChatMuteResponse.php index e21552d9..562a54da 100644 --- a/src/Chats/ChatMuteResponse.php +++ b/src/Chats/ChatMuteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatMuteResponse\_Meta; -use Onlyfansapi\Chats\ChatMuteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatMuteResponse\_Meta; +use OnlyFansAPI\Chats\ChatMuteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatMuteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatMuteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatMuteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatMuteResponse\Data * * @phpstan-type ChatMuteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatMuteResponse/Data.php b/src/Chats/ChatMuteResponse/Data.php index 71496aed..24e9d2ff 100644 --- a/src/Chats/ChatMuteResponse/Data.php +++ b/src/Chats/ChatMuteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMuteResponse; +namespace OnlyFansAPI\Chats\ChatMuteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/ChatMuteResponse/_Meta.php b/src/Chats/ChatMuteResponse/_Meta.php index 063b1a24..7c52dba8 100644 --- a/src/Chats/ChatMuteResponse/_Meta.php +++ b/src/Chats/ChatMuteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMuteResponse; +namespace OnlyFansAPI\Chats\ChatMuteResponse; -use Onlyfansapi\Chats\ChatMuteResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatMuteResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatMuteResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatMuteResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatMuteResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatMuteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatMuteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatMuteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatMuteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatMuteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatMuteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatMuteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatMuteResponse/_Meta/_Cache.php b/src/Chats/ChatMuteResponse/_Meta/_Cache.php index 70553570..e4f06d0f 100644 --- a/src/Chats/ChatMuteResponse/_Meta/_Cache.php +++ b/src/Chats/ChatMuteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMuteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMuteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatMuteResponse/_Meta/_Credits.php b/src/Chats/ChatMuteResponse/_Meta/_Credits.php index 4571e3af..c3c45eef 100644 --- a/src/Chats/ChatMuteResponse/_Meta/_Credits.php +++ b/src/Chats/ChatMuteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMuteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMuteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatMuteResponse/_Meta/_RateLimits.php b/src/Chats/ChatMuteResponse/_Meta/_RateLimits.php index 400903da..3143ff82 100644 --- a/src/Chats/ChatMuteResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatMuteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatMuteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatMuteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatStartTypingParams.php b/src/Chats/ChatStartTypingParams.php index 51fb09d2..d5331b6d 100644 --- a/src/Chats/ChatStartTypingParams.php +++ b/src/Chats/ChatStartTypingParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * Calling this endpoint will show the target fan a "Model is typing..." note in the chat for ~4 seconds. If you want to continue showing the indicator call this endpoint multiple times. Free - no credits charged. + * Calling this endpoint will show the target fan a "Model is typing..." note in the chat for ~4 seconds. Duplicate calls for the same account and chat are coalesced during that window. * - * @see Onlyfansapi\Services\ChatsService::startTyping() + * @see OnlyFansAPI\Services\ChatsService::startTyping() * * @phpstan-type ChatStartTypingParamsShape = array{account: string} */ diff --git a/src/Chats/ChatStartTypingResponse.php b/src/Chats/ChatStartTypingResponse.php index 9885f44a..db39eadf 100644 --- a/src/Chats/ChatStartTypingResponse.php +++ b/src/Chats/ChatStartTypingResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatStartTypingResponse\_Meta; -use Onlyfansapi\Chats\ChatStartTypingResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta; +use OnlyFansAPI\Chats\ChatStartTypingResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatStartTypingResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatStartTypingResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatStartTypingResponse\Data * * @phpstan-type ChatStartTypingResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatStartTypingResponse/Data.php b/src/Chats/ChatStartTypingResponse/Data.php index 40e5bb61..332ad4d8 100644 --- a/src/Chats/ChatStartTypingResponse/Data.php +++ b/src/Chats/ChatStartTypingResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatStartTypingResponse; +namespace OnlyFansAPI\Chats\ChatStartTypingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/ChatStartTypingResponse/_Meta.php b/src/Chats/ChatStartTypingResponse/_Meta.php index 37e15b09..cfd1729e 100644 --- a/src/Chats/ChatStartTypingResponse/_Meta.php +++ b/src/Chats/ChatStartTypingResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatStartTypingResponse; +namespace OnlyFansAPI\Chats\ChatStartTypingResponse; -use Onlyfansapi\Chats\ChatStartTypingResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatStartTypingResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatStartTypingResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatStartTypingResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatStartTypingResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatStartTypingResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatStartTypingResponse/_Meta/_Cache.php b/src/Chats/ChatStartTypingResponse/_Meta/_Cache.php index b00d6964..6b8639c5 100644 --- a/src/Chats/ChatStartTypingResponse/_Meta/_Cache.php +++ b/src/Chats/ChatStartTypingResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatStartTypingResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatStartTypingResponse/_Meta/_Credits.php b/src/Chats/ChatStartTypingResponse/_Meta/_Credits.php index b0fa2b15..8860d824 100644 --- a/src/Chats/ChatStartTypingResponse/_Meta/_Credits.php +++ b/src/Chats/ChatStartTypingResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatStartTypingResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatStartTypingResponse/_Meta/_RateLimits.php b/src/Chats/ChatStartTypingResponse/_Meta/_RateLimits.php index 62a85851..04086f8c 100644 --- a/src/Chats/ChatStartTypingResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatStartTypingResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatStartTypingResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatStartTypingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/ChatUnmuteParams.php b/src/Chats/ChatUnmuteParams.php index 0c533cfc..2e0a4b51 100644 --- a/src/Chats/ChatUnmuteParams.php +++ b/src/Chats/ChatUnmuteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unmute notifications for a specific chat. * - * @see Onlyfansapi\Services\ChatsService::unmute() + * @see OnlyFansAPI\Services\ChatsService::unmute() * * @phpstan-type ChatUnmuteParamsShape = array{account: string} */ diff --git a/src/Chats/ChatUnmuteResponse.php b/src/Chats/ChatUnmuteResponse.php index 99a5f8ad..f062645b 100644 --- a/src/Chats/ChatUnmuteResponse.php +++ b/src/Chats/ChatUnmuteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats; +namespace OnlyFansAPI\Chats; -use Onlyfansapi\Chats\ChatUnmuteResponse\_Meta; -use Onlyfansapi\Chats\ChatUnmuteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta; +use OnlyFansAPI\Chats\ChatUnmuteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\ChatUnmuteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\ChatUnmuteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\ChatUnmuteResponse\Data * * @phpstan-type ChatUnmuteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/ChatUnmuteResponse/Data.php b/src/Chats/ChatUnmuteResponse/Data.php index 0855751d..fd977ee3 100644 --- a/src/Chats/ChatUnmuteResponse/Data.php +++ b/src/Chats/ChatUnmuteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatUnmuteResponse; +namespace OnlyFansAPI\Chats\ChatUnmuteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/ChatUnmuteResponse/_Meta.php b/src/Chats/ChatUnmuteResponse/_Meta.php index ae44f9e4..726b040e 100644 --- a/src/Chats/ChatUnmuteResponse/_Meta.php +++ b/src/Chats/ChatUnmuteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatUnmuteResponse; +namespace OnlyFansAPI\Chats\ChatUnmuteResponse; -use Onlyfansapi\Chats\ChatUnmuteResponse\_Meta\_Cache; -use Onlyfansapi\Chats\ChatUnmuteResponse\_Meta\_Credits; -use Onlyfansapi\Chats\ChatUnmuteResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\ChatUnmuteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\ChatUnmuteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\ChatUnmuteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/ChatUnmuteResponse/_Meta/_Cache.php b/src/Chats/ChatUnmuteResponse/_Meta/_Cache.php index df225679..7d9e5497 100644 --- a/src/Chats/ChatUnmuteResponse/_Meta/_Cache.php +++ b/src/Chats/ChatUnmuteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatUnmuteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/ChatUnmuteResponse/_Meta/_Credits.php b/src/Chats/ChatUnmuteResponse/_Meta/_Credits.php index 2a84865f..4496fd62 100644 --- a/src/Chats/ChatUnmuteResponse/_Meta/_Credits.php +++ b/src/Chats/ChatUnmuteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatUnmuteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/ChatUnmuteResponse/_Meta/_RateLimits.php b/src/Chats/ChatUnmuteResponse/_Meta/_RateLimits.php index 7f4cc8d6..e87b7016 100644 --- a/src/Chats/ChatUnmuteResponse/_Meta/_RateLimits.php +++ b/src/Chats/ChatUnmuteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\ChatUnmuteResponse\_Meta; +namespace OnlyFansAPI\Chats\ChatUnmuteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse.php b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse.php index 47b2b0e1..9681ed29 100644 --- a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse.php +++ b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\MarkAllAsRead; +namespace OnlyFansAPI\Chats\MarkAllAsRead; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\Data * * @phpstan-type MarkAllAsReadAllResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/Data.php b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/Data.php index b8daf0f8..cb3826b6 100644 --- a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/Data.php +++ b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; +namespace OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta.php b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta.php index d864242f..10eea0c9 100644 --- a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta.php +++ b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; +namespace OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Cache; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Credits; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Cache.php b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Cache.php index 5df4553a..c5107049 100644 --- a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Cache.php +++ b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; +namespace OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Credits.php b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Credits.php index ce7f1b42..6cc4aaf6 100644 --- a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Credits.php +++ b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; +namespace OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_RateLimits.php b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_RateLimits.php index 165ff5c6..2cbbc717 100644 --- a/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_RateLimits.php +++ b/src/Chats/MarkAllAsRead/MarkAllAsReadAllResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; +namespace OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/Messages/MessageDeleteParams.php b/src/Chats/Messages/MessageDeleteParams.php index af3196dd..594904a8 100644 --- a/src/Chats/Messages/MessageDeleteParams.php +++ b/src/Chats/Messages/MessageDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a message from a chat. Please note that ONLY messages sent less than 24 hours ago can be deleted. * - * @see Onlyfansapi\Services\Chats\MessagesService::delete() + * @see OnlyFansAPI\Services\Chats\MessagesService::delete() * * @phpstan-type MessageDeleteParamsShape = array{account: string, chatID: string} */ diff --git a/src/Chats/Messages/MessageDeleteResponse.php b/src/Chats/Messages/MessageDeleteResponse.php index 0c6822b7..31f4f0c1 100644 --- a/src/Chats/Messages/MessageDeleteResponse.php +++ b/src/Chats/Messages/MessageDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\Messages\MessageDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\Messages\MessageDeleteResponse\Data * * @phpstan-type MessageDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/Messages/MessageDeleteResponse/Data.php b/src/Chats/Messages/MessageDeleteResponse/Data.php index b842e9ae..ba97efe6 100644 --- a/src/Chats/Messages/MessageDeleteResponse/Data.php +++ b/src/Chats/Messages/MessageDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageDeleteResponse; +namespace OnlyFansAPI\Chats\Messages\MessageDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/Messages/MessageDeleteResponse/_Meta.php b/src/Chats/Messages/MessageDeleteResponse/_Meta.php index 1b5fa29f..f417d252 100644 --- a/src/Chats/Messages/MessageDeleteResponse/_Meta.php +++ b/src/Chats/Messages/MessageDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageDeleteResponse; +namespace OnlyFansAPI\Chats\Messages\MessageDeleteResponse; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/Messages/MessageDeleteResponse/_Meta/_Cache.php b/src/Chats/Messages/MessageDeleteResponse/_Meta/_Cache.php index 0cad2252..6cf48ee3 100644 --- a/src/Chats/Messages/MessageDeleteResponse/_Meta/_Cache.php +++ b/src/Chats/Messages/MessageDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/Messages/MessageDeleteResponse/_Meta/_Credits.php b/src/Chats/Messages/MessageDeleteResponse/_Meta/_Credits.php index f17eae65..3b038655 100644 --- a/src/Chats/Messages/MessageDeleteResponse/_Meta/_Credits.php +++ b/src/Chats/Messages/MessageDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/Messages/MessageDeleteResponse/_Meta/_RateLimits.php b/src/Chats/Messages/MessageDeleteResponse/_Meta/_RateLimits.php index 3b66bf1b..5a99f86d 100644 --- a/src/Chats/Messages/MessageDeleteResponse/_Meta/_RateLimits.php +++ b/src/Chats/Messages/MessageDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageDeleteResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/Messages/MessageGetResponse.php b/src/Chats/Messages/MessageGetResponse.php index 2c1ab9bb..eccda48f 100644 --- a/src/Chats/Messages/MessageGetResponse.php +++ b/src/Chats/Messages/MessageGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta; -use Onlyfansapi\Chats\Messages\MessageGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta; +use OnlyFansAPI\Chats\Messages\MessageGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\Messages\MessageGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\Messages\MessageGetResponse\Data * * @phpstan-type MessageGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/Messages/MessageGetResponse/Data.php b/src/Chats/Messages/MessageGetResponse/Data.php index 90366b19..2eaed2af 100644 --- a/src/Chats/Messages/MessageGetResponse/Data.php +++ b/src/Chats/Messages/MessageGetResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageGetResponse; +namespace OnlyFansAPI\Chats\Messages\MessageGetResponse; -use Onlyfansapi\Chats\Messages\MessageGetResponse\Data\FromUser; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageGetResponse\Data\FromUser; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FromUserShape from \Onlyfansapi\Chats\Messages\MessageGetResponse\Data\FromUser + * @phpstan-import-type FromUserShape from \OnlyFansAPI\Chats\Messages\MessageGetResponse\Data\FromUser * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Chats/Messages/MessageGetResponse/Data/FromUser.php b/src/Chats/Messages/MessageGetResponse/Data/FromUser.php index efd2f57b..4c1b5089 100644 --- a/src/Chats/Messages/MessageGetResponse/Data/FromUser.php +++ b/src/Chats/Messages/MessageGetResponse/Data/FromUser.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageGetResponse\Data; +namespace OnlyFansAPI\Chats\Messages\MessageGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FromUserShape = array{id?: int|null, _view?: string|null} diff --git a/src/Chats/Messages/MessageGetResponse/_Meta.php b/src/Chats/Messages/MessageGetResponse/_Meta.php index ca1a801a..45f9e7c2 100644 --- a/src/Chats/Messages/MessageGetResponse/_Meta.php +++ b/src/Chats/Messages/MessageGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageGetResponse; +namespace OnlyFansAPI\Chats\Messages\MessageGetResponse; -use Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta\_Cache; -use Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta\_Credits; -use Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/Messages/MessageGetResponse/_Meta/_Cache.php b/src/Chats/Messages/MessageGetResponse/_Meta/_Cache.php index cbfdcfbd..5171d075 100644 --- a/src/Chats/Messages/MessageGetResponse/_Meta/_Cache.php +++ b/src/Chats/Messages/MessageGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/Messages/MessageGetResponse/_Meta/_Credits.php b/src/Chats/Messages/MessageGetResponse/_Meta/_Credits.php index da461fd9..86c4e15d 100644 --- a/src/Chats/Messages/MessageGetResponse/_Meta/_Credits.php +++ b/src/Chats/Messages/MessageGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/Messages/MessageGetResponse/_Meta/_RateLimits.php b/src/Chats/Messages/MessageGetResponse/_Meta/_RateLimits.php index 55d884d8..625c2f1d 100644 --- a/src/Chats/Messages/MessageGetResponse/_Meta/_RateLimits.php +++ b/src/Chats/Messages/MessageGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageGetResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/Messages/MessageLikeParams.php b/src/Chats/Messages/MessageLikeParams.php index 8b75f000..76b2615c 100644 --- a/src/Chats/Messages/MessageLikeParams.php +++ b/src/Chats/Messages/MessageLikeParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Like a chat message. * - * @see Onlyfansapi\Services\Chats\MessagesService::like() + * @see OnlyFansAPI\Services\Chats\MessagesService::like() * * @phpstan-type MessageLikeParamsShape = array{account: string, chatID: string} */ diff --git a/src/Chats/Messages/MessageLikeResponse.php b/src/Chats/Messages/MessageLikeResponse.php index 17fc3ede..e57ee9bf 100644 --- a/src/Chats/Messages/MessageLikeResponse.php +++ b/src/Chats/Messages/MessageLikeResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta; -use Onlyfansapi\Chats\Messages\MessageLikeResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\Messages\MessageLikeResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\Messages\MessageLikeResponse\Data * * @phpstan-type MessageLikeResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/Messages/MessageLikeResponse/Data.php b/src/Chats/Messages/MessageLikeResponse/Data.php index 31aa4d3b..6aea42ff 100644 --- a/src/Chats/Messages/MessageLikeResponse/Data.php +++ b/src/Chats/Messages/MessageLikeResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageLikeResponse; +namespace OnlyFansAPI\Chats\Messages\MessageLikeResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{isLiked?: bool|null, success?: bool|null} diff --git a/src/Chats/Messages/MessageLikeResponse/_Meta.php b/src/Chats/Messages/MessageLikeResponse/_Meta.php index c257466c..1d4b4d3d 100644 --- a/src/Chats/Messages/MessageLikeResponse/_Meta.php +++ b/src/Chats/Messages/MessageLikeResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageLikeResponse; +namespace OnlyFansAPI\Chats\Messages\MessageLikeResponse; -use Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta\_Cache; -use Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta\_Credits; -use Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/Messages/MessageLikeResponse/_Meta/_Cache.php b/src/Chats/Messages/MessageLikeResponse/_Meta/_Cache.php index 975dc305..1e16ff48 100644 --- a/src/Chats/Messages/MessageLikeResponse/_Meta/_Cache.php +++ b/src/Chats/Messages/MessageLikeResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/Messages/MessageLikeResponse/_Meta/_Credits.php b/src/Chats/Messages/MessageLikeResponse/_Meta/_Credits.php index 7f7d2c15..6cc8e4bf 100644 --- a/src/Chats/Messages/MessageLikeResponse/_Meta/_Credits.php +++ b/src/Chats/Messages/MessageLikeResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/Messages/MessageLikeResponse/_Meta/_RateLimits.php b/src/Chats/Messages/MessageLikeResponse/_Meta/_RateLimits.php index 1c60650e..db4d828a 100644 --- a/src/Chats/Messages/MessageLikeResponse/_Meta/_RateLimits.php +++ b/src/Chats/Messages/MessageLikeResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageLikeResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageLikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/Messages/MessageListParams.php b/src/Chats/Messages/MessageListParams.php index 6711cd8f..3a176f96 100644 --- a/src/Chats/Messages/MessageListParams.php +++ b/src/Chats/Messages/MessageListParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Chats\Messages\MessageListParams\Filter; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageListParams\Filter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get messages from a specific chat. * - * @see Onlyfansapi\Services\Chats\MessagesService::list() + * @see OnlyFansAPI\Services\Chats\MessagesService::list() * * @phpstan-type MessageListParamsShape = array{ * account: string, @@ -68,7 +68,7 @@ final class MessageListParams implements BaseModel public ?string $order; /** - * Whether to skip user details (all or none). + * Whether to skip user details (`all` or `none`). */ #[Optional] public ?string $skipUsers; @@ -188,7 +188,7 @@ public function withOrder(string $order): self } /** - * Whether to skip user details (all or none). + * Whether to skip user details (`all` or `none`). */ public function withSkipUsers(string $skipUsers): self { diff --git a/src/Chats/Messages/MessageListParams/Filter.php b/src/Chats/Messages/MessageListParams/Filter.php index c13222db..271464e2 100644 --- a/src/Chats/Messages/MessageListParams/Filter.php +++ b/src/Chats/Messages/MessageListParams/Filter.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListParams; +namespace OnlyFansAPI\Chats\Messages\MessageListParams; /** * Filter by certain messages. Currently, only pins are filterable. diff --git a/src/Chats/Messages/MessageListResponse.php b/src/Chats/Messages/MessageListResponse.php index 12e6db92..336d9ceb 100644 --- a/src/Chats/Messages/MessageListResponse.php +++ b/src/Chats/Messages/MessageListResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Chats\Messages\MessageListResponse\_Meta; -use Onlyfansapi\Chats\Messages\MessageListResponse\_Pagination; -use Onlyfansapi\Chats\Messages\MessageListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta; +use OnlyFansAPI\Chats\Messages\MessageListResponse\_Pagination; +use OnlyFansAPI\Chats\Messages\MessageListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\Messages\MessageListResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Chats\Messages\MessageListResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\Messages\MessageListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Chats\Messages\MessageListResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\Messages\MessageListResponse\Data * * @phpstan-type MessageListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Chats/Messages/MessageListResponse/Data.php b/src/Chats/Messages/MessageListResponse/Data.php index 37d435f0..ceef75b1 100644 --- a/src/Chats/Messages/MessageListResponse/Data.php +++ b/src/Chats/Messages/MessageListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListResponse; +namespace OnlyFansAPI\Chats\Messages\MessageListResponse; -use Onlyfansapi\Chats\Messages\MessageListResponse\Data\FromUser; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageListResponse\Data\FromUser; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type FromUserShape from \Onlyfansapi\Chats\Messages\MessageListResponse\Data\FromUser + * @phpstan-import-type FromUserShape from \OnlyFansAPI\Chats\Messages\MessageListResponse\Data\FromUser * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Chats/Messages/MessageListResponse/Data/FromUser.php b/src/Chats/Messages/MessageListResponse/Data/FromUser.php index 854b169a..fc42a6c3 100644 --- a/src/Chats/Messages/MessageListResponse/Data/FromUser.php +++ b/src/Chats/Messages/MessageListResponse/Data/FromUser.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListResponse\Data; +namespace OnlyFansAPI\Chats\Messages\MessageListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FromUserShape = array{id?: int|null, _view?: string|null} diff --git a/src/Chats/Messages/MessageListResponse/_Meta.php b/src/Chats/Messages/MessageListResponse/_Meta.php index e550c2e6..0370dc6b 100644 --- a/src/Chats/Messages/MessageListResponse/_Meta.php +++ b/src/Chats/Messages/MessageListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListResponse; +namespace OnlyFansAPI\Chats\Messages\MessageListResponse; -use Onlyfansapi\Chats\Messages\MessageListResponse\_Meta\_Cache; -use Onlyfansapi\Chats\Messages\MessageListResponse\_Meta\_Credits; -use Onlyfansapi\Chats\Messages\MessageListResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\Messages\MessageListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\Messages\MessageListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\Messages\MessageListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/Messages/MessageListResponse/_Meta/_Cache.php b/src/Chats/Messages/MessageListResponse/_Meta/_Cache.php index 74d35c64..bb4c141a 100644 --- a/src/Chats/Messages/MessageListResponse/_Meta/_Cache.php +++ b/src/Chats/Messages/MessageListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/Messages/MessageListResponse/_Meta/_Credits.php b/src/Chats/Messages/MessageListResponse/_Meta/_Credits.php index 86414435..dd531883 100644 --- a/src/Chats/Messages/MessageListResponse/_Meta/_Credits.php +++ b/src/Chats/Messages/MessageListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/Messages/MessageListResponse/_Meta/_RateLimits.php b/src/Chats/Messages/MessageListResponse/_Meta/_RateLimits.php index a12227ec..2b9596c5 100644 --- a/src/Chats/Messages/MessageListResponse/_Meta/_RateLimits.php +++ b/src/Chats/Messages/MessageListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/Messages/MessageListResponse/_Pagination.php b/src/Chats/Messages/MessageListResponse/_Pagination.php index c58ce33c..657ac373 100644 --- a/src/Chats/Messages/MessageListResponse/_Pagination.php +++ b/src/Chats/Messages/MessageListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageListResponse; +namespace OnlyFansAPI\Chats\Messages\MessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Chats/Messages/MessagePinParams.php b/src/Chats/Messages/MessagePinParams.php index e3ea6d42..20980f52 100644 --- a/src/Chats/Messages/MessagePinParams.php +++ b/src/Chats/Messages/MessagePinParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Pin a message from a chat. * - * @see Onlyfansapi\Services\Chats\MessagesService::pin() + * @see OnlyFansAPI\Services\Chats\MessagesService::pin() * * @phpstan-type MessagePinParamsShape = array{account: string, chatID: string} */ diff --git a/src/Chats/Messages/MessagePinResponse.php b/src/Chats/Messages/MessagePinResponse.php index 92dbb214..a38975bb 100644 --- a/src/Chats/Messages/MessagePinResponse.php +++ b/src/Chats/Messages/MessagePinResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta; -use Onlyfansapi\Chats\Messages\MessagePinResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta; +use OnlyFansAPI\Chats\Messages\MessagePinResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Chats\Messages\MessagePinResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Chats\Messages\MessagePinResponse\Data * * @phpstan-type MessagePinResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Chats/Messages/MessagePinResponse/Data.php b/src/Chats/Messages/MessagePinResponse/Data.php index 339dc55f..b83b6017 100644 --- a/src/Chats/Messages/MessagePinResponse/Data.php +++ b/src/Chats/Messages/MessagePinResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessagePinResponse; +namespace OnlyFansAPI\Chats\Messages\MessagePinResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Chats/Messages/MessagePinResponse/_Meta.php b/src/Chats/Messages/MessagePinResponse/_Meta.php index a6370b7a..d2c456d9 100644 --- a/src/Chats/Messages/MessagePinResponse/_Meta.php +++ b/src/Chats/Messages/MessagePinResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessagePinResponse; +namespace OnlyFansAPI\Chats\Messages\MessagePinResponse; -use Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta\_Cache; -use Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta\_Credits; -use Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/Messages/MessagePinResponse/_Meta/_Cache.php b/src/Chats/Messages/MessagePinResponse/_Meta/_Cache.php index 74aa8dcc..177326a8 100644 --- a/src/Chats/Messages/MessagePinResponse/_Meta/_Cache.php +++ b/src/Chats/Messages/MessagePinResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/Messages/MessagePinResponse/_Meta/_Credits.php b/src/Chats/Messages/MessagePinResponse/_Meta/_Credits.php index 9318453a..a15440ae 100644 --- a/src/Chats/Messages/MessagePinResponse/_Meta/_Credits.php +++ b/src/Chats/Messages/MessagePinResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/Messages/MessagePinResponse/_Meta/_RateLimits.php b/src/Chats/Messages/MessagePinResponse/_Meta/_RateLimits.php index 9afe22a1..8d717c8f 100644 --- a/src/Chats/Messages/MessagePinResponse/_Meta/_RateLimits.php +++ b/src/Chats/Messages/MessagePinResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessagePinResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessagePinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/Messages/MessageRetrieveParams.php b/src/Chats/Messages/MessageRetrieveParams.php index 9ef3a4ed..9be5fcd3 100644 --- a/src/Chats/Messages/MessageRetrieveParams.php +++ b/src/Chats/Messages/MessageRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get a single chat message by its ID. Returns a 404 if the message does not exist in the chat. * - * @see Onlyfansapi\Services\Chats\MessagesService::retrieve() + * @see OnlyFansAPI\Services\Chats\MessagesService::retrieve() * * @phpstan-type MessageRetrieveParamsShape = array{ * account: string, chatID: string diff --git a/src/Chats/Messages/MessageSearchParams.php b/src/Chats/Messages/MessageSearchParams.php index ece3b05c..80c22bf4 100644 --- a/src/Chats/Messages/MessageSearchParams.php +++ b/src/Chats/Messages/MessageSearchParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Search messages in a specific chat. Returns a list of message IDs matching the search query. * - * @see Onlyfansapi\Services\Chats\MessagesService::search() + * @see OnlyFansAPI\Services\Chats\MessagesService::search() * * @phpstan-type MessageSearchParamsShape = array{account: string, query: string} */ diff --git a/src/Chats/Messages/MessageSearchResponse.php b/src/Chats/Messages/MessageSearchResponse.php index 3bdfb71b..aee6bc40 100644 --- a/src/Chats/Messages/MessageSearchResponse.php +++ b/src/Chats/Messages/MessageSearchResponse.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta * * @phpstan-type MessageSearchResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Chats/Messages/MessageSearchResponse/_Meta.php b/src/Chats/Messages/MessageSearchResponse/_Meta.php index 0939d52d..5f37af23 100644 --- a/src/Chats/Messages/MessageSearchResponse/_Meta.php +++ b/src/Chats/Messages/MessageSearchResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageSearchResponse; +namespace OnlyFansAPI\Chats\Messages\MessageSearchResponse; -use Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta\_Cache; -use Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta\_Credits; -use Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta\_RateLimits; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta\_Cache; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta\_Credits; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Chats/Messages/MessageSearchResponse/_Meta/_Cache.php b/src/Chats/Messages/MessageSearchResponse/_Meta/_Cache.php index 5c0d0799..bc23232b 100644 --- a/src/Chats/Messages/MessageSearchResponse/_Meta/_Cache.php +++ b/src/Chats/Messages/MessageSearchResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Chats/Messages/MessageSearchResponse/_Meta/_Credits.php b/src/Chats/Messages/MessageSearchResponse/_Meta/_Credits.php index 81f48a85..bc85a602 100644 --- a/src/Chats/Messages/MessageSearchResponse/_Meta/_Credits.php +++ b/src/Chats/Messages/MessageSearchResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Chats/Messages/MessageSearchResponse/_Meta/_RateLimits.php b/src/Chats/Messages/MessageSearchResponse/_Meta/_RateLimits.php index fe1b8dd5..486d32dd 100644 --- a/src/Chats/Messages/MessageSearchResponse/_Meta/_RateLimits.php +++ b/src/Chats/Messages/MessageSearchResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages\MessageSearchResponse\_Meta; +namespace OnlyFansAPI\Chats\Messages\MessageSearchResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Chats/Messages/MessageSendParams.php b/src/Chats/Messages/MessageSendParams.php index ac73919b..4af5396e 100644 --- a/src/Chats/Messages/MessageSendParams.php +++ b/src/Chats/Messages/MessageSendParams.php @@ -2,31 +2,51 @@ declare(strict_types=1); -namespace Onlyfansapi\Chats\Messages; +namespace OnlyFansAPI\Chats\Messages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Chats\Messages\MessageSendParams\BlockBannedWords; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Send a new message to a chat. * - * @see Onlyfansapi\Services\Chats\MessagesService::send() + * **Idempotency.** Pass an `Idempotency-Key` header to make retries safe. The first request with a + * given key is executed normally and its response is stored for **24 hours**; any later request with + * the same key returns that stored response, plus an `Idempotent-Replayed: true` header, without + * contacting OnlyFans and without consuming credits. The replayed body is the original response with + * its `_meta._credits` block rewritten to show `used: 0` and your current balance. + * + * Keys are scoped to your team, this endpoint and the account in the URL, so the same value can be + * reused safely against a different account. Use a fresh, unique value (a UUID works well) for each + * message you send; it must be 1-255 printable ASCII characters. + * + * - `400 IDEMPOTENCY_KEY_INVALID` — the header value is empty, too long, or contains non-ASCII characters. + * - `409 IDEMPOTENCY_CONFLICT` — an earlier request with this key is still running. Retry once it finishes. + * - `422 IDEMPOTENCY_KEY_MISMATCH` — this key was already used with a different request body or chat. + * + * Responses with a `5xx` status (and `408`/`429`) are never stored, so a failed send can be retried + * with the same key. The header is optional: omit it and the endpoint behaves exactly as before. + * + * @see OnlyFansAPI\Services\Chats\MessagesService::send() * * @phpstan-type MessageSendParamsShape = array{ * account: string, + * blockBannedWords?: null|BlockBannedWords|value-of, * giphyID?: string|null, * lockedText?: bool|null, * mediaFiles?: list|null, * previews?: list|null, - * price?: int|null, + * price?: float|null, * replyToMessageID?: int|null, * rfGuest?: string|null, * rfPartner?: string|null, * rfTag?: string|null, * text?: string|null, + * idempotencyKey?: string|null, * } */ final class MessageSendParams implements BaseModel @@ -38,6 +58,14 @@ final class MessageSendParams implements BaseModel #[Required] public string $account; + /** + * Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @var value-of|null $blockBannedWords + */ + #[Optional(enum: BlockBannedWords::class)] + public ?string $blockBannedWords; + /** * The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). */ @@ -67,10 +95,10 @@ final class MessageSendParams implements BaseModel public ?array $previews; /** - * Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required. + * Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required. */ #[Optional] - public ?int $price; + public ?float $price; /** * Mark this message as a reply to another (can be either your own, or the recipient's). @@ -102,6 +130,9 @@ final class MessageSendParams implements BaseModel #[Optional] public ?string $text; + #[Optional] + public ?string $idempotencyKey; + /** * `new MessageSendParams()` is missing required properties by the API. * @@ -126,26 +157,30 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param BlockBannedWords|value-of|null $blockBannedWords * @param list|null $mediaFiles * @param list|null $previews */ public static function with( string $account, + BlockBannedWords|string|null $blockBannedWords = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?int $replyToMessageID = null, ?string $rfGuest = null, ?string $rfPartner = null, ?string $rfTag = null, ?string $text = null, + ?string $idempotencyKey = null, ): self { $self = new self; $self['account'] = $account; + null !== $blockBannedWords && $self['blockBannedWords'] = $blockBannedWords; null !== $giphyID && $self['giphyID'] = $giphyID; null !== $lockedText && $self['lockedText'] = $lockedText; null !== $mediaFiles && $self['mediaFiles'] = $mediaFiles; @@ -156,6 +191,7 @@ public static function with( null !== $rfPartner && $self['rfPartner'] = $rfPartner; null !== $rfTag && $self['rfTag'] = $rfTag; null !== $text && $self['text'] = $text; + null !== $idempotencyKey && $self['idempotencyKey'] = $idempotencyKey; return $self; } @@ -168,6 +204,20 @@ public function withAccount(string $account): self return $self; } + /** + * Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @param BlockBannedWords|value-of $blockBannedWords + */ + public function withBlockBannedWords( + BlockBannedWords|string $blockBannedWords + ): self { + $self = clone $this; + $self['blockBannedWords'] = $blockBannedWords; + + return $self; + } + /** * The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). */ @@ -217,9 +267,9 @@ public function withPreviews(array $previews): self } /** - * Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required. + * Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required. */ - public function withPrice(int $price): self + public function withPrice(float $price): self { $self = clone $this; $self['price'] = $price; @@ -281,4 +331,12 @@ public function withText(string $text): self return $self; } + + public function withIdempotencyKey(string $idempotencyKey): self + { + $self = clone $this; + $self['idempotencyKey'] = $idempotencyKey; + + return $self; + } } diff --git a/src/Chats/Messages/MessageSendParams/BlockBannedWords.php b/src/Chats/Messages/MessageSendParams/BlockBannedWords.php new file mode 100644 index 00000000..ffced13d --- /dev/null +++ b/src/Chats/Messages/MessageSendParams/BlockBannedWords.php @@ -0,0 +1,17 @@ + $mergedQuery */ - $mergedQuery = array_merge_recursive( - $query, - $options->extraQueryParams ?? [] - ); + $mergedQuery = [...$query, ...($options->extraQueryParams ?? [])]; $uri = Util::joinUri($this->baseUrl, path: $parsedPath, query: $mergedQuery)->__toString(); $idempotencyHeaders = $this->idempotencyHeader && !array_key_exists($this->idempotencyHeader, array: $headers) ? [$this->idempotencyHeader => $this->generateIdempotencyKey()] @@ -249,7 +247,13 @@ protected function sendRequest( $err = null; try { - $rsp = $transporter->sendRequest($req); + if ($transporter instanceof StreamingHttpClient) { + $rsp = $transporter->sendRequest($req, timeout: $opts->timeout); + } elseif (is_a($transporter, '\GuzzleHttp\Client')) { + $rsp = $transporter->send($req, ['timeout' => $opts->timeout]); + } else { + $rsp = $transporter->sendRequest($req); + } } catch (ClientExceptionInterface $e) { $err = $e; } diff --git a/src/Core/Concerns/ResponseProxy.php b/src/Core/Concerns/ResponseProxy.php index 98871e53..db91c968 100644 --- a/src/Core/Concerns/ResponseProxy.php +++ b/src/Core/Concerns/ResponseProxy.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Concerns; +namespace OnlyFansAPI\Core\Concerns; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; diff --git a/src/Core/Concerns/SdkEnum.php b/src/Core/Concerns/SdkEnum.php index b1e12c17..308f8459 100644 --- a/src/Core/Concerns/SdkEnum.php +++ b/src/Core/Concerns/SdkEnum.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Concerns; +namespace OnlyFansAPI\Core\Concerns; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\EnumOf; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\EnumOf; /** * @internal diff --git a/src/Core/Concerns/SdkModel.php b/src/Core/Concerns/SdkModel.php index 4c7ea8a5..4b2e0946 100644 --- a/src/Core/Concerns/SdkModel.php +++ b/src/Core/Concerns/SdkModel.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Concerns; +namespace OnlyFansAPI\Core\Concerns; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Core\Conversion; -use Onlyfansapi\Core\Conversion\CoerceState; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\ModelOf; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Conversion; +use OnlyFansAPI\Core\Conversion\CoerceState; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\ModelOf; +use OnlyFansAPI\Core\Util; /** * @internal @@ -97,6 +97,26 @@ public function __get(string $key): mixed return null; } + /** + * @internal + * + * Like {@link __unserialize()}, but for raw API payloads, whose keys are + * API property names rather than PHP property names + * + * @param array $data + */ + public function unserializeFromApiPayload(array $data): void + { + foreach (self::$converter->properties as $name => $info) { + if ($name !== $info->apiName && array_key_exists($info->apiName, array: $data)) { + $data[$name] = $data[$info->apiName]; + unset($data[$info->apiName]); + } + } + + $this->__unserialize($data); + } + /** * @internal * diff --git a/src/Core/Concerns/SdkPage.php b/src/Core/Concerns/SdkPage.php index b89aa12d..df721197 100644 --- a/src/Core/Concerns/SdkPage.php +++ b/src/Core/Concerns/SdkPage.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Concerns; +namespace OnlyFansAPI\Core\Concerns; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; -use Onlyfansapi\Core\Exceptions\APIStatusException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Exceptions\APIStatusException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type NormalizedRequest from \Onlyfansapi\Core\BaseClient + * @phpstan-import-type NormalizedRequest from \OnlyFansAPI\Core\BaseClient * * @internal * diff --git a/src/Core/Concerns/SdkParams.php b/src/Core/Concerns/SdkParams.php index 5c2a27a7..29a94eec 100644 --- a/src/Core/Concerns/SdkParams.php +++ b/src/Core/Concerns/SdkParams.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Concerns; +namespace OnlyFansAPI\Core\Concerns; -use Onlyfansapi\Core\Conversion; -use Onlyfansapi\Core\Conversion\DumpState; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Conversion; +use OnlyFansAPI\Core\Conversion\DumpState; +use OnlyFansAPI\RequestOptions; /** * @internal diff --git a/src/Core/Concerns/SdkUnion.php b/src/Core/Concerns/SdkUnion.php index 3dfafb07..386fce4f 100644 --- a/src/Core/Concerns/SdkUnion.php +++ b/src/Core/Concerns/SdkUnion.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Concerns; +namespace OnlyFansAPI\Core\Concerns; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; -use Onlyfansapi\Core\Conversion\UnionOf; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Conversion\UnionOf; /** * @internal diff --git a/src/Core/Contracts/BaseModel.php b/src/Core/Contracts/BaseModel.php index aed348a0..61f47b81 100644 --- a/src/Core/Contracts/BaseModel.php +++ b/src/Core/Contracts/BaseModel.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Contracts; +namespace OnlyFansAPI\Core\Contracts; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; /** * @internal diff --git a/src/Core/Contracts/BasePage.php b/src/Core/Contracts/BasePage.php index 41c71b87..794d5b6f 100644 --- a/src/Core/Contracts/BasePage.php +++ b/src/Core/Contracts/BasePage.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Contracts; +namespace OnlyFansAPI\Core\Contracts; /** - * @phpstan-import-type NormalizedRequest from \Onlyfansapi\Core\BaseClient + * @phpstan-import-type NormalizedRequest from \OnlyFansAPI\Core\BaseClient * * @internal * diff --git a/src/Core/Contracts/BaseResponse.php b/src/Core/Contracts/BaseResponse.php index 3b13861c..4c60e262 100644 --- a/src/Core/Contracts/BaseResponse.php +++ b/src/Core/Contracts/BaseResponse.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Contracts; +namespace OnlyFansAPI\Core\Contracts; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; diff --git a/src/Core/Contracts/BaseStream.php b/src/Core/Contracts/BaseStream.php index eb975fbc..755ba9c5 100644 --- a/src/Core/Contracts/BaseStream.php +++ b/src/Core/Contracts/BaseStream.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Contracts; +namespace OnlyFansAPI\Core\Contracts; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; diff --git a/src/Core/Conversion.php b/src/Core/Conversion.php index 43a147e6..37211669 100644 --- a/src/Core/Conversion.php +++ b/src/Core/Conversion.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Onlyfansapi\Core; +namespace OnlyFansAPI\Core; -use Onlyfansapi\Core\Conversion\CoerceState; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; -use Onlyfansapi\Core\Conversion\DumpState; -use Onlyfansapi\Core\Conversion\EnumOf; +use OnlyFansAPI\Core\Conversion\CoerceState; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Conversion\DumpState; +use OnlyFansAPI\Core\Conversion\EnumOf; /** * @internal diff --git a/src/Core/Conversion/CoerceState.php b/src/Core/Conversion/CoerceState.php index 778cf02e..1bcee5fe 100644 --- a/src/Core/Conversion/CoerceState.php +++ b/src/Core/Conversion/CoerceState.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; /** * @internal diff --git a/src/Core/Conversion/Concerns/ArrayOf.php b/src/Core/Conversion/Concerns/ArrayOf.php index 331ddad5..06c6b55b 100644 --- a/src/Core/Conversion/Concerns/ArrayOf.php +++ b/src/Core/Conversion/Concerns/ArrayOf.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion\Concerns; +namespace OnlyFansAPI\Core\Conversion\Concerns; -use Onlyfansapi\Core\Conversion; -use Onlyfansapi\Core\Conversion\CoerceState; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; -use Onlyfansapi\Core\Conversion\DumpState; +use OnlyFansAPI\Core\Conversion; +use OnlyFansAPI\Core\Conversion\CoerceState; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Conversion\DumpState; /** * @internal diff --git a/src/Core/Conversion/Contracts/Converter.php b/src/Core/Conversion/Contracts/Converter.php index 1287cf70..3f98f037 100644 --- a/src/Core/Conversion/Contracts/Converter.php +++ b/src/Core/Conversion/Contracts/Converter.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion\Contracts; +namespace OnlyFansAPI\Core\Conversion\Contracts; -use Onlyfansapi\Core\Conversion\CoerceState; -use Onlyfansapi\Core\Conversion\DumpState; +use OnlyFansAPI\Core\Conversion\CoerceState; +use OnlyFansAPI\Core\Conversion\DumpState; /** * @internal diff --git a/src/Core/Conversion/Contracts/ConverterSource.php b/src/Core/Conversion/Contracts/ConverterSource.php index 488b517d..bc8b2afc 100644 --- a/src/Core/Conversion/Contracts/ConverterSource.php +++ b/src/Core/Conversion/Contracts/ConverterSource.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion\Contracts; +namespace OnlyFansAPI\Core\Conversion\Contracts; /** * @internal diff --git a/src/Core/Conversion/DumpState.php b/src/Core/Conversion/DumpState.php index 4a440027..cfbf660f 100644 --- a/src/Core/Conversion/DumpState.php +++ b/src/Core/Conversion/DumpState.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; /** * @internal diff --git a/src/Core/Conversion/EnumOf.php b/src/Core/Conversion/EnumOf.php index b878f66f..ccd2ec01 100644 --- a/src/Core/Conversion/EnumOf.php +++ b/src/Core/Conversion/EnumOf.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; -use Onlyfansapi\Core\Conversion; -use Onlyfansapi\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; /** * @internal diff --git a/src/Core/Conversion/ListOf.php b/src/Core/Conversion/ListOf.php index a8fab014..10911814 100644 --- a/src/Core/Conversion/ListOf.php +++ b/src/Core/Conversion/ListOf.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; -use Onlyfansapi\Core\Conversion\Concerns\ArrayOf; -use Onlyfansapi\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Concerns\ArrayOf; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; /** * @internal diff --git a/src/Core/Conversion/MapOf.php b/src/Core/Conversion/MapOf.php index 0d2a73e4..4beafd8d 100644 --- a/src/Core/Conversion/MapOf.php +++ b/src/Core/Conversion/MapOf.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; -use Onlyfansapi\Core\Conversion\Concerns\ArrayOf; -use Onlyfansapi\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Concerns\ArrayOf; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; /** * @internal diff --git a/src/Core/Conversion/ModelOf.php b/src/Core/Conversion/ModelOf.php index bdfaaf12..e740792e 100644 --- a/src/Core/Conversion/ModelOf.php +++ b/src/Core/Conversion/ModelOf.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Core\Conversion; -use Onlyfansapi\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Conversion; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; /** * @internal diff --git a/src/Core/Conversion/PropertyInfo.php b/src/Core/Conversion/PropertyInfo.php index 883e47de..8b4acebf 100644 --- a/src/Core/Conversion/PropertyInfo.php +++ b/src/Core/Conversion/PropertyInfo.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; /** * @internal diff --git a/src/Core/Conversion/UnionOf.php b/src/Core/Conversion/UnionOf.php index 426faf33..cb15bf45 100644 --- a/src/Core/Conversion/UnionOf.php +++ b/src/Core/Conversion/UnionOf.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Onlyfansapi\Core\Conversion; +namespace OnlyFansAPI\Core\Conversion; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Core\Conversion; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Conversion; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; /** * @internal diff --git a/src/Core/Exceptions/APIConnectionException.php b/src/Core/Exceptions/APIConnectionException.php index 50571ba8..6e301fa8 100644 --- a/src/Core/Exceptions/APIConnectionException.php +++ b/src/Core/Exceptions/APIConnectionException.php @@ -1,9 +1,9 @@ inner, '\GuzzleHttp\Client')) { - return $this->inner->send($request, ['stream' => true]); + $options = ['stream' => true]; + if (null !== $timeout) { + $options['timeout'] = $timeout; + } + + return $this->inner->send($request, $options); } return $this->inner->sendRequest($request); diff --git a/src/Core/Util.php b/src/Core/Util.php index 9624b06a..71b930d5 100644 --- a/src/Core/Util.php +++ b/src/Core/Util.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Core; +namespace OnlyFansAPI\Core; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; @@ -207,7 +207,7 @@ public static function joinUri( parse_str($base->getQuery(), $q1); parse_str($parsed['query'] ?? '', $q2); - $mergedQuery = array_merge_recursive($q1, $q2, $query); + $mergedQuery = [...$q1, ...$q2, ...$query]; /** @var array */ $normalizedQuery = self::mapRecursive( diff --git a/src/DataExports/DataExportCancelResponse.php b/src/DataExports/DataExportCancelResponse.php index 13ae131d..09b97c27 100644 --- a/src/DataExports/DataExportCancelResponse.php +++ b/src/DataExports/DataExportCancelResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportCancelResponse\_Meta; -use Onlyfansapi\DataExports\DataExportCancelResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta; +use OnlyFansAPI\DataExports\DataExportCancelResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\DataExports\DataExportCancelResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\DataExports\DataExportCancelResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\DataExports\DataExportCancelResponse\Data * * @phpstan-type DataExportCancelResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/DataExports/DataExportCancelResponse/Data.php b/src/DataExports/DataExportCancelResponse/Data.php index 1df22a19..a15fac1a 100644 --- a/src/DataExports/DataExportCancelResponse/Data.php +++ b/src/DataExports/DataExportCancelResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportCancelResponse; +namespace OnlyFansAPI\DataExports\DataExportCancelResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/DataExports/DataExportCancelResponse/_Meta.php b/src/DataExports/DataExportCancelResponse/_Meta.php index b7120889..f2e50abd 100644 --- a/src/DataExports/DataExportCancelResponse/_Meta.php +++ b/src/DataExports/DataExportCancelResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportCancelResponse; +namespace OnlyFansAPI\DataExports\DataExportCancelResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportCancelResponse\_Meta\_Cache; -use Onlyfansapi\DataExports\DataExportCancelResponse\_Meta\_Credits; -use Onlyfansapi\DataExports\DataExportCancelResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta\_Cache; +use OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta\_Credits; +use OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\DataExports\DataExportCancelResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\DataExports\DataExportCancelResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\DataExports\DataExportCancelResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/DataExports/DataExportCancelResponse/_Meta/_Cache.php b/src/DataExports/DataExportCancelResponse/_Meta/_Cache.php index eefebd58..23460b97 100644 --- a/src/DataExports/DataExportCancelResponse/_Meta/_Cache.php +++ b/src/DataExports/DataExportCancelResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportCancelResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/DataExports/DataExportCancelResponse/_Meta/_Credits.php b/src/DataExports/DataExportCancelResponse/_Meta/_Credits.php index 20209168..c18f8065 100644 --- a/src/DataExports/DataExportCancelResponse/_Meta/_Credits.php +++ b/src/DataExports/DataExportCancelResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportCancelResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/DataExports/DataExportCancelResponse/_Meta/_RateLimits.php b/src/DataExports/DataExportCancelResponse/_Meta/_RateLimits.php index 1ab40943..d528cd71 100644 --- a/src/DataExports/DataExportCancelResponse/_Meta/_RateLimits.php +++ b/src/DataExports/DataExportCancelResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportCancelResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportCancelResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/DataExports/DataExportCreateParams.php b/src/DataExports/DataExportCreateParams.php index a1ea63c3..67c30920 100644 --- a/src/DataExports/DataExportCreateParams.php +++ b/src/DataExports/DataExportCreateParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportCreateParams\FileType; -use Onlyfansapi\DataExports\DataExportCreateParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportCreateParams\FileType; +use OnlyFansAPI\DataExports\DataExportCreateParams\Type; /** * Create a new data export request. This will calculate the required credits and prepare the export for starting. * - * @see Onlyfansapi\Services\DataExportsService::create() + * @see OnlyFansAPI\Services\DataExportsService::create() * * @phpstan-type DataExportCreateParamsShape = array{ * endDate: string, @@ -41,7 +41,7 @@ final class DataExportCreateParams implements BaseModel public string $endDate; /** - * The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + * The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, fansly_chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` for media_vault. * * @var value-of $fileType */ @@ -55,7 +55,7 @@ final class DataExportCreateParams implements BaseModel public string $startDate; /** - * The type of data to export. + * The type of data to export. Use `fansly_chat_messages` to export Fansly chat messages (all other types are OnlyFans). `profile_visitors` returns one row per account per day, scraped one day at a time so the daily numbers are not aggregated away by OnlyFans. * * @var value-of $type */ @@ -63,7 +63,7 @@ final class DataExportCreateParams implements BaseModel public string $type; /** - * Array of account prefixed IDs to export data from. Not required for `public_profiles` type. + * Array of account prefixed IDs to export data from. Not required for `public_profiles` type. For `fansly_chat_messages`, pass Fansly account prefixed IDs (`fansly_acct_...`); all other types take OnlyFans account IDs. * * @var list|null $accountIDs */ @@ -85,7 +85,7 @@ final class DataExportCreateParams implements BaseModel public ?array $exportColumns; /** - * Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). + * Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `fansly_chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `chatIds` (optional array of Fansly group ID strings; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). * * @var array|null $options */ @@ -165,7 +165,7 @@ public function withEndDate(string $endDate): self } /** - * The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + * The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, fansly_chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` for media_vault. * * @param FileType|value-of $fileType */ @@ -189,7 +189,7 @@ public function withStartDate(string $startDate): self } /** - * The type of data to export. + * The type of data to export. Use `fansly_chat_messages` to export Fansly chat messages (all other types are OnlyFans). `profile_visitors` returns one row per account per day, scraped one day at a time so the daily numbers are not aggregated away by OnlyFans. * * @param Type|value-of $type */ @@ -202,7 +202,7 @@ public function withType(Type|string $type): self } /** - * Array of account prefixed IDs to export data from. Not required for `public_profiles` type. + * Array of account prefixed IDs to export data from. Not required for `public_profiles` type. For `fansly_chat_messages`, pass Fansly account prefixed IDs (`fansly_acct_...`); all other types take OnlyFans account IDs. * * @param list $accountIDs */ @@ -239,7 +239,7 @@ public function withExportColumns(array $exportColumns): self } /** - * Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). + * Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `fansly_chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `chatIds` (optional array of Fansly group ID strings; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). * * @param array $options */ diff --git a/src/DataExports/DataExportCreateParams/FileType.php b/src/DataExports/DataExportCreateParams/FileType.php index 6eec7841..df690ba5 100644 --- a/src/DataExports/DataExportCreateParams/FileType.php +++ b/src/DataExports/DataExportCreateParams/FileType.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportCreateParams; +namespace OnlyFansAPI\DataExports\DataExportCreateParams; /** - * The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + * The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, fansly_chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` for media_vault. */ enum FileType: string { diff --git a/src/DataExports/DataExportCreateParams/Type.php b/src/DataExports/DataExportCreateParams/Type.php index 326d4124..908b8a64 100644 --- a/src/DataExports/DataExportCreateParams/Type.php +++ b/src/DataExports/DataExportCreateParams/Type.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportCreateParams; +namespace OnlyFansAPI\DataExports\DataExportCreateParams; /** - * The type of data to export. + * The type of data to export. Use `fansly_chat_messages` to export Fansly chat messages (all other types are OnlyFans). `profile_visitors` returns one row per account per day, scraped one day at a time so the daily numbers are not aggregated away by OnlyFans. */ enum Type: string { @@ -30,4 +30,8 @@ enum Type: string case FANS = 'fans'; case FOLLOWINGS = 'followings'; + + case PROFILE_VISITORS = 'profile_visitors'; + + case FANSLY_CHAT_MESSAGES = 'fansly_chat_messages'; } diff --git a/src/DataExports/DataExportGetResponse.php b/src/DataExports/DataExportGetResponse.php index e382dfe0..a63800b0 100644 --- a/src/DataExports/DataExportGetResponse.php +++ b/src/DataExports/DataExportGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportGetResponse\_Meta; -use Onlyfansapi\DataExports\DataExportGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportGetResponse\_Meta; +use OnlyFansAPI\DataExports\DataExportGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\DataExports\DataExportGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\DataExports\DataExportGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\DataExports\DataExportGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\DataExports\DataExportGetResponse\Data * * @phpstan-type DataExportGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/DataExports/DataExportGetResponse/Data.php b/src/DataExports/DataExportGetResponse/Data.php index cc9ba209..c5381beb 100644 --- a/src/DataExports/DataExportGetResponse/Data.php +++ b/src/DataExports/DataExportGetResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportGetResponse; +namespace OnlyFansAPI\DataExports\DataExportGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportGetResponse\Data\Account; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportGetResponse\Data\Account; /** - * @phpstan-import-type AccountShape from \Onlyfansapi\DataExports\DataExportGetResponse\Data\Account + * @phpstan-import-type AccountShape from \OnlyFansAPI\DataExports\DataExportGetResponse\Data\Account * * @phpstan-type DataShape = array{ * id?: string|null, @@ -21,6 +21,7 @@ * endDate?: string|null, * exportColumns?: list|null, * failedAt?: string|null, + * failedDownloads?: int|null, * failedReason?: string|null, * fileType?: string|null, * progressPercentage?: int|null, @@ -62,6 +63,9 @@ final class Data implements BaseModel #[Optional('failed_at', nullable: true)] public ?string $failedAt; + #[Optional('failed_downloads')] + public ?int $failedDownloads; + #[Optional('failed_reason', nullable: true)] public ?string $failedReason; @@ -108,6 +112,7 @@ public static function with( ?string $endDate = null, ?array $exportColumns = null, ?string $failedAt = null, + ?int $failedDownloads = null, ?string $failedReason = null, ?string $fileType = null, ?int $progressPercentage = null, @@ -127,6 +132,7 @@ public static function with( null !== $endDate && $self['endDate'] = $endDate; null !== $exportColumns && $self['exportColumns'] = $exportColumns; null !== $failedAt && $self['failedAt'] = $failedAt; + null !== $failedDownloads && $self['failedDownloads'] = $failedDownloads; null !== $failedReason && $self['failedReason'] = $failedReason; null !== $fileType && $self['fileType'] = $fileType; null !== $progressPercentage && $self['progressPercentage'] = $progressPercentage; @@ -209,6 +215,14 @@ public function withFailedAt(?string $failedAt): self return $self; } + public function withFailedDownloads(int $failedDownloads): self + { + $self = clone $this; + $self['failedDownloads'] = $failedDownloads; + + return $self; + } + public function withFailedReason(?string $failedReason): self { $self = clone $this; diff --git a/src/DataExports/DataExportGetResponse/Data/Account.php b/src/DataExports/DataExportGetResponse/Data/Account.php index 666c028c..fd8abce0 100644 --- a/src/DataExports/DataExportGetResponse/Data/Account.php +++ b/src/DataExports/DataExportGetResponse/Data/Account.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportGetResponse\Data; +namespace OnlyFansAPI\DataExports\DataExportGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AccountShape = array{id?: string|null, displayName?: string|null} diff --git a/src/DataExports/DataExportGetResponse/_Meta.php b/src/DataExports/DataExportGetResponse/_Meta.php index fd380f90..a6b3df81 100644 --- a/src/DataExports/DataExportGetResponse/_Meta.php +++ b/src/DataExports/DataExportGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportGetResponse; +namespace OnlyFansAPI\DataExports\DataExportGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportGetResponse\_Meta\_Cache; -use Onlyfansapi\DataExports\DataExportGetResponse\_Meta\_Credits; -use Onlyfansapi\DataExports\DataExportGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportGetResponse\_Meta\_Cache; +use OnlyFansAPI\DataExports\DataExportGetResponse\_Meta\_Credits; +use OnlyFansAPI\DataExports\DataExportGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\DataExports\DataExportGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\DataExports\DataExportGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\DataExports\DataExportGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\DataExports\DataExportGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\DataExports\DataExportGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\DataExports\DataExportGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/DataExports/DataExportGetResponse/_Meta/_Cache.php b/src/DataExports/DataExportGetResponse/_Meta/_Cache.php index e509b03a..e4830531 100644 --- a/src/DataExports/DataExportGetResponse/_Meta/_Cache.php +++ b/src/DataExports/DataExportGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportGetResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/DataExports/DataExportGetResponse/_Meta/_Credits.php b/src/DataExports/DataExportGetResponse/_Meta/_Credits.php index 8ad83c09..6c5ad0f1 100644 --- a/src/DataExports/DataExportGetResponse/_Meta/_Credits.php +++ b/src/DataExports/DataExportGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportGetResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/DataExports/DataExportGetResponse/_Meta/_RateLimits.php b/src/DataExports/DataExportGetResponse/_Meta/_RateLimits.php index 942d8900..4b75f04c 100644 --- a/src/DataExports/DataExportGetResponse/_Meta/_RateLimits.php +++ b/src/DataExports/DataExportGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportGetResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/DataExports/DataExportListParams.php b/src/DataExports/DataExportListParams.php index 2752f8da..cd1e819f 100644 --- a/src/DataExports/DataExportListParams.php +++ b/src/DataExports/DataExportListParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportListParams\Status; -use Onlyfansapi\DataExports\DataExportListParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportListParams\Status; +use OnlyFansAPI\DataExports\DataExportListParams\Type; /** * Get a paginated list of data exports for the team. * - * @see Onlyfansapi\Services\DataExportsService::list() + * @see OnlyFansAPI\Services\DataExportsService::list() * * @phpstan-type DataExportListParamsShape = array{ * downloadURLExpiresIn?: int|null, diff --git a/src/DataExports/DataExportListParams/Status.php b/src/DataExports/DataExportListParams/Status.php index 1d834545..76a92d01 100644 --- a/src/DataExports/DataExportListParams/Status.php +++ b/src/DataExports/DataExportListParams/Status.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListParams; +namespace OnlyFansAPI\DataExports\DataExportListParams; /** * Filter by status. diff --git a/src/DataExports/DataExportListParams/Type.php b/src/DataExports/DataExportListParams/Type.php index f9091bc7..9a10e931 100644 --- a/src/DataExports/DataExportListParams/Type.php +++ b/src/DataExports/DataExportListParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListParams; +namespace OnlyFansAPI\DataExports\DataExportListParams; /** * Filter by export type. @@ -19,9 +19,19 @@ enum Type: string case TRACKING_LINKS = 'tracking_links'; + case SMART_LINKS = 'smart_links'; + case PAYOUTS = 'payouts'; case CHARGEBACKS = 'chargebacks'; case PUBLIC_PROFILES = 'public_profiles'; + + case FANS = 'fans'; + + case FOLLOWINGS = 'followings'; + + case PROFILE_VISITORS = 'profile_visitors'; + + case FANSLY_CHAT_MESSAGES = 'fansly_chat_messages'; } diff --git a/src/DataExports/DataExportListResponse.php b/src/DataExports/DataExportListResponse.php index 243d1488..10c531fb 100644 --- a/src/DataExports/DataExportListResponse.php +++ b/src/DataExports/DataExportListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportListResponse\_Meta; -use Onlyfansapi\DataExports\DataExportListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportListResponse\_Meta; +use OnlyFansAPI\DataExports\DataExportListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\DataExports\DataExportListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\DataExports\DataExportListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\DataExports\DataExportListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\DataExports\DataExportListResponse\Data * * @phpstan-type DataExportListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/DataExports/DataExportListResponse/Data.php b/src/DataExports/DataExportListResponse/Data.php index e87a527f..bee72a8e 100644 --- a/src/DataExports/DataExportListResponse/Data.php +++ b/src/DataExports/DataExportListResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse; +namespace OnlyFansAPI\DataExports\DataExportListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportListResponse\Data\Meta; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportListResponse\Data\Meta; /** - * @phpstan-import-type DataShape from \Onlyfansapi\DataExports\DataExportListResponse\Data\Data as DataShape1 - * @phpstan-import-type MetaShape from \Onlyfansapi\DataExports\DataExportListResponse\Data\Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\DataExports\DataExportListResponse\Data\Data as DataShape1 + * @phpstan-import-type MetaShape from \OnlyFansAPI\DataExports\DataExportListResponse\Data\Meta * * @phpstan-type DataShape = array{ - * data?: list<\Onlyfansapi\DataExports\DataExportListResponse\Data\Data|DataShape1>|null, + * data?: list<\OnlyFansAPI\DataExports\DataExportListResponse\Data\Data|DataShape1>|null, * meta?: null|Meta|MetaShape, * } */ diff --git a/src/DataExports/DataExportListResponse/Data/Data.php b/src/DataExports/DataExportListResponse/Data/Data.php index f4c58ba0..ad0d6f92 100644 --- a/src/DataExports/DataExportListResponse/Data/Data.php +++ b/src/DataExports/DataExportListResponse/Data/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse\Data; +namespace OnlyFansAPI\DataExports\DataExportListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportListResponse\Data\Data\Account; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportListResponse\Data\Data\Account; /** - * @phpstan-import-type AccountShape from \Onlyfansapi\DataExports\DataExportListResponse\Data\Data\Account + * @phpstan-import-type AccountShape from \OnlyFansAPI\DataExports\DataExportListResponse\Data\Data\Account * * @phpstan-type DataShape = array{ * id?: string|null, @@ -23,6 +23,7 @@ * endDate?: string|null, * exportColumns?: list|null, * failedAt?: string|null, + * failedDownloads?: int|null, * failedReason?: string|null, * fileType?: string|null, * progressPercentage?: int|null, @@ -70,6 +71,9 @@ final class Data implements BaseModel #[Optional('failed_at', nullable: true)] public ?string $failedAt; + #[Optional('failed_downloads')] + public ?int $failedDownloads; + #[Optional('failed_reason', nullable: true)] public ?string $failedReason; @@ -118,6 +122,7 @@ public static function with( ?string $endDate = null, ?array $exportColumns = null, ?string $failedAt = null, + ?int $failedDownloads = null, ?string $failedReason = null, ?string $fileType = null, ?int $progressPercentage = null, @@ -139,6 +144,7 @@ public static function with( null !== $endDate && $self['endDate'] = $endDate; null !== $exportColumns && $self['exportColumns'] = $exportColumns; null !== $failedAt && $self['failedAt'] = $failedAt; + null !== $failedDownloads && $self['failedDownloads'] = $failedDownloads; null !== $failedReason && $self['failedReason'] = $failedReason; null !== $fileType && $self['fileType'] = $fileType; null !== $progressPercentage && $self['progressPercentage'] = $progressPercentage; @@ -237,6 +243,14 @@ public function withFailedAt(?string $failedAt): self return $self; } + public function withFailedDownloads(int $failedDownloads): self + { + $self = clone $this; + $self['failedDownloads'] = $failedDownloads; + + return $self; + } + public function withFailedReason(?string $failedReason): self { $self = clone $this; diff --git a/src/DataExports/DataExportListResponse/Data/Data/Account.php b/src/DataExports/DataExportListResponse/Data/Data/Account.php index bccb53dd..f42ff9cf 100644 --- a/src/DataExports/DataExportListResponse/Data/Data/Account.php +++ b/src/DataExports/DataExportListResponse/Data/Data/Account.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse\Data\Data; +namespace OnlyFansAPI\DataExports\DataExportListResponse\Data\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AccountShape = array{id?: string|null, displayName?: string|null} diff --git a/src/DataExports/DataExportListResponse/Data/Meta.php b/src/DataExports/DataExportListResponse/Data/Meta.php index 050ffd03..480af17c 100644 --- a/src/DataExports/DataExportListResponse/Data/Meta.php +++ b/src/DataExports/DataExportListResponse/Data/Meta.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse\Data; +namespace OnlyFansAPI\DataExports\DataExportListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type MetaShape = array{ diff --git a/src/DataExports/DataExportListResponse/_Meta.php b/src/DataExports/DataExportListResponse/_Meta.php index 05ca44c7..c9c4852c 100644 --- a/src/DataExports/DataExportListResponse/_Meta.php +++ b/src/DataExports/DataExportListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse; +namespace OnlyFansAPI\DataExports\DataExportListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportListResponse\_Meta\_Cache; -use Onlyfansapi\DataExports\DataExportListResponse\_Meta\_Credits; -use Onlyfansapi\DataExports\DataExportListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportListResponse\_Meta\_Cache; +use OnlyFansAPI\DataExports\DataExportListResponse\_Meta\_Credits; +use OnlyFansAPI\DataExports\DataExportListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\DataExports\DataExportListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\DataExports\DataExportListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\DataExports\DataExportListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\DataExports\DataExportListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\DataExports\DataExportListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\DataExports\DataExportListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/DataExports/DataExportListResponse/_Meta/_Cache.php b/src/DataExports/DataExportListResponse/_Meta/_Cache.php index cfb40810..b7b2f298 100644 --- a/src/DataExports/DataExportListResponse/_Meta/_Cache.php +++ b/src/DataExports/DataExportListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/DataExports/DataExportListResponse/_Meta/_Credits.php b/src/DataExports/DataExportListResponse/_Meta/_Credits.php index d86b52a4..e1ef452a 100644 --- a/src/DataExports/DataExportListResponse/_Meta/_Credits.php +++ b/src/DataExports/DataExportListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/DataExports/DataExportListResponse/_Meta/_RateLimits.php b/src/DataExports/DataExportListResponse/_Meta/_RateLimits.php index c356be09..7f929dcc 100644 --- a/src/DataExports/DataExportListResponse/_Meta/_RateLimits.php +++ b/src/DataExports/DataExportListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportListResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/DataExports/DataExportNewResponse.php b/src/DataExports/DataExportNewResponse.php index 98bcf599..5a329c15 100644 --- a/src/DataExports/DataExportNewResponse.php +++ b/src/DataExports/DataExportNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportNewResponse\_Meta; -use Onlyfansapi\DataExports\DataExportNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportNewResponse\_Meta; +use OnlyFansAPI\DataExports\DataExportNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\DataExports\DataExportNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\DataExports\DataExportNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\DataExports\DataExportNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\DataExports\DataExportNewResponse\Data * * @phpstan-type DataExportNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/DataExports/DataExportNewResponse/Data.php b/src/DataExports/DataExportNewResponse/Data.php index 182852c2..8f9ba7c8 100644 --- a/src/DataExports/DataExportNewResponse/Data.php +++ b/src/DataExports/DataExportNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportNewResponse; +namespace OnlyFansAPI\DataExports\DataExportNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/DataExports/DataExportNewResponse/_Meta.php b/src/DataExports/DataExportNewResponse/_Meta.php index 02f0076d..04704e9c 100644 --- a/src/DataExports/DataExportNewResponse/_Meta.php +++ b/src/DataExports/DataExportNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportNewResponse; +namespace OnlyFansAPI\DataExports\DataExportNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportNewResponse\_Meta\_Cache; -use Onlyfansapi\DataExports\DataExportNewResponse\_Meta\_Credits; -use Onlyfansapi\DataExports\DataExportNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportNewResponse\_Meta\_Cache; +use OnlyFansAPI\DataExports\DataExportNewResponse\_Meta\_Credits; +use OnlyFansAPI\DataExports\DataExportNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\DataExports\DataExportNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\DataExports\DataExportNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\DataExports\DataExportNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\DataExports\DataExportNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\DataExports\DataExportNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\DataExports\DataExportNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/DataExports/DataExportNewResponse/_Meta/_Cache.php b/src/DataExports/DataExportNewResponse/_Meta/_Cache.php index 3b731c72..5c6fd35a 100644 --- a/src/DataExports/DataExportNewResponse/_Meta/_Cache.php +++ b/src/DataExports/DataExportNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportNewResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/DataExports/DataExportNewResponse/_Meta/_Credits.php b/src/DataExports/DataExportNewResponse/_Meta/_Credits.php index f53e194b..9bcbaf7c 100644 --- a/src/DataExports/DataExportNewResponse/_Meta/_Credits.php +++ b/src/DataExports/DataExportNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportNewResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/DataExports/DataExportNewResponse/_Meta/_RateLimits.php b/src/DataExports/DataExportNewResponse/_Meta/_RateLimits.php index 1db5bf4d..3919ac43 100644 --- a/src/DataExports/DataExportNewResponse/_Meta/_RateLimits.php +++ b/src/DataExports/DataExportNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportNewResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/DataExports/DataExportRetrieveParams.php b/src/DataExports/DataExportRetrieveParams.php index c746ff9a..095efa5e 100644 --- a/src/DataExports/DataExportRetrieveParams.php +++ b/src/DataExports/DataExportRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get the current status and progress of a data export. * - * @see Onlyfansapi\Services\DataExportsService::retrieve() + * @see OnlyFansAPI\Services\DataExportsService::retrieve() * * @phpstan-type DataExportRetrieveParamsShape = array{ * downloadURLExpiresIn?: int|null diff --git a/src/DataExports/DataExportRetryResponse.php b/src/DataExports/DataExportRetryResponse.php index 34106166..747097e0 100644 --- a/src/DataExports/DataExportRetryResponse.php +++ b/src/DataExports/DataExportRetryResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportRetryResponse\_Meta; -use Onlyfansapi\DataExports\DataExportRetryResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta; +use OnlyFansAPI\DataExports\DataExportRetryResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\DataExports\DataExportRetryResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\DataExports\DataExportRetryResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\DataExports\DataExportRetryResponse\Data * * @phpstan-type DataExportRetryResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/DataExports/DataExportRetryResponse/Data.php b/src/DataExports/DataExportRetryResponse/Data.php index 10079e60..15ac1695 100644 --- a/src/DataExports/DataExportRetryResponse/Data.php +++ b/src/DataExports/DataExportRetryResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportRetryResponse; +namespace OnlyFansAPI\DataExports\DataExportRetryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/DataExports/DataExportRetryResponse/_Meta.php b/src/DataExports/DataExportRetryResponse/_Meta.php index d6afc5d3..d679f9e7 100644 --- a/src/DataExports/DataExportRetryResponse/_Meta.php +++ b/src/DataExports/DataExportRetryResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportRetryResponse; +namespace OnlyFansAPI\DataExports\DataExportRetryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportRetryResponse\_Meta\_Cache; -use Onlyfansapi\DataExports\DataExportRetryResponse\_Meta\_Credits; -use Onlyfansapi\DataExports\DataExportRetryResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta\_Cache; +use OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta\_Credits; +use OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\DataExports\DataExportRetryResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\DataExports\DataExportRetryResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\DataExports\DataExportRetryResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/DataExports/DataExportRetryResponse/_Meta/_Cache.php b/src/DataExports/DataExportRetryResponse/_Meta/_Cache.php index 8f9ac081..66715d7a 100644 --- a/src/DataExports/DataExportRetryResponse/_Meta/_Cache.php +++ b/src/DataExports/DataExportRetryResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportRetryResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/DataExports/DataExportRetryResponse/_Meta/_Credits.php b/src/DataExports/DataExportRetryResponse/_Meta/_Credits.php index b5dc9061..cd62639b 100644 --- a/src/DataExports/DataExportRetryResponse/_Meta/_Credits.php +++ b/src/DataExports/DataExportRetryResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportRetryResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/DataExports/DataExportRetryResponse/_Meta/_RateLimits.php b/src/DataExports/DataExportRetryResponse/_Meta/_RateLimits.php index 0e52dff7..0ceb5409 100644 --- a/src/DataExports/DataExportRetryResponse/_Meta/_RateLimits.php +++ b/src/DataExports/DataExportRetryResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportRetryResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportRetryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/DataExports/DataExportStartResponse.php b/src/DataExports/DataExportStartResponse.php index 8663fb25..4ef0c143 100644 --- a/src/DataExports/DataExportStartResponse.php +++ b/src/DataExports/DataExportStartResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports; +namespace OnlyFansAPI\DataExports; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportStartResponse\_Meta; -use Onlyfansapi\DataExports\DataExportStartResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportStartResponse\_Meta; +use OnlyFansAPI\DataExports\DataExportStartResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\DataExports\DataExportStartResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\DataExports\DataExportStartResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\DataExports\DataExportStartResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\DataExports\DataExportStartResponse\Data * * @phpstan-type DataExportStartResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/DataExports/DataExportStartResponse/Data.php b/src/DataExports/DataExportStartResponse/Data.php index 058bfb32..a300dd1e 100644 --- a/src/DataExports/DataExportStartResponse/Data.php +++ b/src/DataExports/DataExportStartResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportStartResponse; +namespace OnlyFansAPI\DataExports\DataExportStartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/DataExports/DataExportStartResponse/_Meta.php b/src/DataExports/DataExportStartResponse/_Meta.php index bb5348ba..f1dab7ad 100644 --- a/src/DataExports/DataExportStartResponse/_Meta.php +++ b/src/DataExports/DataExportStartResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportStartResponse; +namespace OnlyFansAPI\DataExports\DataExportStartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\DataExports\DataExportStartResponse\_Meta\_Cache; -use Onlyfansapi\DataExports\DataExportStartResponse\_Meta\_Credits; -use Onlyfansapi\DataExports\DataExportStartResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\DataExports\DataExportStartResponse\_Meta\_Cache; +use OnlyFansAPI\DataExports\DataExportStartResponse\_Meta\_Credits; +use OnlyFansAPI\DataExports\DataExportStartResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\DataExports\DataExportStartResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\DataExports\DataExportStartResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\DataExports\DataExportStartResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\DataExports\DataExportStartResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\DataExports\DataExportStartResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\DataExports\DataExportStartResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/DataExports/DataExportStartResponse/_Meta/_Cache.php b/src/DataExports/DataExportStartResponse/_Meta/_Cache.php index fcc70766..f2550523 100644 --- a/src/DataExports/DataExportStartResponse/_Meta/_Cache.php +++ b/src/DataExports/DataExportStartResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportStartResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportStartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/DataExports/DataExportStartResponse/_Meta/_Credits.php b/src/DataExports/DataExportStartResponse/_Meta/_Credits.php index 7712f365..62d68410 100644 --- a/src/DataExports/DataExportStartResponse/_Meta/_Credits.php +++ b/src/DataExports/DataExportStartResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportStartResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportStartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/DataExports/DataExportStartResponse/_Meta/_RateLimits.php b/src/DataExports/DataExportStartResponse/_Meta/_RateLimits.php index 8747b5e5..d79119b9 100644 --- a/src/DataExports/DataExportStartResponse/_Meta/_RateLimits.php +++ b/src/DataExports/DataExportStartResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\DataExports\DataExportStartResponse\_Meta; +namespace OnlyFansAPI\DataExports\DataExportStartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartParams.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartParams.php index 418889df..04306e2d 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartParams.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get engagement chart metrics for direct messages: sent count and purchase amount over time. * - * @see Onlyfansapi\Services\Engagement\Messages\DirectMessagesService::chart() + * @see OnlyFansAPI\Services\Engagement\Messages\DirectMessagesService::chart() * * @phpstan-type DirectMessageChartParamsShape = array{ * endDate?: string|null, startDate?: string|null, withTotal?: bool|null @@ -25,7 +25,7 @@ final class DirectMessageChartParams implements BaseModel use SdkParams; /** - * End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. */ #[Optional] public ?string $endDate; @@ -67,7 +67,7 @@ public static function with( } /** - * End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. */ public function withEndDate(string $endDate): self { diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse.php index efd83f05..abb8c1c9 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data * * @phpstan-type DirectMessageChartResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data.php index a0be54d6..b84b1f1d 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases; /** - * @phpstan-import-type DirectMessagesShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages - * @phpstan-import-type DirectMessagesPurchasesShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases + * @phpstan-import-type DirectMessagesShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages + * @phpstan-import-type DirectMessagesPurchasesShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases * * @phpstan-type DataShape = array{ * directMessages?: null|DirectMessages|DirectMessagesShape, diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages.php index 53907296..90085229 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages\Chart; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages\Chart; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages\Chart + * @phpstan-import-type ChartShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages\Chart * * @phpstan-type DirectMessagesShape = array{ * chart?: list|null, delta?: int|null, total?: int|null diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages/Chart.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages/Chart.php index 8d738683..a52f12a5 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages/Chart.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessages/Chart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases.php index 152f86d0..ae535036 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases\Chart; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases\Chart; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases\Chart + * @phpstan-import-type ChartShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases\Chart * * @phpstan-type DirectMessagesPurchasesShape = array{ * chart?: list|null, delta?: float|null, total?: float|null diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases/Chart.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases/Chart.php index 25989312..aad68a38 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases/Chart.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/Data/DirectMessagesPurchases/Chart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\Data\DirectMessagesPurchases; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartShape = array{count?: float|null, date?: string|null} diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta.php index 37bcafe3..c441fd16 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Cache; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Credits; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Cache; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Credits; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Cache.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Cache.php index af3d2c09..4c9e5869 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Cache.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Credits.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Credits.php index 6ca5a53a..f163c8a4 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Credits.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_RateLimits.php b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_RateLimits.php index 52654475..84d67e6d 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_RateLimits.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageChartResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListParams.php b/src/Engagement/Messages/DirectMessages/DirectMessageListParams.php index dbbdeb29..cbf847f6 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListParams.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List sent direct messages with engagement stats (sent, viewed, purchased, etc.). * - * @see Onlyfansapi\Services\Engagement\Messages\DirectMessagesService::list() + * @see OnlyFansAPI\Services\Engagement\Messages\DirectMessagesService::list() * * @phpstan-type DirectMessageListParamsShape = array{ * endDate?: string|null, @@ -29,7 +29,7 @@ final class DirectMessageListParams implements BaseModel use SdkParams; /** - * The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. */ #[Optional] public ?string $endDate; @@ -87,7 +87,7 @@ public static function with( } /** - * The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. */ public function withEndDate(string $endDate): self { diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse.php index 79b97eea..911b3de0 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Pagination; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Pagination; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data * * @phpstan-type DirectMessageListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data.php index 64ec1159..f97c7781 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item; /** - * @phpstan-import-type ItemShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item + * @phpstan-import-type ItemShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item * * @phpstan-type DataShape = array{ * hasMore?: bool|null, items?: list|null diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item.php index 1e08a072..f7a6d370 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media * * @phpstan-type ItemShape = array{ * id?: int|null, diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media.php index 946bebba..44b49da8 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files.php index 806599f5..73ef072e 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Full; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Preview; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\SquarePreview; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Full; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Preview; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\SquarePreview; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Full.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Full.php index 657ba1f8..a6f73a72 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Full.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Preview.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Preview.php index e36ee929..888aec8d 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Preview.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Preview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PreviewShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/SquarePreview.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/SquarePreview.php index d1e6708b..c8cdf1e4 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/SquarePreview.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/SquarePreview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SquarePreviewShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Thumb.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Thumb.php index 1a43c2bd..5ce36562 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Thumb.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/VideoSources.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/VideoSources.php index b597ddc1..495c27a0 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/VideoSources.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/Data/Item/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\Data\Item\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta.php index da3233d5..b5d1be87 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Cache; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Credits; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Cache; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Credits; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Cache.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Cache.php index ccc5f645..bad1fecf 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Cache.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Credits.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Credits.php index 3baebef4..68a10bef 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Credits.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_RateLimits.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_RateLimits.php index e1b58de8..a1a32c84 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_RateLimits.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Pagination.php b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Pagination.php index 7b632860..cc71084d 100644 --- a/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Pagination.php +++ b/src/Engagement/Messages/DirectMessages/DirectMessageListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; +namespace OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartParams.php b/src/Engagement/Messages/MassMessages/MassMessageChartParams.php index 4f62b226..4209543f 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartParams.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages; +namespace OnlyFansAPI\Engagement\Messages\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get engagement chart metrics for mass messages: sent count and purchase amount over time. * - * @see Onlyfansapi\Services\Engagement\Messages\MassMessagesService::chart() + * @see OnlyFansAPI\Services\Engagement\Messages\MassMessagesService::chart() * * @phpstan-type MassMessageChartParamsShape = array{ * endDate?: string|null, startDate?: string|null, withTotal?: bool|null @@ -25,7 +25,7 @@ final class MassMessageChartParams implements BaseModel use SdkParams; /** - * End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. */ #[Optional] public ?string $endDate; @@ -67,7 +67,7 @@ public static function with( } /** - * End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. */ public function withEndDate(string $endDate): self { diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse.php index 621477d8..2c862821 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages; +namespace OnlyFansAPI\Engagement\Messages\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data * * @phpstan-type MassMessageChartResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data.php index 03568094..46f22f2a 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases; /** - * @phpstan-import-type GroupMessagesShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages - * @phpstan-import-type GroupMessagesPurchasesShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases + * @phpstan-import-type GroupMessagesShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages + * @phpstan-import-type GroupMessagesPurchasesShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases * * @phpstan-type DataShape = array{ * groupMessages?: null|GroupMessages|GroupMessagesShape, diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages.php index 4eed391e..3658d017 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages\Chart; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages\Chart; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages\Chart + * @phpstan-import-type ChartShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages\Chart * * @phpstan-type GroupMessagesShape = array{ * chart?: list|null, delta?: float|null, total?: int|null diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages/Chart.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages/Chart.php index 03deefac..3cbb1e44 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages/Chart.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessages/Chart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases.php index 40920c24..cfdf47c1 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases\Chart; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases\Chart; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases\Chart + * @phpstan-import-type ChartShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases\Chart * * @phpstan-type GroupMessagesPurchasesShape = array{ * chart?: list|null, delta?: float|null, total?: int|null diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases/Chart.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases/Chart.php index e3610408..e5471c38 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases/Chart.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/Data/GroupMessagesPurchases/Chart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\Data\GroupMessagesPurchases; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartShape = array{count?: float|null, date?: string|null} diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta.php index 101a00a4..4e3f921b 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Cache; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Credits; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Cache; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Credits; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Cache.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Cache.php index f7f45d8a..30f4f66e 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Cache.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Credits.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Credits.php index c483edee..7fc66233 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Credits.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_RateLimits.php b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_RateLimits.php index 0455c899..b3c5e594 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_RateLimits.php +++ b/src/Engagement/Messages/MassMessages/MassMessageChartResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Engagement/Messages/MassMessages/MassMessageListParams.php b/src/Engagement/Messages/MassMessages/MassMessageListParams.php index da96c7d2..e6cc1bdc 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListParams.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages; +namespace OnlyFansAPI\Engagement\Messages\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List sent mass messages with engagement stats (sent, viewed, purchased, etc.). * - * @see Onlyfansapi\Services\Engagement\Messages\MassMessagesService::list() + * @see OnlyFansAPI\Services\Engagement\Messages\MassMessagesService::list() * * @phpstan-type MassMessageListParamsShape = array{ * endDate?: string|null, @@ -28,7 +28,7 @@ final class MassMessageListParams implements BaseModel use SdkParams; /** - * The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. */ #[Optional] public ?string $endDate; @@ -78,7 +78,7 @@ public static function with( } /** - * The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. */ public function withEndDate(string $endDate): self { diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse.php index 67b1cf02..3ca849d3 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages; +namespace OnlyFansAPI\Engagement\Messages\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Pagination; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Pagination; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\Data * * @phpstan-type MassMessageListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data.php index 52f74058..5191fa29 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\Data\Item; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\Data\Item; /** - * @phpstan-import-type ItemShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\Data\Item + * @phpstan-import-type ItemShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\Data\Item * * @phpstan-type DataShape = array{ * hasMore?: bool|null, items?: list|null diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data/Item.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data/Item.php index 91df837e..b4fb3b44 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data/Item.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse/Data/Item.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ItemShape = array{ diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta.php index 873e0286..4233ea00 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Cache; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Credits; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Cache; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Credits; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Cache.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Cache.php index e43a223b..9ebde678 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Cache.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Credits.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Credits.php index 5251eee9..6838bf88 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Credits.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_RateLimits.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_RateLimits.php index ae7e5913..d1af55be 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_RateLimits.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Pagination.php b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Pagination.php index b0343949..8790fa3c 100644 --- a/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Pagination.php +++ b/src/Engagement/Messages/MassMessages/MassMessageListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; +namespace OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Engagement/Messages/MessageGetMessageBuyersParams.php b/src/Engagement/Messages/MessageGetMessageBuyersParams.php index 59ce7278..3e223e70 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersParams.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages; +namespace OnlyFansAPI\Engagement\Messages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List buyers for a specific message. * - * @see Onlyfansapi\Services\Engagement\MessagesService::getMessageBuyers() + * @see OnlyFansAPI\Services\Engagement\MessagesService::getMessageBuyers() * * @phpstan-type MessageGetMessageBuyersParamsShape = array{ * account: string, diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse.php index e2a3d7f9..7523409a 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages; +namespace OnlyFansAPI\Engagement\Messages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Pagination; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Pagination; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\Data * * @phpstan-type MessageGetMessageBuyersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data.php index 28e7f7ec..b3998dd3 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; +namespace OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null, marker?: int|null diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data/List_.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data/List_.php index e2c38032..62235750 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data/List_.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{ diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta.php index abda51e9..1ed58bbf 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; +namespace OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Cache; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Credits; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Cache; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Credits; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Cache.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Cache.php index 9a7dd6f4..3a24e7e5 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Cache.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Credits.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Credits.php index c7876bf1..c0686939 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Credits.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_RateLimits.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_RateLimits.php index ef057257..f581b2f7 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_RateLimits.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Pagination.php b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Pagination.php index f34aefac..099fcf44 100644 --- a/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Pagination.php +++ b/src/Engagement/Messages/MessageGetMessageBuyersResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; +namespace OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Engagement/Messages/MessageGetTopMessageParams.php b/src/Engagement/Messages/MessageGetTopMessageParams.php index a6a9062b..82240ed6 100644 --- a/src/Engagement/Messages/MessageGetTopMessageParams.php +++ b/src/Engagement/Messages/MessageGetTopMessageParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages; +namespace OnlyFansAPI\Engagement\Messages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get the top performing message by purchases in the selected timeframe. * - * @see Onlyfansapi\Services\Engagement\MessagesService::getTopMessage() + * @see OnlyFansAPI\Services\Engagement\MessagesService::getTopMessage() * * @phpstan-type MessageGetTopMessageParamsShape = array{ * endDate?: string|null, startDate?: string|null @@ -25,7 +25,7 @@ final class MessageGetTopMessageParams implements BaseModel use SdkParams; /** - * The end date for the period. Keep empty to retrieve until now. MUST BE DATE AFTER `startDate`. + * The end date for the period. Keep empty to retrieve until now. It must be after `startDate`. */ #[Optional] public ?string $endDate; @@ -59,7 +59,7 @@ public static function with( } /** - * The end date for the period. Keep empty to retrieve until now. MUST BE DATE AFTER `startDate`. + * The end date for the period. Keep empty to retrieve until now. It must be after `startDate`. */ public function withEndDate(string $endDate): self { diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse.php b/src/Engagement/Messages/MessageGetTopMessageResponse.php index d8deba76..c5f6ed46 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages; +namespace OnlyFansAPI\Engagement\Messages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data * * @phpstan-type MessageGetTopMessageResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data.php index 370afda7..68c7edbb 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases; /** - * @phpstan-import-type PurchasesShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases + * @phpstan-import-type PurchasesShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases * * @phpstan-type DataShape = array{purchases?: null|Purchases|PurchasesShape} */ diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases.php index 7a5e283f..cda8f80d 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media - * @phpstan-import-type RelationshipsShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships + * @phpstan-import-type MediaShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media + * @phpstan-import-type RelationshipsShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships * * @phpstan-type PurchasesShape = array{ * id?: int|null, diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media.php index 95ca52a6..9b447424 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files.php index 2ab36ae6..f5db9a35 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Full; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Preview; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\SquarePreview; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Full; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Preview; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\SquarePreview; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Full.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Full.php index f85bdd73..9756293d 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Full.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Preview.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Preview.php index 84b78602..19a9284a 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Preview.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Preview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PreviewShape = array{ diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/SquarePreview.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/SquarePreview.php index af431457..d12e836e 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/SquarePreview.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/SquarePreview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SquarePreviewShape = array{ diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Thumb.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Thumb.php index a17684c0..34b7ce19 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Thumb.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/VideoSources.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/VideoSources.php index cf96ce2b..ecf49d22 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/VideoSources.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships.php index 57660f1b..25f92499 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships\Buyers; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships\Buyers; /** - * @phpstan-import-type BuyersShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships\Buyers + * @phpstan-import-type BuyersShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships\Buyers * * @phpstan-type RelationshipsShape = array{buyers?: null|Buyers|BuyersShape} */ diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships/Buyers.php b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships/Buyers.php index 70156ecc..ef558e70 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships/Buyers.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/Data/Purchases/Relationships/Buyers.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\Data\Purchases\Relationships; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type BuyersShape = array{href?: string|null, method?: string|null} diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta.php b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta.php index c6f1ee65..f3254733 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Cache; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Credits; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Cache; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Credits; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Cache.php b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Cache.php index 72d0e8f2..9152d6b6 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Cache.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Credits.php b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Credits.php index 56d6f9f6..51dddb25 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Credits.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_RateLimits.php b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_RateLimits.php index 2ec9bc63..eff7f188 100644 --- a/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_RateLimits.php +++ b/src/Engagement/Messages/MessageGetTopMessageResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse\_Meta; +namespace OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/FanGetSubscriptionHistoryParams.php b/src/Fans/FanGetSubscriptionHistoryParams.php index 69e04235..f0d9cdd9 100644 --- a/src/Fans/FanGetSubscriptionHistoryParams.php +++ b/src/Fans/FanGetSubscriptionHistoryParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get Subscription History for a given OnlyFans User ID. This can be useful, for example, when the user's subscribed to your account for the first time. * - * @see Onlyfansapi\Services\FansService::getSubscriptionHistory() + * @see OnlyFansAPI\Services\FansService::getSubscriptionHistory() * * @phpstan-type FanGetSubscriptionHistoryParamsShape = array{account: string} */ diff --git a/src/Fans/FanGetSubscriptionHistoryResponse.php b/src/Fans/FanGetSubscriptionHistoryResponse.php index 45bcb1c8..a43b232a 100644 --- a/src/Fans/FanGetSubscriptionHistoryResponse.php +++ b/src/Fans/FanGetSubscriptionHistoryResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\Data * * @phpstan-type FanGetSubscriptionHistoryResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Fans/FanGetSubscriptionHistoryResponse/Data.php b/src/Fans/FanGetSubscriptionHistoryResponse/Data.php index a1d627b6..7cd94e29 100644 --- a/src/Fans/FanGetSubscriptionHistoryResponse/Data.php +++ b/src/Fans/FanGetSubscriptionHistoryResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse; +namespace OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Fans/FanGetSubscriptionHistoryResponse/Data/List_.php b/src/Fans/FanGetSubscriptionHistoryResponse/Data/List_.php index 14e43d32..c11d4f0a 100644 --- a/src/Fans/FanGetSubscriptionHistoryResponse/Data/List_.php +++ b/src/Fans/FanGetSubscriptionHistoryResponse/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\Data; +namespace OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{ diff --git a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta.php b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta.php index 9b0c0eb6..8698daf3 100644 --- a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta.php +++ b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse; +namespace OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Cache; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Credits; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Cache.php b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Cache.php index 73f65787..28217e51 100644 --- a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Cache.php +++ b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta; +namespace OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Credits.php b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Credits.php index 251a0b3a..588af0f2 100644 --- a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Credits.php +++ b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta; +namespace OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_RateLimits.php b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_RateLimits.php index e1d0118d..15f8b1c1 100644 --- a/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_RateLimits.php +++ b/src/Fans/FanGetSubscriptionHistoryResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse\_Meta; +namespace OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/FanListActiveParams.php b/src/Fans/FanListActiveParams.php index 0c0215c3..c2732927 100644 --- a/src/Fans/FanListActiveParams.php +++ b/src/Fans/FanListActiveParams.php @@ -2,21 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListActiveParams\Filter; -use Onlyfansapi\Fans\FanListActiveParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListActiveParams\Filter; +use OnlyFansAPI\Fans\FanListActiveParams\Type; /** - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. To track progress, GET `/{account}/me` returns data.subscribersCount (the current active-subscriber count) as a total. * - * @see Onlyfansapi\Services\FansService::listActive() + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListActiveParams\Filter + * @see OnlyFansAPI\Services\FansService::listActive() + * + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListActiveParams\Filter * * @phpstan-type FanListActiveParamsShape = array{ * filter?: null|Filter|FilterShape, @@ -36,7 +38,7 @@ final class FanListActiveParams implements BaseModel public ?Filter $filter; /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. */ #[Optional] public ?int $limit; @@ -104,7 +106,7 @@ public function withFilter(Filter|array $filter): self } /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. */ public function withLimit(int $limit): self { diff --git a/src/Fans/FanListActiveParams/Filter.php b/src/Fans/FanListActiveParams/Filter.php index 74adf3cc..39ceb6c6 100644 --- a/src/Fans/FanListActiveParams/Filter.php +++ b/src/Fans/FanListActiveParams/Filter.php @@ -2,16 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveParams; +namespace OnlyFansAPI\Fans\FanListActiveParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListActiveParams\Filter\Online; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListActiveParams\Filter\Online; /** * @phpstan-type FilterShape = array{ * duration?: int|null, + * maxTotalSpent?: float|null, * online?: null|Online|value-of, * tips?: int|null, * totalSpent?: int|null, @@ -23,13 +24,23 @@ final class Filter implements BaseModel use SdkModel; /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, because PHP rewrites it to `filter_duration` and the filter could not be applied. Must be at least 0. */ #[Optional] public ?int $duration; /** - * Filter by online status (`1` for online fans). + * Filter by **maximum** amount total spent by a fan — use `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with `filter[total_spent]` for a range. Must use bracket syntax: filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against OnlyFansAPI's own fan index instead of being proxied. The fan objects in `data.list` are still fetched live from OnlyFans and are re-checked against your filters before being returned, but only fans we have already indexed for this account can appear. Each response reports its own coverage under `data._source`; when `data._source.is_complete` is `false` a full-base backfill is queued automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which OnlyFans returned no usable data for on that page (a deleted account, or a partial response). They are left out of `data.list` and not revisited later in the same walk, so a non-zero value means that page was short — start a fresh walk to retry them. Cannot be combined with `filter[online]`. Must be at least 0. + */ + #[Optional('max_total_spent')] + public ?float $maxTotalSpent; + + /** + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. * * @var value-of|null $online */ @@ -37,13 +48,13 @@ final class Filter implements BaseModel public ?int $online; /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is rejected with a 422, because PHP rewrites it to `filter_tips` and the filter could not be applied. Must be at least 0. */ #[Optional] public ?int $tips; /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to `filter_total_spent` and the filter could not be applied. Must be at least 0. */ #[Optional('total_spent')] public ?int $totalSpent; @@ -62,6 +73,7 @@ public function __construct() */ public static function with( ?int $duration = null, + ?float $maxTotalSpent = null, Online|int|null $online = null, ?int $tips = null, ?int $totalSpent = null, @@ -69,6 +81,7 @@ public static function with( $self = new self; null !== $duration && $self['duration'] = $duration; + null !== $maxTotalSpent && $self['maxTotalSpent'] = $maxTotalSpent; null !== $online && $self['online'] = $online; null !== $tips && $self['tips'] = $tips; null !== $totalSpent && $self['totalSpent'] = $totalSpent; @@ -77,7 +90,7 @@ public static function with( } /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, because PHP rewrites it to `filter_duration` and the filter could not be applied. Must be at least 0. */ public function withDuration(int $duration): self { @@ -88,7 +101,22 @@ public function withDuration(int $duration): self } /** - * Filter by online status (`1` for online fans). + * Filter by **maximum** amount total spent by a fan — use `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with `filter[total_spent]` for a range. Must use bracket syntax: filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against OnlyFansAPI's own fan index instead of being proxied. The fan objects in `data.list` are still fetched live from OnlyFans and are re-checked against your filters before being returned, but only fans we have already indexed for this account can appear. Each response reports its own coverage under `data._source`; when `data._source.is_complete` is `false` a full-base backfill is queued automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which OnlyFans returned no usable data for on that page (a deleted account, or a partial response). They are left out of `data.list` and not revisited later in the same walk, so a non-zero value means that page was short — start a fresh walk to retry them. Cannot be combined with `filter[online]`. Must be at least 0. + */ + public function withMaxTotalSpent(float $maxTotalSpent): self + { + $self = clone $this; + $self['maxTotalSpent'] = $maxTotalSpent; + + return $self; + } + + /** + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. * * @param Online|value-of|null $online */ @@ -101,7 +129,7 @@ public function withOnline(Online|int|null $online): self } /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is rejected with a 422, because PHP rewrites it to `filter_tips` and the filter could not be applied. Must be at least 0. */ public function withTips(int $tips): self { @@ -112,7 +140,7 @@ public function withTips(int $tips): self } /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to `filter_total_spent` and the filter could not be applied. Must be at least 0. */ public function withTotalSpent(int $totalSpent): self { diff --git a/src/Fans/FanListActiveParams/Filter/Online.php b/src/Fans/FanListActiveParams/Filter/Online.php index 8ce487d7..f9e6255b 100644 --- a/src/Fans/FanListActiveParams/Filter/Online.php +++ b/src/Fans/FanListActiveParams/Filter/Online.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveParams\Filter; +namespace OnlyFansAPI\Fans\FanListActiveParams\Filter; /** - * Filter by online status (`1` for online fans). + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. */ enum Online: int { diff --git a/src/Fans/FanListActiveParams/Type.php b/src/Fans/FanListActiveParams/Type.php index b984af29..1f739f6c 100644 --- a/src/Fans/FanListActiveParams/Type.php +++ b/src/Fans/FanListActiveParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveParams; +namespace OnlyFansAPI\Fans\FanListActiveParams; /** * Filter by fan type. diff --git a/src/Fans/FanListActiveResponse.php b/src/Fans/FanListActiveResponse.php index d01b9a24..c9893f75 100644 --- a/src/Fans/FanListActiveResponse.php +++ b/src/Fans/FanListActiveResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListActiveResponse\_Meta; -use Onlyfansapi\Fans\FanListActiveResponse\_Pagination; -use Onlyfansapi\Fans\FanListActiveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListActiveResponse\_Meta; +use OnlyFansAPI\Fans\FanListActiveResponse\_Pagination; +use OnlyFansAPI\Fans\FanListActiveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\FanListActiveResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Fans\FanListActiveResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\FanListActiveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\FanListActiveResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Fans\FanListActiveResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\FanListActiveResponse\Data * * @phpstan-type FanListActiveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Fans/FanListActiveResponse/Data.php b/src/Fans/FanListActiveResponse/Data.php index 5566eb03..2cd916d2 100644 --- a/src/Fans/FanListActiveResponse/Data.php +++ b/src/Fans/FanListActiveResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse; +namespace OnlyFansAPI\Fans\FanListActiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListActiveResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListActiveResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Fans\FanListActiveResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Fans\FanListActiveResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Fans/FanListActiveResponse/Data/List_.php b/src/Fans/FanListActiveResponse/Data/List_.php index b42caa41..72508e76 100644 --- a/src/Fans/FanListActiveResponse/Data/List_.php +++ b/src/Fans/FanListActiveResponse/Data/List_.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\Data; +namespace OnlyFansAPI\Fans\FanListActiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListActiveResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\Fans\FanListActiveResponse\Data\List_\ListsState; -use Onlyfansapi\Fans\FanListActiveResponse\Data\List_\PromoOffer; -use Onlyfansapi\Fans\FanListActiveResponse\Data\List_\SubscribedOnData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\ListsState; +use OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\PromoOffer; +use OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\FanListActiveResponse\Data\List_\AvatarThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\FanListActiveResponse\Data\List_\ListsState - * @phpstan-import-type PromoOfferShape from \Onlyfansapi\Fans\FanListActiveResponse\Data\List_\PromoOffer - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\FanListActiveResponse\Data\List_\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\AvatarThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\ListsState + * @phpstan-import-type PromoOfferShape from \OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\PromoOffer + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\SubscribedOnData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Fans/FanListActiveResponse/Data/List_/AvatarThumbs.php b/src/Fans/FanListActiveResponse/Data/List_/AvatarThumbs.php index 0ca4d5c4..116cf558 100644 --- a/src/Fans/FanListActiveResponse/Data/List_/AvatarThumbs.php +++ b/src/Fans/FanListActiveResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/FanListActiveResponse/Data/List_/ListsState.php b/src/Fans/FanListActiveResponse/Data/List_/ListsState.php index a6787e72..6f663025 100644 --- a/src/Fans/FanListActiveResponse/Data/List_/ListsState.php +++ b/src/Fans/FanListActiveResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/FanListActiveResponse/Data/List_/PromoOffer.php b/src/Fans/FanListActiveResponse/Data/List_/PromoOffer.php index dcd8eb8a..605bdbd2 100644 --- a/src/Fans/FanListActiveResponse/Data/List_/PromoOffer.php +++ b/src/Fans/FanListActiveResponse/Data/List_/PromoOffer.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PromoOfferShape = array{ diff --git a/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData.php b/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData.php index 6d135b2f..10d87926 100644 --- a/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData.php +++ b/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListActiveResponse\Data\List_\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\SubscribedOnData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Fans\FanListActiveResponse\Data\List_\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData/Subscribe.php b/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData/Subscribe.php index a0481f2c..3d6d74b1 100644 --- a/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData/Subscribe.php +++ b/src/Fans/FanListActiveResponse/Data/List_/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\Fans\FanListActiveResponse\Data\List_\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Fans/FanListActiveResponse/_Meta.php b/src/Fans/FanListActiveResponse/_Meta.php index 35047dbd..f5d69c49 100644 --- a/src/Fans/FanListActiveResponse/_Meta.php +++ b/src/Fans/FanListActiveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse; +namespace OnlyFansAPI\Fans\FanListActiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListActiveResponse\_Meta\_Cache; -use Onlyfansapi\Fans\FanListActiveResponse\_Meta\_Credits; -use Onlyfansapi\Fans\FanListActiveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListActiveResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\FanListActiveResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\FanListActiveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\FanListActiveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\FanListActiveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\FanListActiveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\FanListActiveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\FanListActiveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\FanListActiveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/FanListActiveResponse/_Meta/_Cache.php b/src/Fans/FanListActiveResponse/_Meta/_Cache.php index 169a5139..0afe10fd 100644 --- a/src/Fans/FanListActiveResponse/_Meta/_Cache.php +++ b/src/Fans/FanListActiveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/FanListActiveResponse/_Meta/_Credits.php b/src/Fans/FanListActiveResponse/_Meta/_Credits.php index 7d6cac0a..17f330ab 100644 --- a/src/Fans/FanListActiveResponse/_Meta/_Credits.php +++ b/src/Fans/FanListActiveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/FanListActiveResponse/_Meta/_RateLimits.php b/src/Fans/FanListActiveResponse/_Meta/_RateLimits.php index 85a7de8d..9b9d3dbb 100644 --- a/src/Fans/FanListActiveResponse/_Meta/_RateLimits.php +++ b/src/Fans/FanListActiveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/FanListActiveResponse/_Pagination.php b/src/Fans/FanListActiveResponse/_Pagination.php index 4fdbcfe7..77e1d838 100644 --- a/src/Fans/FanListActiveResponse/_Pagination.php +++ b/src/Fans/FanListActiveResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListActiveResponse; +namespace OnlyFansAPI\Fans\FanListActiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Fans/FanListAllParams.php b/src/Fans/FanListAllParams.php index 0ecf6a0b..01e8829b 100644 --- a/src/Fans/FanListAllParams.php +++ b/src/Fans/FanListAllParams.php @@ -2,21 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListAllParams\Filter; -use Onlyfansapi\Fans\FanListAllParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListAllParams\Filter; +use OnlyFansAPI\Fans\FanListAllParams\Type; /** - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. * - * @see Onlyfansapi\Services\FansService::listAll() + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListAllParams\Filter + * @see OnlyFansAPI\Services\FansService::listAll() + * + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListAllParams\Filter * * @phpstan-type FanListAllParamsShape = array{ * filter?: null|Filter|FilterShape, @@ -36,7 +38,7 @@ final class FanListAllParams implements BaseModel public ?Filter $filter; /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. */ #[Optional] public ?int $limit; @@ -104,7 +106,7 @@ public function withFilter(Filter|array $filter): self } /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. */ public function withLimit(int $limit): self { diff --git a/src/Fans/FanListAllParams/Filter.php b/src/Fans/FanListAllParams/Filter.php index 82fa05b4..04163ace 100644 --- a/src/Fans/FanListAllParams/Filter.php +++ b/src/Fans/FanListAllParams/Filter.php @@ -2,16 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllParams; +namespace OnlyFansAPI\Fans\FanListAllParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListAllParams\Filter\Online; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListAllParams\Filter\Online; /** * @phpstan-type FilterShape = array{ * duration?: int|null, + * maxTotalSpent?: float|null, * online?: null|Online|value-of, * tips?: int|null, * totalSpent?: int|null, @@ -23,13 +24,23 @@ final class Filter implements BaseModel use SdkModel; /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, because PHP rewrites it to `filter_duration` and the filter could not be applied. Must be at least 0. */ #[Optional] public ?int $duration; /** - * Filter by online status (`1` for online fans). + * Filter by **maximum** amount total spent by a fan — use `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with `filter[total_spent]` for a range. Must use bracket syntax: filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against OnlyFansAPI's own fan index instead of being proxied. The fan objects in `data.list` are still fetched live from OnlyFans and are re-checked against your filters before being returned, but only fans we have already indexed for this account can appear. Each response reports its own coverage under `data._source`; when `data._source.is_complete` is `false` a full-base backfill is queued automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which OnlyFans returned no usable data for on that page (a deleted account, or a partial response). They are left out of `data.list` and not revisited later in the same walk, so a non-zero value means that page was short — start a fresh walk to retry them. Cannot be combined with `filter[online]`. Must be at least 0. + */ + #[Optional('max_total_spent')] + public ?float $maxTotalSpent; + + /** + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. * * @var value-of|null $online */ @@ -37,13 +48,13 @@ final class Filter implements BaseModel public ?int $online; /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is rejected with a 422, because PHP rewrites it to `filter_tips` and the filter could not be applied. Must be at least 0. */ #[Optional] public ?int $tips; /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to `filter_total_spent` and the filter could not be applied. Must be at least 0. */ #[Optional('total_spent')] public ?int $totalSpent; @@ -62,6 +73,7 @@ public function __construct() */ public static function with( ?int $duration = null, + ?float $maxTotalSpent = null, Online|int|null $online = null, ?int $tips = null, ?int $totalSpent = null, @@ -69,6 +81,7 @@ public static function with( $self = new self; null !== $duration && $self['duration'] = $duration; + null !== $maxTotalSpent && $self['maxTotalSpent'] = $maxTotalSpent; null !== $online && $self['online'] = $online; null !== $tips && $self['tips'] = $tips; null !== $totalSpent && $self['totalSpent'] = $totalSpent; @@ -77,7 +90,7 @@ public static function with( } /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, because PHP rewrites it to `filter_duration` and the filter could not be applied. Must be at least 0. */ public function withDuration(int $duration): self { @@ -88,7 +101,22 @@ public function withDuration(int $duration): self } /** - * Filter by online status (`1` for online fans). + * Filter by **maximum** amount total spent by a fan — use `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with `filter[total_spent]` for a range. Must use bracket syntax: filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against OnlyFansAPI's own fan index instead of being proxied. The fan objects in `data.list` are still fetched live from OnlyFans and are re-checked against your filters before being returned, but only fans we have already indexed for this account can appear. Each response reports its own coverage under `data._source`; when `data._source.is_complete` is `false` a full-base backfill is queued automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which OnlyFans returned no usable data for on that page (a deleted account, or a partial response). They are left out of `data.list` and not revisited later in the same walk, so a non-zero value means that page was short — start a fresh walk to retry them. Cannot be combined with `filter[online]`. Must be at least 0. + */ + public function withMaxTotalSpent(float $maxTotalSpent): self + { + $self = clone $this; + $self['maxTotalSpent'] = $maxTotalSpent; + + return $self; + } + + /** + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. * * @param Online|value-of|null $online */ @@ -101,7 +129,7 @@ public function withOnline(Online|int|null $online): self } /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is rejected with a 422, because PHP rewrites it to `filter_tips` and the filter could not be applied. Must be at least 0. */ public function withTips(int $tips): self { @@ -112,7 +140,7 @@ public function withTips(int $tips): self } /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to `filter_total_spent` and the filter could not be applied. Must be at least 0. */ public function withTotalSpent(int $totalSpent): self { diff --git a/src/Fans/FanListAllParams/Filter/Online.php b/src/Fans/FanListAllParams/Filter/Online.php index 459d1833..93b5f97c 100644 --- a/src/Fans/FanListAllParams/Filter/Online.php +++ b/src/Fans/FanListAllParams/Filter/Online.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllParams\Filter; +namespace OnlyFansAPI\Fans\FanListAllParams\Filter; /** - * Filter by online status (`1` for online fans). + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. */ enum Online: int { diff --git a/src/Fans/FanListAllParams/Type.php b/src/Fans/FanListAllParams/Type.php index 6c6f2524..567e2d5b 100644 --- a/src/Fans/FanListAllParams/Type.php +++ b/src/Fans/FanListAllParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllParams; +namespace OnlyFansAPI\Fans\FanListAllParams; /** * Filter by fan type. diff --git a/src/Fans/FanListAllResponse.php b/src/Fans/FanListAllResponse.php index fd9de1f9..460172be 100644 --- a/src/Fans/FanListAllResponse.php +++ b/src/Fans/FanListAllResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListAllResponse\_Meta; -use Onlyfansapi\Fans\FanListAllResponse\_Pagination; -use Onlyfansapi\Fans\FanListAllResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListAllResponse\_Meta; +use OnlyFansAPI\Fans\FanListAllResponse\_Pagination; +use OnlyFansAPI\Fans\FanListAllResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\FanListAllResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Fans\FanListAllResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\FanListAllResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\FanListAllResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Fans\FanListAllResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\FanListAllResponse\Data * * @phpstan-type FanListAllResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Fans/FanListAllResponse/Data.php b/src/Fans/FanListAllResponse/Data.php index 996309b0..ee7a8435 100644 --- a/src/Fans/FanListAllResponse/Data.php +++ b/src/Fans/FanListAllResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse; +namespace OnlyFansAPI\Fans\FanListAllResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListAllResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListAllResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Fans\FanListAllResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Fans\FanListAllResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Fans/FanListAllResponse/Data/List_.php b/src/Fans/FanListAllResponse/Data/List_.php index ec078b67..9ba4dc7e 100644 --- a/src/Fans/FanListAllResponse/Data/List_.php +++ b/src/Fans/FanListAllResponse/Data/List_.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\Data; +namespace OnlyFansAPI\Fans\FanListAllResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListAllResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\Fans\FanListAllResponse\Data\List_\ListsState; -use Onlyfansapi\Fans\FanListAllResponse\Data\List_\PromoOffer; -use Onlyfansapi\Fans\FanListAllResponse\Data\List_\SubscribedOnData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListAllResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\Fans\FanListAllResponse\Data\List_\ListsState; +use OnlyFansAPI\Fans\FanListAllResponse\Data\List_\PromoOffer; +use OnlyFansAPI\Fans\FanListAllResponse\Data\List_\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\FanListAllResponse\Data\List_\AvatarThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\FanListAllResponse\Data\List_\ListsState - * @phpstan-import-type PromoOfferShape from \Onlyfansapi\Fans\FanListAllResponse\Data\List_\PromoOffer - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\FanListAllResponse\Data\List_\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\FanListAllResponse\Data\List_\AvatarThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\FanListAllResponse\Data\List_\ListsState + * @phpstan-import-type PromoOfferShape from \OnlyFansAPI\Fans\FanListAllResponse\Data\List_\PromoOffer + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\FanListAllResponse\Data\List_\SubscribedOnData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Fans/FanListAllResponse/Data/List_/AvatarThumbs.php b/src/Fans/FanListAllResponse/Data/List_/AvatarThumbs.php index cc91af7c..8944ec13 100644 --- a/src/Fans/FanListAllResponse/Data/List_/AvatarThumbs.php +++ b/src/Fans/FanListAllResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/FanListAllResponse/Data/List_/ListsState.php b/src/Fans/FanListAllResponse/Data/List_/ListsState.php index 3be057bb..0be1c83e 100644 --- a/src/Fans/FanListAllResponse/Data/List_/ListsState.php +++ b/src/Fans/FanListAllResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/FanListAllResponse/Data/List_/PromoOffer.php b/src/Fans/FanListAllResponse/Data/List_/PromoOffer.php index 5d3e50b8..b1900e93 100644 --- a/src/Fans/FanListAllResponse/Data/List_/PromoOffer.php +++ b/src/Fans/FanListAllResponse/Data/List_/PromoOffer.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PromoOfferShape = array{ diff --git a/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData.php b/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData.php index 968bc481..a7136ece 100644 --- a/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData.php +++ b/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListAllResponse\Data\List_\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListAllResponse\Data\List_\SubscribedOnData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Fans\FanListAllResponse\Data\List_\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Fans\FanListAllResponse\Data\List_\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData/Subscribe.php b/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData/Subscribe.php index f3c883b0..af335a41 100644 --- a/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData/Subscribe.php +++ b/src/Fans/FanListAllResponse/Data/List_/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\Fans\FanListAllResponse\Data\List_\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Fans/FanListAllResponse/_Meta.php b/src/Fans/FanListAllResponse/_Meta.php index 052732b8..7d499d22 100644 --- a/src/Fans/FanListAllResponse/_Meta.php +++ b/src/Fans/FanListAllResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse; +namespace OnlyFansAPI\Fans\FanListAllResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListAllResponse\_Meta\_Cache; -use Onlyfansapi\Fans\FanListAllResponse\_Meta\_Credits; -use Onlyfansapi\Fans\FanListAllResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListAllResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\FanListAllResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\FanListAllResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\FanListAllResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\FanListAllResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\FanListAllResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\FanListAllResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\FanListAllResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\FanListAllResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/FanListAllResponse/_Meta/_Cache.php b/src/Fans/FanListAllResponse/_Meta/_Cache.php index 7b413453..8ed167eb 100644 --- a/src/Fans/FanListAllResponse/_Meta/_Cache.php +++ b/src/Fans/FanListAllResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/FanListAllResponse/_Meta/_Credits.php b/src/Fans/FanListAllResponse/_Meta/_Credits.php index a51cb450..a86637e6 100644 --- a/src/Fans/FanListAllResponse/_Meta/_Credits.php +++ b/src/Fans/FanListAllResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/FanListAllResponse/_Meta/_RateLimits.php b/src/Fans/FanListAllResponse/_Meta/_RateLimits.php index d7ead3a7..b990523d 100644 --- a/src/Fans/FanListAllResponse/_Meta/_RateLimits.php +++ b/src/Fans/FanListAllResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/FanListAllResponse/_Pagination.php b/src/Fans/FanListAllResponse/_Pagination.php index 7d944836..3baeacba 100644 --- a/src/Fans/FanListAllResponse/_Pagination.php +++ b/src/Fans/FanListAllResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListAllResponse; +namespace OnlyFansAPI\Fans\FanListAllResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Fans/FanListExpiredParams.php b/src/Fans/FanListExpiredParams.php index 4030b966..501e4753 100644 --- a/src/Fans/FanListExpiredParams.php +++ b/src/Fans/FanListExpiredParams.php @@ -2,21 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListExpiredParams\Filter; -use Onlyfansapi\Fans\FanListExpiredParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListExpiredParams\Filter; +use OnlyFansAPI\Fans\FanListExpiredParams\Type; /** - * Get a paginated list of expired fans for an Account. Newest fans are first. + * Get a paginated list of expired fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. * - * @see Onlyfansapi\Services\FansService::listExpired() + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListExpiredParams\Filter + * @see OnlyFansAPI\Services\FansService::listExpired() + * + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListExpiredParams\Filter * * @phpstan-type FanListExpiredParamsShape = array{ * filter?: null|Filter|FilterShape, @@ -36,7 +38,7 @@ final class FanListExpiredParams implements BaseModel public ?Filter $filter; /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. */ #[Optional] public ?int $limit; @@ -104,7 +106,7 @@ public function withFilter(Filter|array $filter): self } /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. */ public function withLimit(int $limit): self { diff --git a/src/Fans/FanListExpiredParams/Filter.php b/src/Fans/FanListExpiredParams/Filter.php index a30d9978..1470a89a 100644 --- a/src/Fans/FanListExpiredParams/Filter.php +++ b/src/Fans/FanListExpiredParams/Filter.php @@ -2,16 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredParams; +namespace OnlyFansAPI\Fans\FanListExpiredParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListExpiredParams\Filter\Online; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListExpiredParams\Filter\Online; /** * @phpstan-type FilterShape = array{ * duration?: int|null, + * maxTotalSpent?: float|null, * online?: null|Online|value-of, * tips?: int|null, * totalSpent?: int|null, @@ -23,13 +24,23 @@ final class Filter implements BaseModel use SdkModel; /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, because PHP rewrites it to `filter_duration` and the filter could not be applied. Must be at least 0. */ #[Optional] public ?int $duration; /** - * Filter by online status (`1` for online fans). + * Filter by **maximum** amount total spent by a fan — use `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with `filter[total_spent]` for a range. Must use bracket syntax: filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against OnlyFansAPI's own fan index instead of being proxied. The fan objects in `data.list` are still fetched live from OnlyFans and are re-checked against your filters before being returned, but only fans we have already indexed for this account can appear. Each response reports its own coverage under `data._source`; when `data._source.is_complete` is `false` a full-base backfill is queued automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which OnlyFans returned no usable data for on that page (a deleted account, or a partial response). They are left out of `data.list` and not revisited later in the same walk, so a non-zero value means that page was short — start a fresh walk to retry them. Cannot be combined with `filter[online]`. Must be at least 0. + */ + #[Optional('max_total_spent')] + public ?float $maxTotalSpent; + + /** + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. * * @var value-of|null $online */ @@ -37,13 +48,13 @@ final class Filter implements BaseModel public ?int $online; /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is rejected with a 422, because PHP rewrites it to `filter_tips` and the filter could not be applied. Must be at least 0. */ #[Optional] public ?int $tips; /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to `filter_total_spent` and the filter could not be applied. Must be at least 0. */ #[Optional('total_spent')] public ?int $totalSpent; @@ -62,6 +73,7 @@ public function __construct() */ public static function with( ?int $duration = null, + ?float $maxTotalSpent = null, Online|int|null $online = null, ?int $tips = null, ?int $totalSpent = null, @@ -69,6 +81,7 @@ public static function with( $self = new self; null !== $duration && $self['duration'] = $duration; + null !== $maxTotalSpent && $self['maxTotalSpent'] = $maxTotalSpent; null !== $online && $self['online'] = $online; null !== $tips && $self['tips'] = $tips; null !== $totalSpent && $self['totalSpent'] = $totalSpent; @@ -77,7 +90,7 @@ public static function with( } /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, because PHP rewrites it to `filter_duration` and the filter could not be applied. Must be at least 0. */ public function withDuration(int $duration): self { @@ -88,7 +101,22 @@ public function withDuration(int $duration): self } /** - * Filter by online status (`1` for online fans). + * Filter by **maximum** amount total spent by a fan — use `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with `filter[total_spent]` for a range. Must use bracket syntax: filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against OnlyFansAPI's own fan index instead of being proxied. The fan objects in `data.list` are still fetched live from OnlyFans and are re-checked against your filters before being returned, but only fans we have already indexed for this account can appear. Each response reports its own coverage under `data._source`; when `data._source.is_complete` is `false` a full-base backfill is queued automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which OnlyFans returned no usable data for on that page (a deleted account, or a partial response). They are left out of `data.list` and not revisited later in the same walk, so a non-zero value means that page was short — start a fresh walk to retry them. Cannot be combined with `filter[online]`. Must be at least 0. + */ + public function withMaxTotalSpent(float $maxTotalSpent): self + { + $self = clone $this; + $self['maxTotalSpent'] = $maxTotalSpent; + + return $self; + } + + /** + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. * * @param Online|value-of|null $online */ @@ -101,7 +129,7 @@ public function withOnline(Online|int|null $online): self } /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form (filter.tips=100) is rejected with a 422, because PHP rewrites it to `filter_tips` and the filter could not be applied. Must be at least 0. */ public function withTips(int $tips): self { @@ -112,7 +140,7 @@ public function withTips(int $tips): self } /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with a 422, because PHP rewrites it to `filter_total_spent` and the filter could not be applied. Must be at least 0. */ public function withTotalSpent(int $totalSpent): self { diff --git a/src/Fans/FanListExpiredParams/Filter/Online.php b/src/Fans/FanListExpiredParams/Filter/Online.php index 032f6a01..f5b7d4b1 100644 --- a/src/Fans/FanListExpiredParams/Filter/Online.php +++ b/src/Fans/FanListExpiredParams/Filter/Online.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredParams\Filter; +namespace OnlyFansAPI\Fans\FanListExpiredParams\Filter; /** - * Filter by online status (`1` for online fans). + * Filter by online status (`1` for online fans). Must use bracket syntax: filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, because PHP rewrites it to `filter_online` and the filter could not be applied. */ enum Online: int { diff --git a/src/Fans/FanListExpiredParams/Type.php b/src/Fans/FanListExpiredParams/Type.php index 842959f7..8e55efc5 100644 --- a/src/Fans/FanListExpiredParams/Type.php +++ b/src/Fans/FanListExpiredParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredParams; +namespace OnlyFansAPI\Fans\FanListExpiredParams; /** * Filter by fan type. diff --git a/src/Fans/FanListExpiredResponse.php b/src/Fans/FanListExpiredResponse.php index 1de6f9a3..426c27a2 100644 --- a/src/Fans/FanListExpiredResponse.php +++ b/src/Fans/FanListExpiredResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListExpiredResponse\_Meta; -use Onlyfansapi\Fans\FanListExpiredResponse\_Pagination; -use Onlyfansapi\Fans\FanListExpiredResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListExpiredResponse\_Meta; +use OnlyFansAPI\Fans\FanListExpiredResponse\_Pagination; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\FanListExpiredResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Fans\FanListExpiredResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\FanListExpiredResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Fans\FanListExpiredResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data * * @phpstan-type FanListExpiredResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Fans/FanListExpiredResponse/Data.php b/src/Fans/FanListExpiredResponse/Data.php index 93bbbe8d..e858bd09 100644 --- a/src/Fans/FanListExpiredResponse/Data.php +++ b/src/Fans/FanListExpiredResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse; +namespace OnlyFansAPI\Fans\FanListExpiredResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Fans/FanListExpiredResponse/Data/List_.php b/src/Fans/FanListExpiredResponse/Data/List_.php index 4a93c2f9..8d272de8 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_.php +++ b/src/Fans/FanListExpiredResponse/Data/List_.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\HeaderSize; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\HeaderThumbs; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\ListsState; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscribedOnData; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscriptionBundle; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\HeaderSize; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\HeaderThumbs; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\ListsState; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscribedByData; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscribedOnData; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscriptionBundle * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Fans/FanListExpiredResponse/Data/List_/AvatarThumbs.php b/src/Fans/FanListExpiredResponse/Data/List_/AvatarThumbs.php index 6b285317..bbd40036 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/AvatarThumbs.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/FanListExpiredResponse/Data/List_/HeaderSize.php b/src/Fans/FanListExpiredResponse/Data/List_/HeaderSize.php index 7cc4f91a..5a12284a 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/HeaderSize.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Fans/FanListExpiredResponse/Data/List_/HeaderThumbs.php b/src/Fans/FanListExpiredResponse/Data/List_/HeaderThumbs.php index 6d9835f1..f5f997c6 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/HeaderThumbs.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Fans/FanListExpiredResponse/Data/List_/ListsState.php b/src/Fans/FanListExpiredResponse/Data/List_/ListsState.php index 5c8e1bd4..da978b45 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/ListsState.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData.php b/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData.php index 324b53e5..170a4232 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php b/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php index 18e7a672..0268359e 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_\SubscribedByData; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Fans/FanListExpiredResponse/Data/List_/SubscribedOnData.php b/src/Fans/FanListExpiredResponse/Data/List_/SubscribedOnData.php index 23940e57..7c458466 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/SubscribedOnData.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Fans/FanListExpiredResponse/Data/List_/SubscriptionBundle.php b/src/Fans/FanListExpiredResponse/Data/List_/SubscriptionBundle.php index 018a5c8b..96e3bfc1 100644 --- a/src/Fans/FanListExpiredResponse/Data/List_/SubscriptionBundle.php +++ b/src/Fans/FanListExpiredResponse/Data/List_/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Fans/FanListExpiredResponse/_Meta.php b/src/Fans/FanListExpiredResponse/_Meta.php index 363077d2..1ef048f9 100644 --- a/src/Fans/FanListExpiredResponse/_Meta.php +++ b/src/Fans/FanListExpiredResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse; +namespace OnlyFansAPI\Fans\FanListExpiredResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListExpiredResponse\_Meta\_Cache; -use Onlyfansapi\Fans\FanListExpiredResponse\_Meta\_Credits; -use Onlyfansapi\Fans\FanListExpiredResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListExpiredResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\FanListExpiredResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\FanListExpiredResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\FanListExpiredResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\FanListExpiredResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\FanListExpiredResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\FanListExpiredResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\FanListExpiredResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\FanListExpiredResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/FanListExpiredResponse/_Meta/_Cache.php b/src/Fans/FanListExpiredResponse/_Meta/_Cache.php index 9e9e88dd..9926fb75 100644 --- a/src/Fans/FanListExpiredResponse/_Meta/_Cache.php +++ b/src/Fans/FanListExpiredResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/FanListExpiredResponse/_Meta/_Credits.php b/src/Fans/FanListExpiredResponse/_Meta/_Credits.php index b4cb45ce..318fef3c 100644 --- a/src/Fans/FanListExpiredResponse/_Meta/_Credits.php +++ b/src/Fans/FanListExpiredResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/FanListExpiredResponse/_Meta/_RateLimits.php b/src/Fans/FanListExpiredResponse/_Meta/_RateLimits.php index 4a4d26d8..ace6053d 100644 --- a/src/Fans/FanListExpiredResponse/_Meta/_RateLimits.php +++ b/src/Fans/FanListExpiredResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListExpiredResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/FanListExpiredResponse/_Pagination.php b/src/Fans/FanListExpiredResponse/_Pagination.php index 36e1ac40..5901adec 100644 --- a/src/Fans/FanListExpiredResponse/_Pagination.php +++ b/src/Fans/FanListExpiredResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListExpiredResponse; +namespace OnlyFansAPI\Fans\FanListExpiredResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Fans/FanListLatestParams.php b/src/Fans/FanListLatestParams.php index 42c566c8..0ab4d18b 100644 --- a/src/Fans/FanListLatestParams.php +++ b/src/Fans/FanListLatestParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListLatestParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListLatestParams\Type; /** * Get a paginated list fans, filterable by total, only new subscribers, or only renewals. Newest fans are first. * - * @see Onlyfansapi\Services\FansService::listLatest() + * @see OnlyFansAPI\Services\FansService::listLatest() * * @phpstan-type FanListLatestParamsShape = array{ * endDate?: string|null, @@ -30,13 +30,13 @@ final class FanListLatestParams implements BaseModel use SdkParams; /** - * End date for filtering (required with start_date). This field is required when start_date is present. + * End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. */ #[Optional(nullable: true)] public ?string $endDate; /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 100. + * Number of fans to return (1-50). Must be at least 1. Must not be greater than 50. */ #[Optional] public ?int $limit; @@ -48,7 +48,7 @@ final class FanListLatestParams implements BaseModel public ?int $offset; /** - * Start date for filtering (required with end_date). This field is required when end_date is present. + * Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. */ #[Optional(nullable: true)] public ?string $startDate; @@ -92,7 +92,7 @@ public static function with( } /** - * End date for filtering (required with start_date). This field is required when start_date is present. + * End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. */ public function withEndDate(?string $endDate): self { @@ -103,7 +103,7 @@ public function withEndDate(?string $endDate): self } /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater than 100. + * Number of fans to return (1-50). Must be at least 1. Must not be greater than 50. */ public function withLimit(int $limit): self { @@ -125,7 +125,7 @@ public function withOffset(int $offset): self } /** - * Start date for filtering (required with end_date). This field is required when end_date is present. + * Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. */ public function withStartDate(?string $startDate): self { diff --git a/src/Fans/FanListLatestParams/Type.php b/src/Fans/FanListLatestParams/Type.php index 067b8898..f52af484 100644 --- a/src/Fans/FanListLatestParams/Type.php +++ b/src/Fans/FanListLatestParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestParams; +namespace OnlyFansAPI\Fans\FanListLatestParams; /** * Filter by type: total, renew, or new. diff --git a/src/Fans/FanListLatestResponse.php b/src/Fans/FanListLatestResponse.php index b674d959..78d88250 100644 --- a/src/Fans/FanListLatestResponse.php +++ b/src/Fans/FanListLatestResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListLatestResponse\_Meta; -use Onlyfansapi\Fans\FanListLatestResponse\_Pagination; -use Onlyfansapi\Fans\FanListLatestResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListLatestResponse\_Meta; +use OnlyFansAPI\Fans\FanListLatestResponse\_Pagination; +use OnlyFansAPI\Fans\FanListLatestResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\FanListLatestResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Fans\FanListLatestResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\FanListLatestResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\FanListLatestResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Fans\FanListLatestResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\FanListLatestResponse\Data * * @phpstan-type FanListLatestResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Fans/FanListLatestResponse/Data.php b/src/Fans/FanListLatestResponse/Data.php index bba2ad9b..6e4bb7b5 100644 --- a/src/Fans/FanListLatestResponse/Data.php +++ b/src/Fans/FanListLatestResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse; +namespace OnlyFansAPI\Fans\FanListLatestResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListLatestResponse\Data\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListLatestResponse\Data\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\Fans\FanListLatestResponse\Data\User + * @phpstan-import-type UserShape from \OnlyFansAPI\Fans\FanListLatestResponse\Data\User * * @phpstan-type DataShape = array{ * hasMore?: bool|null, offset?: int|null, users?: list|null diff --git a/src/Fans/FanListLatestResponse/Data/User.php b/src/Fans/FanListLatestResponse/Data/User.php index 14784dc9..8092923a 100644 --- a/src/Fans/FanListLatestResponse/Data/User.php +++ b/src/Fans/FanListLatestResponse/Data/User.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\Data; +namespace OnlyFansAPI\Fans\FanListLatestResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListLatestResponse\Data\User\AvatarThumbs; -use Onlyfansapi\Fans\FanListLatestResponse\Data\User\ListsState; -use Onlyfansapi\Fans\FanListLatestResponse\Data\User\PromoOffer; -use Onlyfansapi\Fans\FanListLatestResponse\Data\User\SubscribedOnData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListLatestResponse\Data\User\AvatarThumbs; +use OnlyFansAPI\Fans\FanListLatestResponse\Data\User\ListsState; +use OnlyFansAPI\Fans\FanListLatestResponse\Data\User\PromoOffer; +use OnlyFansAPI\Fans\FanListLatestResponse\Data\User\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\FanListLatestResponse\Data\User\AvatarThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\FanListLatestResponse\Data\User\ListsState - * @phpstan-import-type PromoOfferShape from \Onlyfansapi\Fans\FanListLatestResponse\Data\User\PromoOffer - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\FanListLatestResponse\Data\User\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\FanListLatestResponse\Data\User\AvatarThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\FanListLatestResponse\Data\User\ListsState + * @phpstan-import-type PromoOfferShape from \OnlyFansAPI\Fans\FanListLatestResponse\Data\User\PromoOffer + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\FanListLatestResponse\Data\User\SubscribedOnData * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/Fans/FanListLatestResponse/Data/User/AvatarThumbs.php b/src/Fans/FanListLatestResponse/Data/User/AvatarThumbs.php index c0d4829b..e08dddb7 100644 --- a/src/Fans/FanListLatestResponse/Data/User/AvatarThumbs.php +++ b/src/Fans/FanListLatestResponse/Data/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\Data\User; +namespace OnlyFansAPI\Fans\FanListLatestResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/FanListLatestResponse/Data/User/ListsState.php b/src/Fans/FanListLatestResponse/Data/User/ListsState.php index 674249b4..91d2d371 100644 --- a/src/Fans/FanListLatestResponse/Data/User/ListsState.php +++ b/src/Fans/FanListLatestResponse/Data/User/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\Data\User; +namespace OnlyFansAPI\Fans\FanListLatestResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/FanListLatestResponse/Data/User/PromoOffer.php b/src/Fans/FanListLatestResponse/Data/User/PromoOffer.php index d189fe20..6523592c 100644 --- a/src/Fans/FanListLatestResponse/Data/User/PromoOffer.php +++ b/src/Fans/FanListLatestResponse/Data/User/PromoOffer.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\Data\User; +namespace OnlyFansAPI\Fans\FanListLatestResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PromoOfferShape = array{ diff --git a/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData.php b/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData.php index e3bcf6ef..d02b3314 100644 --- a/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData.php +++ b/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\Data\User; +namespace OnlyFansAPI\Fans\FanListLatestResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListLatestResponse\Data\User\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListLatestResponse\Data\User\SubscribedOnData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Fans\FanListLatestResponse\Data\User\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Fans\FanListLatestResponse\Data\User\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData/Subscribe.php b/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData/Subscribe.php index 1dbef6c6..bfd7bb36 100644 --- a/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData/Subscribe.php +++ b/src/Fans/FanListLatestResponse/Data/User/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\Data\User\SubscribedOnData; +namespace OnlyFansAPI\Fans\FanListLatestResponse\Data\User\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Fans/FanListLatestResponse/_Meta.php b/src/Fans/FanListLatestResponse/_Meta.php index 52e34076..e0572380 100644 --- a/src/Fans/FanListLatestResponse/_Meta.php +++ b/src/Fans/FanListLatestResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse; +namespace OnlyFansAPI\Fans\FanListLatestResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListLatestResponse\_Meta\_Cache; -use Onlyfansapi\Fans\FanListLatestResponse\_Meta\_Credits; -use Onlyfansapi\Fans\FanListLatestResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListLatestResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\FanListLatestResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\FanListLatestResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\FanListLatestResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\FanListLatestResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\FanListLatestResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\FanListLatestResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\FanListLatestResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\FanListLatestResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/FanListLatestResponse/_Meta/_Cache.php b/src/Fans/FanListLatestResponse/_Meta/_Cache.php index ca79d104..2637a377 100644 --- a/src/Fans/FanListLatestResponse/_Meta/_Cache.php +++ b/src/Fans/FanListLatestResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListLatestResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/FanListLatestResponse/_Meta/_Credits.php b/src/Fans/FanListLatestResponse/_Meta/_Credits.php index 07dbdb68..e74bc582 100644 --- a/src/Fans/FanListLatestResponse/_Meta/_Credits.php +++ b/src/Fans/FanListLatestResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListLatestResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/FanListLatestResponse/_Meta/_RateLimits.php b/src/Fans/FanListLatestResponse/_Meta/_RateLimits.php index e05a5d58..1611ba47 100644 --- a/src/Fans/FanListLatestResponse/_Meta/_RateLimits.php +++ b/src/Fans/FanListLatestResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListLatestResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/FanListLatestResponse/_Pagination.php b/src/Fans/FanListLatestResponse/_Pagination.php index a9b8356d..1f41a384 100644 --- a/src/Fans/FanListLatestResponse/_Pagination.php +++ b/src/Fans/FanListLatestResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListLatestResponse; +namespace OnlyFansAPI\Fans\FanListLatestResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Fans/FanListTopParams.php b/src/Fans/FanListTopParams.php index 9fee7c6a..587991d1 100644 --- a/src/Fans/FanListTopParams.php +++ b/src/Fans/FanListTopParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListTopParams\By; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListTopParams\By; /** * Get a list of top fans sorted by spending. Filterable by total, subscriptions, tips, messages, posts, or streams. * - * @see Onlyfansapi\Services\FansService::listTop() + * @see OnlyFansAPI\Services\FansService::listTop() * * @phpstan-type FanListTopParamsShape = array{ * by?: null|By|value-of, endDate?: string|null, startDate?: string|null @@ -34,13 +34,13 @@ final class FanListTopParams implements BaseModel public ?string $by; /** - * End date for filtering (required with start_date). This field is required when start_date is present. + * End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. */ #[Optional(nullable: true)] public ?string $endDate; /** - * Start date for filtering (required with end_date). This field is required when end_date is present. + * Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. */ #[Optional(nullable: true)] public ?string $startDate; @@ -85,7 +85,7 @@ public function withBy(By|string|null $by): self } /** - * End date for filtering (required with start_date). This field is required when start_date is present. + * End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. */ public function withEndDate(?string $endDate): self { @@ -96,7 +96,7 @@ public function withEndDate(?string $endDate): self } /** - * Start date for filtering (required with end_date). This field is required when end_date is present. + * Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. */ public function withStartDate(?string $startDate): self { diff --git a/src/Fans/FanListTopParams/By.php b/src/Fans/FanListTopParams/By.php index 7c12f0fb..91b98af9 100644 --- a/src/Fans/FanListTopParams/By.php +++ b/src/Fans/FanListTopParams/By.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopParams; +namespace OnlyFansAPI\Fans\FanListTopParams; /** * Sort by: total (default), subscribes, tips, messages, post, streams. diff --git a/src/Fans/FanListTopResponse.php b/src/Fans/FanListTopResponse.php index 8de233b6..d7bb0316 100644 --- a/src/Fans/FanListTopResponse.php +++ b/src/Fans/FanListTopResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListTopResponse\_Meta; -use Onlyfansapi\Fans\FanListTopResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListTopResponse\_Meta; +use OnlyFansAPI\Fans\FanListTopResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\FanListTopResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\FanListTopResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\FanListTopResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\FanListTopResponse\Data * * @phpstan-type FanListTopResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Fans/FanListTopResponse/Data.php b/src/Fans/FanListTopResponse/Data.php index 0e354a68..be53e682 100644 --- a/src/Fans/FanListTopResponse/Data.php +++ b/src/Fans/FanListTopResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse; +namespace OnlyFansAPI\Fans\FanListTopResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListTopResponse\Data\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListTopResponse\Data\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\Fans\FanListTopResponse\Data\User + * @phpstan-import-type UserShape from \OnlyFansAPI\Fans\FanListTopResponse\Data\User * * @phpstan-type DataShape = array{users?: list|null} */ diff --git a/src/Fans/FanListTopResponse/Data/User.php b/src/Fans/FanListTopResponse/Data/User.php index 081e37d2..e80e603d 100644 --- a/src/Fans/FanListTopResponse/Data/User.php +++ b/src/Fans/FanListTopResponse/Data/User.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse\Data; +namespace OnlyFansAPI\Fans\FanListTopResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListTopResponse\Data\User\AvatarThumbs; -use Onlyfansapi\Fans\FanListTopResponse\Data\User\ListsState; -use Onlyfansapi\Fans\FanListTopResponse\Data\User\SubscribedOnData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListTopResponse\Data\User\AvatarThumbs; +use OnlyFansAPI\Fans\FanListTopResponse\Data\User\ListsState; +use OnlyFansAPI\Fans\FanListTopResponse\Data\User\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\FanListTopResponse\Data\User\AvatarThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\FanListTopResponse\Data\User\ListsState - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\FanListTopResponse\Data\User\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\FanListTopResponse\Data\User\AvatarThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\FanListTopResponse\Data\User\ListsState + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\FanListTopResponse\Data\User\SubscribedOnData * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/Fans/FanListTopResponse/Data/User/AvatarThumbs.php b/src/Fans/FanListTopResponse/Data/User/AvatarThumbs.php index 108953d7..4569501a 100644 --- a/src/Fans/FanListTopResponse/Data/User/AvatarThumbs.php +++ b/src/Fans/FanListTopResponse/Data/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse\Data\User; +namespace OnlyFansAPI\Fans\FanListTopResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/FanListTopResponse/Data/User/ListsState.php b/src/Fans/FanListTopResponse/Data/User/ListsState.php index 8400b7fb..6bbbb049 100644 --- a/src/Fans/FanListTopResponse/Data/User/ListsState.php +++ b/src/Fans/FanListTopResponse/Data/User/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse\Data\User; +namespace OnlyFansAPI\Fans\FanListTopResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/FanListTopResponse/Data/User/SubscribedOnData.php b/src/Fans/FanListTopResponse/Data/User/SubscribedOnData.php index 884d9949..b302cee9 100644 --- a/src/Fans/FanListTopResponse/Data/User/SubscribedOnData.php +++ b/src/Fans/FanListTopResponse/Data/User/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse\Data\User; +namespace OnlyFansAPI\Fans\FanListTopResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Fans/FanListTopResponse/_Meta.php b/src/Fans/FanListTopResponse/_Meta.php index c07f78d9..5efac547 100644 --- a/src/Fans/FanListTopResponse/_Meta.php +++ b/src/Fans/FanListTopResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse; +namespace OnlyFansAPI\Fans\FanListTopResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanListTopResponse\_Meta\_Cache; -use Onlyfansapi\Fans\FanListTopResponse\_Meta\_Credits; -use Onlyfansapi\Fans\FanListTopResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanListTopResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\FanListTopResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\FanListTopResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\FanListTopResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\FanListTopResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\FanListTopResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\FanListTopResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\FanListTopResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\FanListTopResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/FanListTopResponse/_Meta/_Cache.php b/src/Fans/FanListTopResponse/_Meta/_Cache.php index c358217e..2763ce3c 100644 --- a/src/Fans/FanListTopResponse/_Meta/_Cache.php +++ b/src/Fans/FanListTopResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListTopResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/FanListTopResponse/_Meta/_Credits.php b/src/Fans/FanListTopResponse/_Meta/_Credits.php index 88f71b65..993bace0 100644 --- a/src/Fans/FanListTopResponse/_Meta/_Credits.php +++ b/src/Fans/FanListTopResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListTopResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/FanListTopResponse/_Meta/_RateLimits.php b/src/Fans/FanListTopResponse/_Meta/_RateLimits.php index 1dd88fcd..bc14b306 100644 --- a/src/Fans/FanListTopResponse/_Meta/_RateLimits.php +++ b/src/Fans/FanListTopResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanListTopResponse\_Meta; +namespace OnlyFansAPI\Fans\FanListTopResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/FanSetCustomNameParams.php b/src/Fans/FanSetCustomNameParams.php index f559d885..73ca8ec6 100644 --- a/src/Fans/FanSetCustomNameParams.php +++ b/src/Fans/FanSetCustomNameParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Change the Fan's Custom Name shown in OnlyFans. * - * @see Onlyfansapi\Services\FansService::setCustomName() + * @see OnlyFansAPI\Services\FansService::setCustomName() * * @phpstan-type FanSetCustomNameParamsShape = array{ * account: string, customName: string diff --git a/src/Fans/FanSetCustomNameResponse.php b/src/Fans/FanSetCustomNameResponse.php index b3d767b2..2d340ae5 100644 --- a/src/Fans/FanSetCustomNameResponse.php +++ b/src/Fans/FanSetCustomNameResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans; +namespace OnlyFansAPI\Fans; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta; -use Onlyfansapi\Fans\FanSetCustomNameResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\Data * * @phpstan-type FanSetCustomNameResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Fans/FanSetCustomNameResponse/Data.php b/src/Fans/FanSetCustomNameResponse/Data.php index 5e1bcc8a..f2a1671b 100644 --- a/src/Fans/FanSetCustomNameResponse/Data.php +++ b/src/Fans/FanSetCustomNameResponse/Data.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanSetCustomNameResponse\Data\AvatarThumbs; -use Onlyfansapi\Fans\FanSetCustomNameResponse\Data\HeaderSize; -use Onlyfansapi\Fans\FanSetCustomNameResponse\Data\HeaderThumbs; -use Onlyfansapi\Fans\FanSetCustomNameResponse\Data\ListsState; -use Onlyfansapi\Fans\FanSetCustomNameResponse\Data\SubscribedByData; -use Onlyfansapi\Fans\FanSetCustomNameResponse\Data\SubscribedOnData; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\AvatarThumbs; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\HeaderSize; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\HeaderThumbs; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\ListsState; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\SubscribedByData; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\Data\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\Data\SubscribedOnData * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Fans/FanSetCustomNameResponse/Data/AvatarThumbs.php b/src/Fans/FanSetCustomNameResponse/Data/AvatarThumbs.php index cfd43066..ffc17b8e 100644 --- a/src/Fans/FanSetCustomNameResponse/Data/AvatarThumbs.php +++ b/src/Fans/FanSetCustomNameResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\Data; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/FanSetCustomNameResponse/Data/HeaderSize.php b/src/Fans/FanSetCustomNameResponse/Data/HeaderSize.php index 88d4b94c..d435cf47 100644 --- a/src/Fans/FanSetCustomNameResponse/Data/HeaderSize.php +++ b/src/Fans/FanSetCustomNameResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\Data; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Fans/FanSetCustomNameResponse/Data/HeaderThumbs.php b/src/Fans/FanSetCustomNameResponse/Data/HeaderThumbs.php index 8f9ff34d..194b2c6a 100644 --- a/src/Fans/FanSetCustomNameResponse/Data/HeaderThumbs.php +++ b/src/Fans/FanSetCustomNameResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\Data; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Fans/FanSetCustomNameResponse/Data/ListsState.php b/src/Fans/FanSetCustomNameResponse/Data/ListsState.php index c9a71861..50e19b3b 100644 --- a/src/Fans/FanSetCustomNameResponse/Data/ListsState.php +++ b/src/Fans/FanSetCustomNameResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\Data; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/FanSetCustomNameResponse/Data/SubscribedByData.php b/src/Fans/FanSetCustomNameResponse/Data/SubscribedByData.php index 238e3e77..e93145d7 100644 --- a/src/Fans/FanSetCustomNameResponse/Data/SubscribedByData.php +++ b/src/Fans/FanSetCustomNameResponse/Data/SubscribedByData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\Data; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedByDataShape = array{ diff --git a/src/Fans/FanSetCustomNameResponse/Data/SubscribedOnData.php b/src/Fans/FanSetCustomNameResponse/Data/SubscribedOnData.php index ae46b48d..827b6676 100644 --- a/src/Fans/FanSetCustomNameResponse/Data/SubscribedOnData.php +++ b/src/Fans/FanSetCustomNameResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\Data; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Fans/FanSetCustomNameResponse/_Meta.php b/src/Fans/FanSetCustomNameResponse/_Meta.php index 5ff3d7f7..49527e1e 100644 --- a/src/Fans/FanSetCustomNameResponse/_Meta.php +++ b/src/Fans/FanSetCustomNameResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta\_Cache; -use Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta\_Credits; -use Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/FanSetCustomNameResponse/_Meta/_Cache.php b/src/Fans/FanSetCustomNameResponse/_Meta/_Cache.php index 3e718f97..2fa6af9e 100644 --- a/src/Fans/FanSetCustomNameResponse/_Meta/_Cache.php +++ b/src/Fans/FanSetCustomNameResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/FanSetCustomNameResponse/_Meta/_Credits.php b/src/Fans/FanSetCustomNameResponse/_Meta/_Credits.php index c496e2db..4dd4202f 100644 --- a/src/Fans/FanSetCustomNameResponse/_Meta/_Credits.php +++ b/src/Fans/FanSetCustomNameResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/FanSetCustomNameResponse/_Meta/_RateLimits.php b/src/Fans/FanSetCustomNameResponse/_Meta/_RateLimits.php index a9ca2b14..f6d8127f 100644 --- a/src/Fans/FanSetCustomNameResponse/_Meta/_RateLimits.php +++ b/src/Fans/FanSetCustomNameResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\FanSetCustomNameResponse\_Meta; +namespace OnlyFansAPI\Fans\FanSetCustomNameResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/Notes/NoteClearNotesParams.php b/src/Fans/Notes/NoteClearNotesParams.php index 5cd43c2a..3b91a278 100644 --- a/src/Fans/Notes/NoteClearNotesParams.php +++ b/src/Fans/Notes/NoteClearNotesParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes; +namespace OnlyFansAPI\Fans\Notes; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Clear notes for a specific fan. * - * @see Onlyfansapi\Services\Fans\NotesService::clearNotes() + * @see OnlyFansAPI\Services\Fans\NotesService::clearNotes() * * @phpstan-type NoteClearNotesParamsShape = array{account: string} */ diff --git a/src/Fans/Notes/NoteClearNotesResponse.php b/src/Fans/Notes/NoteClearNotesResponse.php index 7543f9e2..48c6aa74 100644 --- a/src/Fans/Notes/NoteClearNotesResponse.php +++ b/src/Fans/Notes/NoteClearNotesResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes; +namespace OnlyFansAPI\Fans\Notes; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data * * @phpstan-type NoteClearNotesResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data.php b/src/Fans/Notes/NoteClearNotesResponse/Data.php index 0feaba88..5e96b3d9 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\AvatarThumbs; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\HeaderSize; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\HeaderThumbs; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\ListsState; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscribedOnData; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscriptionBundle; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\AvatarThumbs; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\HeaderSize; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\HeaderThumbs; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\ListsState; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscribedOnData; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscriptionBundle * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/AvatarThumbs.php b/src/Fans/Notes/NoteClearNotesResponse/Data/AvatarThumbs.php index 3453e8e2..2c650d4a 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/AvatarThumbs.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderSize.php b/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderSize.php index aa6e6663..e32fe3fa 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderSize.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderThumbs.php b/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderThumbs.php index 5cf0baf9..266dfe60 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderThumbs.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/ListsState.php b/src/Fans/Notes/NoteClearNotesResponse/Data/ListsState.php index b9da9e40..f5697d0b 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/ListsState.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData.php b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData.php index 9d16b920..1743e857 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData/Subscribe.php b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData/Subscribe.php index afc2319b..07755bf6 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedOnData.php b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedOnData.php index 56deceda..0cd4a20f 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedOnData.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscriptionBundle.php b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscriptionBundle.php index 2a7c5e5f..803844a6 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/Data/SubscriptionBundle.php +++ b/src/Fans/Notes/NoteClearNotesResponse/Data/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Fans/Notes/NoteClearNotesResponse/_Meta.php b/src/Fans/Notes/NoteClearNotesResponse/_Meta.php index 7bb09eb1..8a90a736 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/_Meta.php +++ b/src/Fans/Notes/NoteClearNotesResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta\_Cache; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta\_Credits; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Cache.php b/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Cache.php index 3fec2ce6..016c2ea0 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Cache.php +++ b/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Credits.php b/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Credits.php index 3d677ce3..cf99c1b2 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Credits.php +++ b/src/Fans/Notes/NoteClearNotesResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/Notes/NoteClearNotesResponse/_Meta/_RateLimits.php b/src/Fans/Notes/NoteClearNotesResponse/_Meta/_RateLimits.php index 6f340eeb..0c3ee0e6 100644 --- a/src/Fans/Notes/NoteClearNotesResponse/_Meta/_RateLimits.php +++ b/src/Fans/Notes/NoteClearNotesResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteClearNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteClearNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/Notes/NoteCreateEditNotesParams.php b/src/Fans/Notes/NoteCreateEditNotesParams.php index d0183b86..7bcbe8d0 100644 --- a/src/Fans/Notes/NoteCreateEditNotesParams.php +++ b/src/Fans/Notes/NoteCreateEditNotesParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes; +namespace OnlyFansAPI\Fans\Notes; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create or edit notes for a specific fan. * - * @see Onlyfansapi\Services\Fans\NotesService::createEditNotes() + * @see OnlyFansAPI\Services\Fans\NotesService::createEditNotes() * * @phpstan-type NoteCreateEditNotesParamsShape = array{ * account: string, notes: string diff --git a/src/Fans/Notes/NoteGetNotesParams.php b/src/Fans/Notes/NoteGetNotesParams.php index 358ee02a..320ed5b3 100644 --- a/src/Fans/Notes/NoteGetNotesParams.php +++ b/src/Fans/Notes/NoteGetNotesParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes; +namespace OnlyFansAPI\Fans\Notes; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve notes for a specific fan. * - * @see Onlyfansapi\Services\Fans\NotesService::getNotes() + * @see OnlyFansAPI\Services\Fans\NotesService::getNotes() * * @phpstan-type NoteGetNotesParamsShape = array{account: string} */ diff --git a/src/Fans/Notes/NoteGetNotesResponse.php b/src/Fans/Notes/NoteGetNotesResponse.php index f1548fee..d5df0f52 100644 --- a/src/Fans/Notes/NoteGetNotesResponse.php +++ b/src/Fans/Notes/NoteGetNotesResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes; +namespace OnlyFansAPI\Fans\Notes; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\Notes\NoteGetNotesResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\Data * * @phpstan-type NoteGetNotesResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Fans/Notes/NoteGetNotesResponse/Data.php b/src/Fans/Notes/NoteGetNotesResponse/Data.php index bf61bcff..b2aa1f09 100644 --- a/src/Fans/Notes/NoteGetNotesResponse/Data.php +++ b/src/Fans/Notes/NoteGetNotesResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteGetNotesResponse; +namespace OnlyFansAPI\Fans\Notes\NoteGetNotesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{notes?: string|null} diff --git a/src/Fans/Notes/NoteGetNotesResponse/_Meta.php b/src/Fans/Notes/NoteGetNotesResponse/_Meta.php index e18e35c6..deacac89 100644 --- a/src/Fans/Notes/NoteGetNotesResponse/_Meta.php +++ b/src/Fans/Notes/NoteGetNotesResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteGetNotesResponse; +namespace OnlyFansAPI\Fans\Notes\NoteGetNotesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta\_Cache; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta\_Credits; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Cache.php b/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Cache.php index 2d75f624..beacddb8 100644 --- a/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Cache.php +++ b/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Credits.php b/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Credits.php index 86246ecf..40b5e374 100644 --- a/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Credits.php +++ b/src/Fans/Notes/NoteGetNotesResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/Notes/NoteGetNotesResponse/_Meta/_RateLimits.php b/src/Fans/Notes/NoteGetNotesResponse/_Meta/_RateLimits.php index 80b8d381..0360a23c 100644 --- a/src/Fans/Notes/NoteGetNotesResponse/_Meta/_RateLimits.php +++ b/src/Fans/Notes/NoteGetNotesResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteGetNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteGetNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/Notes/NoteNewEditNotesResponse.php b/src/Fans/Notes/NoteNewEditNotesResponse.php index fe2c29fe..9afea3b8 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes; +namespace OnlyFansAPI\Fans\Notes; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data * * @phpstan-type NoteNewEditNotesResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data.php index 7f24e509..33c318d5 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\AvatarThumbs; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderSize; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderThumbs; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\ListsState; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedOnData; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscriptionBundle; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\AvatarThumbs; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderSize; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderThumbs; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\ListsState; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedOnData; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscriptionBundle * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/AvatarThumbs.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/AvatarThumbs.php index 27d34a4e..c05e6c54 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/AvatarThumbs.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderSize.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderSize.php index c1540ff1..737fec0e 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderSize.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderThumbs.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderThumbs.php index aa040696..371d469f 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderThumbs.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/ListsState.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/ListsState.php index 2b2d4908..d8fe69ed 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/ListsState.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData.php index e60b0206..aad5a051 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData/Subscribe.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData/Subscribe.php index 71473725..e3180a24 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedOnData.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedOnData.php index ec43bc40..82520fd5 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedOnData.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscriptionBundle.php b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscriptionBundle.php index 4b532df4..94363df5 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscriptionBundle.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/Data/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\Data; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta.php b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta.php index 55ca2422..8778fc98 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Cache; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Credits; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Cache; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Credits; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Cache.php b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Cache.php index b47d78b6..1af78b32 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Cache.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Credits.php b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Credits.php index 7f882fce..e731b606 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Credits.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_RateLimits.php b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_RateLimits.php index 481537b0..1563e644 100644 --- a/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_RateLimits.php +++ b/src/Fans/Notes/NoteNewEditNotesResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse\_Meta; +namespace OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Fans/Summary/SummaryGenerateSummaryParams.php b/src/Fans/Summary/SummaryGenerateSummaryParams.php index 9c15d20d..20566d30 100644 --- a/src/Fans/Summary/SummaryGenerateSummaryParams.php +++ b/src/Fans/Summary/SummaryGenerateSummaryParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Summary; +namespace OnlyFansAPI\Fans\Summary; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Queue generation or regeneration of an AI profile summary for a fan. Costs 200 credits (charged on completion). Use the GET endpoint to poll for results. To regenerate an existing summary, pass `regenerate: true`. * - * @see Onlyfansapi\Services\Fans\SummaryService::generateSummary() + * @see OnlyFansAPI\Services\Fans\SummaryService::generateSummary() * * @phpstan-type SummaryGenerateSummaryParamsShape = array{ * account: string, regenerate?: bool|null diff --git a/src/Fans/Summary/SummaryGenerateSummaryResponse.php b/src/Fans/Summary/SummaryGenerateSummaryResponse.php index fc005afd..c12a84d0 100644 --- a/src/Fans/Summary/SummaryGenerateSummaryResponse.php +++ b/src/Fans/Summary/SummaryGenerateSummaryResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Summary; +namespace OnlyFansAPI\Fans\Summary; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryGenerateSummaryResponseShape = array{ diff --git a/src/Fans/Summary/SummaryGetSummaryParams.php b/src/Fans/Summary/SummaryGetSummaryParams.php index 4f3fb22b..560d69fc 100644 --- a/src/Fans/Summary/SummaryGetSummaryParams.php +++ b/src/Fans/Summary/SummaryGetSummaryParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Summary; +namespace OnlyFansAPI\Fans\Summary; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve the AI profile summary for a fan. Poll this endpoint after triggering a generation to check for completion. * - * @see Onlyfansapi\Services\Fans\SummaryService::getSummary() + * @see OnlyFansAPI\Services\Fans\SummaryService::getSummary() * * @phpstan-type SummaryGetSummaryParamsShape = array{account: string} */ diff --git a/src/Fans/Summary/SummaryGetSummaryResponse.php b/src/Fans/Summary/SummaryGetSummaryResponse.php index 9025cc59..d98877cb 100644 --- a/src/Fans/Summary/SummaryGetSummaryResponse.php +++ b/src/Fans/Summary/SummaryGetSummaryResponse.php @@ -2,20 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Summary; +namespace OnlyFansAPI\Fans\Summary; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse\SummaryData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse\CustomField; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse\SummaryData; /** - * @phpstan-import-type SummaryDataShape from \Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse\SummaryData + * @phpstan-import-type CustomFieldShape from \OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse\CustomField + * @phpstan-import-type SummaryDataShape from \OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse\SummaryData * * @phpstan-type SummaryGetSummaryResponseShape = array{ * analyzedMessageCount?: int|null, + * customFields?: list|null, * errorMessage?: string|null, * lastAnalyzedAt?: string|null, + * lastBuyDate?: string|null, * status?: string|null, * summaryData?: null|SummaryData|SummaryDataShape, * } @@ -28,12 +32,19 @@ final class SummaryGetSummaryResponse implements BaseModel #[Optional('analyzed_message_count')] public ?int $analyzedMessageCount; + /** @var list|null $customFields */ + #[Optional('custom_fields', list: CustomField::class)] + public ?array $customFields; + #[Optional('error_message', nullable: true)] public ?string $errorMessage; #[Optional('last_analyzed_at')] public ?string $lastAnalyzedAt; + #[Optional('last_buy_date')] + public ?string $lastBuyDate; + #[Optional] public ?string $status; @@ -50,20 +61,25 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param list|null $customFields * @param SummaryData|SummaryDataShape|null $summaryData */ public static function with( ?int $analyzedMessageCount = null, + ?array $customFields = null, ?string $errorMessage = null, ?string $lastAnalyzedAt = null, + ?string $lastBuyDate = null, ?string $status = null, SummaryData|array|null $summaryData = null, ): self { $self = new self; null !== $analyzedMessageCount && $self['analyzedMessageCount'] = $analyzedMessageCount; + null !== $customFields && $self['customFields'] = $customFields; null !== $errorMessage && $self['errorMessage'] = $errorMessage; null !== $lastAnalyzedAt && $self['lastAnalyzedAt'] = $lastAnalyzedAt; + null !== $lastBuyDate && $self['lastBuyDate'] = $lastBuyDate; null !== $status && $self['status'] = $status; null !== $summaryData && $self['summaryData'] = $summaryData; @@ -78,6 +94,17 @@ public function withAnalyzedMessageCount(int $analyzedMessageCount): self return $self; } + /** + * @param list $customFields + */ + public function withCustomFields(array $customFields): self + { + $self = clone $this; + $self['customFields'] = $customFields; + + return $self; + } + public function withErrorMessage(?string $errorMessage): self { $self = clone $this; @@ -94,6 +121,14 @@ public function withLastAnalyzedAt(string $lastAnalyzedAt): self return $self; } + public function withLastBuyDate(string $lastBuyDate): self + { + $self = clone $this; + $self['lastBuyDate'] = $lastBuyDate; + + return $self; + } + public function withStatus(string $status): self { $self = clone $this; diff --git a/src/Fans/Summary/SummaryGetSummaryResponse/CustomField.php b/src/Fans/Summary/SummaryGetSummaryResponse/CustomField.php new file mode 100644 index 00000000..8a205e3e --- /dev/null +++ b/src/Fans/Summary/SummaryGetSummaryResponse/CustomField.php @@ -0,0 +1,60 @@ + */ + use SdkModel; + + #[Optional] + public ?string $key; + + #[Optional] + public ?string $label; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with(?string $key = null, ?string $label = null): self + { + $self = new self; + + null !== $key && $self['key'] = $key; + null !== $label && $self['label'] = $label; + + return $self; + } + + public function withKey(string $key): self + { + $self = clone $this; + $self['key'] = $key; + + return $self; + } + + public function withLabel(string $label): self + { + $self = clone $this; + $self['label'] = $label; + + return $self; + } +} diff --git a/src/Fans/Summary/SummaryGetSummaryResponse/SummaryData.php b/src/Fans/Summary/SummaryGetSummaryResponse/SummaryData.php index 49a7362a..e7dd0da3 100644 --- a/src/Fans/Summary/SummaryGetSummaryResponse/SummaryData.php +++ b/src/Fans/Summary/SummaryGetSummaryResponse/SummaryData.php @@ -2,15 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse; +namespace OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryDataShape = array{ + * contentDislikes?: string|null, * contentPreferences?: string|null, + * dosAndDonts?: string|null, * familyPets?: string|null, * hobbies?: string|null, * interests?: string|null, @@ -19,6 +21,7 @@ * otherNotes?: string|null, * preferredName?: string|null, * requests?: string|null, + * spendCadence?: string|null, * themes?: string|null, * travelPlans?: string|null, * } @@ -28,9 +31,15 @@ final class SummaryData implements BaseModel /** @use SdkModel */ use SdkModel; + #[Optional('content_dislikes')] + public ?string $contentDislikes; + #[Optional('content_preferences')] public ?string $contentPreferences; + #[Optional('dos_and_donts')] + public ?string $dosAndDonts; + #[Optional('family_pets')] public ?string $familyPets; @@ -55,6 +64,9 @@ final class SummaryData implements BaseModel #[Optional] public ?string $requests; + #[Optional('spend_cadence')] + public ?string $spendCadence; + #[Optional] public ?string $themes; @@ -72,7 +84,9 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. */ public static function with( + ?string $contentDislikes = null, ?string $contentPreferences = null, + ?string $dosAndDonts = null, ?string $familyPets = null, ?string $hobbies = null, ?string $interests = null, @@ -81,12 +95,15 @@ public static function with( ?string $otherNotes = null, ?string $preferredName = null, ?string $requests = null, + ?string $spendCadence = null, ?string $themes = null, ?string $travelPlans = null, ): self { $self = new self; + null !== $contentDislikes && $self['contentDislikes'] = $contentDislikes; null !== $contentPreferences && $self['contentPreferences'] = $contentPreferences; + null !== $dosAndDonts && $self['dosAndDonts'] = $dosAndDonts; null !== $familyPets && $self['familyPets'] = $familyPets; null !== $hobbies && $self['hobbies'] = $hobbies; null !== $interests && $self['interests'] = $interests; @@ -95,12 +112,21 @@ public static function with( null !== $otherNotes && $self['otherNotes'] = $otherNotes; null !== $preferredName && $self['preferredName'] = $preferredName; null !== $requests && $self['requests'] = $requests; + null !== $spendCadence && $self['spendCadence'] = $spendCadence; null !== $themes && $self['themes'] = $themes; null !== $travelPlans && $self['travelPlans'] = $travelPlans; return $self; } + public function withContentDislikes(string $contentDislikes): self + { + $self = clone $this; + $self['contentDislikes'] = $contentDislikes; + + return $self; + } + public function withContentPreferences(string $contentPreferences): self { $self = clone $this; @@ -109,6 +135,14 @@ public function withContentPreferences(string $contentPreferences): self return $self; } + public function withDosAndDonts(string $dosAndDonts): self + { + $self = clone $this; + $self['dosAndDonts'] = $dosAndDonts; + + return $self; + } + public function withFamilyPets(string $familyPets): self { $self = clone $this; @@ -173,6 +207,14 @@ public function withRequests(string $requests): self return $self; } + public function withSpendCadence(string $spendCadence): self + { + $self = clone $this; + $self['spendCadence'] = $spendCadence; + + return $self; + } + public function withThemes(string $themes): self { $self = clone $this; diff --git a/src/Following/FollowingListActiveParams.php b/src/Following/FollowingListActiveParams.php index 2647b17a..95b57c81 100644 --- a/src/Following/FollowingListActiveParams.php +++ b/src/Following/FollowingListActiveParams.php @@ -2,26 +2,30 @@ declare(strict_types=1); -namespace Onlyfansapi\Following; +namespace OnlyFansAPI\Following; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListActiveParams\Filter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListActiveParams\Filter; +use OnlyFansAPI\Following\FollowingListActiveParams\Sort; +use OnlyFansAPI\Following\FollowingListActiveParams\SortDirection; /** - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. By default OnlyFans returns this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. An empty page is not the end of the list: OnlyFans applies `offset` to the whole following collection before filtering it down to the requested list, so a page can come back empty while more results follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. * - * @see Onlyfansapi\Services\FollowingService::listActive() + * @see OnlyFansAPI\Services\FollowingService::listActive() * - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListActiveParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListActiveParams\Filter * * @phpstan-type FollowingListActiveParamsShape = array{ * filter?: null|Filter|FilterShape, * limit?: int|null, * offset?: int|null, * query?: string|null, + * sort?: null|Sort|value-of, + * sortDirection?: null|SortDirection|value-of, * } */ final class FollowingListActiveParams implements BaseModel @@ -51,6 +55,22 @@ final class FollowingListActiveParams implements BaseModel #[Optional(nullable: true)] public ?string $query; + /** + * Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * + * @var value-of|null $sort + */ + #[Optional(enum: Sort::class, nullable: true)] + public ?string $sort; + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. + * + * @var value-of|null $sortDirection + */ + #[Optional(enum: SortDirection::class, nullable: true)] + public ?string $sortDirection; + public function __construct() { $this->initialize(); @@ -62,12 +82,16 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param Filter|FilterShape|null $filter + * @param Sort|value-of|null $sort + * @param SortDirection|value-of|null $sortDirection */ public static function with( Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, + Sort|string|null $sort = null, + SortDirection|string|null $sortDirection = null, ): self { $self = new self; @@ -75,6 +99,8 @@ public static function with( null !== $limit && $self['limit'] = $limit; null !== $offset && $self['offset'] = $offset; null !== $query && $self['query'] = $query; + null !== $sort && $self['sort'] = $sort; + null !== $sortDirection && $self['sortDirection'] = $sortDirection; return $self; } @@ -122,4 +148,31 @@ public function withQuery(?string $query): self return $self; } + + /** + * Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * + * @param Sort|value-of|null $sort + */ + public function withSort(Sort|string|null $sort): self + { + $self = clone $this; + $self['sort'] = $sort; + + return $self; + } + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. + * + * @param SortDirection|value-of|null $sortDirection + */ + public function withSortDirection( + SortDirection|string|null $sortDirection + ): self { + $self = clone $this; + $self['sortDirection'] = $sortDirection; + + return $self; + } } diff --git a/src/Following/FollowingListActiveParams/Filter.php b/src/Following/FollowingListActiveParams/Filter.php index ca27a2ea..a4ea7d74 100644 --- a/src/Following/FollowingListActiveParams/Filter.php +++ b/src/Following/FollowingListActiveParams/Filter.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveParams; +namespace OnlyFansAPI\Following\FollowingListActiveParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListActiveParams\Filter\Online; -use Onlyfansapi\Following\FollowingListActiveParams\Filter\Paid; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListActiveParams\Filter\Online; +use OnlyFansAPI\Following\FollowingListActiveParams\Filter\Paid; /** * @phpstan-type FilterShape = array{ diff --git a/src/Following/FollowingListActiveParams/Filter/Online.php b/src/Following/FollowingListActiveParams/Filter/Online.php index 0a410af7..fdf42456 100644 --- a/src/Following/FollowingListActiveParams/Filter/Online.php +++ b/src/Following/FollowingListActiveParams/Filter/Online.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveParams\Filter; +namespace OnlyFansAPI\Following\FollowingListActiveParams\Filter; /** * Filter by online status (1 for online, 0 for offline, null for all). diff --git a/src/Following/FollowingListActiveParams/Filter/Paid.php b/src/Following/FollowingListActiveParams/Filter/Paid.php index 48c46fe7..53695db4 100644 --- a/src/Following/FollowingListActiveParams/Filter/Paid.php +++ b/src/Following/FollowingListActiveParams/Filter/Paid.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveParams\Filter; +namespace OnlyFansAPI\Following\FollowingListActiveParams\Filter; /** * Filter by paid status (1 for paid, 0 for free, null for all). diff --git a/src/Following/FollowingListActiveParams/Sort.php b/src/Following/FollowingListActiveParams/Sort.php new file mode 100644 index 00000000..5688559e --- /dev/null +++ b/src/Following/FollowingListActiveParams/Sort.php @@ -0,0 +1,19 @@ +sortDirection is present. + */ +enum Sort: string +{ + case LAST_ACTIVITY = 'last_activity'; + + case EXPIRE_DATE = 'expire_date'; + + case SUBSCRIBE_DATE = 'subscribe_date'; + + case IS_EXPIRED = 'is_expired'; +} diff --git a/src/Following/FollowingListActiveParams/SortDirection.php b/src/Following/FollowingListActiveParams/SortDirection.php new file mode 100644 index 00000000..e3d23d2d --- /dev/null +++ b/src/Following/FollowingListActiveParams/SortDirection.php @@ -0,0 +1,15 @@ +|null diff --git a/src/Following/FollowingListActiveResponse/Data/List_.php b/src/Following/FollowingListActiveResponse/Data/List_.php index e2e9ca01..5d9bdbc7 100644 --- a/src/Following/FollowingListActiveResponse/Data/List_.php +++ b/src/Following/FollowingListActiveResponse/Data/List_.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\Data; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\HeaderSize; -use Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\HeaderThumbs; -use Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\ListsState; -use Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\SubscribedByData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\HeaderSize; +use OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\HeaderThumbs; +use OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\ListsState; +use OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\SubscribedByData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\SubscribedByData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\SubscribedByData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Following/FollowingListActiveResponse/Data/List_/AvatarThumbs.php b/src/Following/FollowingListActiveResponse/Data/List_/AvatarThumbs.php index 782597ad..02da6c91 100644 --- a/src/Following/FollowingListActiveResponse/Data/List_/AvatarThumbs.php +++ b/src/Following/FollowingListActiveResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Following/FollowingListActiveResponse/Data/List_/HeaderSize.php b/src/Following/FollowingListActiveResponse/Data/List_/HeaderSize.php index 732e5b46..b760925d 100644 --- a/src/Following/FollowingListActiveResponse/Data/List_/HeaderSize.php +++ b/src/Following/FollowingListActiveResponse/Data/List_/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Following/FollowingListActiveResponse/Data/List_/HeaderThumbs.php b/src/Following/FollowingListActiveResponse/Data/List_/HeaderThumbs.php index 0d6d5a15..27105860 100644 --- a/src/Following/FollowingListActiveResponse/Data/List_/HeaderThumbs.php +++ b/src/Following/FollowingListActiveResponse/Data/List_/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Following/FollowingListActiveResponse/Data/List_/ListsState.php b/src/Following/FollowingListActiveResponse/Data/List_/ListsState.php index e85600ed..54e6fb24 100644 --- a/src/Following/FollowingListActiveResponse/Data/List_/ListsState.php +++ b/src/Following/FollowingListActiveResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData.php b/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData.php index f094352e..01f95f38 100644 --- a/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData.php +++ b/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData/Subscribe.php b/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData/Subscribe.php index 9f1f184a..ad24ae99 100644 --- a/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData/Subscribe.php +++ b/src/Following/FollowingListActiveResponse/Data/List_/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\Data\List_\SubscribedByData; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Following/FollowingListActiveResponse/_Meta.php b/src/Following/FollowingListActiveResponse/_Meta.php index 8791352b..0c2d939e 100644 --- a/src/Following/FollowingListActiveResponse/_Meta.php +++ b/src/Following/FollowingListActiveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse; +namespace OnlyFansAPI\Following\FollowingListActiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListActiveResponse\_Meta\_Cache; -use Onlyfansapi\Following\FollowingListActiveResponse\_Meta\_Credits; -use Onlyfansapi\Following\FollowingListActiveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListActiveResponse\_Meta\_Cache; +use OnlyFansAPI\Following\FollowingListActiveResponse\_Meta\_Credits; +use OnlyFansAPI\Following\FollowingListActiveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Following\FollowingListActiveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Following\FollowingListActiveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Following\FollowingListActiveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Following\FollowingListActiveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Following\FollowingListActiveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Following\FollowingListActiveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Following/FollowingListActiveResponse/_Meta/_Cache.php b/src/Following/FollowingListActiveResponse/_Meta/_Cache.php index 39382d52..f43e131d 100644 --- a/src/Following/FollowingListActiveResponse/_Meta/_Cache.php +++ b/src/Following/FollowingListActiveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Following/FollowingListActiveResponse/_Meta/_Credits.php b/src/Following/FollowingListActiveResponse/_Meta/_Credits.php index 8bdbe6fc..baf9ad83 100644 --- a/src/Following/FollowingListActiveResponse/_Meta/_Credits.php +++ b/src/Following/FollowingListActiveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Following/FollowingListActiveResponse/_Meta/_RateLimits.php b/src/Following/FollowingListActiveResponse/_Meta/_RateLimits.php index 10b2d231..88b342e2 100644 --- a/src/Following/FollowingListActiveResponse/_Meta/_RateLimits.php +++ b/src/Following/FollowingListActiveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Following/FollowingListActiveResponse/_Pagination.php b/src/Following/FollowingListActiveResponse/_Pagination.php index c4e31081..d3c3badf 100644 --- a/src/Following/FollowingListActiveResponse/_Pagination.php +++ b/src/Following/FollowingListActiveResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListActiveResponse; +namespace OnlyFansAPI\Following\FollowingListActiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Following/FollowingListAllParams.php b/src/Following/FollowingListAllParams.php index 864bdad7..ad253370 100644 --- a/src/Following/FollowingListAllParams.php +++ b/src/Following/FollowingListAllParams.php @@ -2,26 +2,30 @@ declare(strict_types=1); -namespace Onlyfansapi\Following; +namespace OnlyFansAPI\Following; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListAllParams\Filter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListAllParams\Filter; +use OnlyFansAPI\Following\FollowingListAllParams\Sort; +use OnlyFansAPI\Following\FollowingListAllParams\SortDirection; /** - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. By default OnlyFans returns this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. An empty page is not the end of the list: OnlyFans applies `offset` to the whole following collection before filtering it down to the requested list, so a page can come back empty while more results follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. * - * @see Onlyfansapi\Services\FollowingService::listAll() + * @see OnlyFansAPI\Services\FollowingService::listAll() * - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListAllParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListAllParams\Filter * * @phpstan-type FollowingListAllParamsShape = array{ * filter?: null|Filter|FilterShape, * limit?: int|null, * offset?: int|null, * query?: string|null, + * sort?: null|Sort|value-of, + * sortDirection?: null|SortDirection|value-of, * } */ final class FollowingListAllParams implements BaseModel @@ -51,6 +55,22 @@ final class FollowingListAllParams implements BaseModel #[Optional(nullable: true)] public ?string $query; + /** + * Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * + * @var value-of|null $sort + */ + #[Optional(enum: Sort::class, nullable: true)] + public ?string $sort; + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. + * + * @var value-of|null $sortDirection + */ + #[Optional(enum: SortDirection::class, nullable: true)] + public ?string $sortDirection; + public function __construct() { $this->initialize(); @@ -62,12 +82,16 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param Filter|FilterShape|null $filter + * @param Sort|value-of|null $sort + * @param SortDirection|value-of|null $sortDirection */ public static function with( Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, + Sort|string|null $sort = null, + SortDirection|string|null $sortDirection = null, ): self { $self = new self; @@ -75,6 +99,8 @@ public static function with( null !== $limit && $self['limit'] = $limit; null !== $offset && $self['offset'] = $offset; null !== $query && $self['query'] = $query; + null !== $sort && $self['sort'] = $sort; + null !== $sortDirection && $self['sortDirection'] = $sortDirection; return $self; } @@ -122,4 +148,31 @@ public function withQuery(?string $query): self return $self; } + + /** + * Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * + * @param Sort|value-of|null $sort + */ + public function withSort(Sort|string|null $sort): self + { + $self = clone $this; + $self['sort'] = $sort; + + return $self; + } + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. + * + * @param SortDirection|value-of|null $sortDirection + */ + public function withSortDirection( + SortDirection|string|null $sortDirection + ): self { + $self = clone $this; + $self['sortDirection'] = $sortDirection; + + return $self; + } } diff --git a/src/Following/FollowingListAllParams/Filter.php b/src/Following/FollowingListAllParams/Filter.php index 5ff788cc..0e907048 100644 --- a/src/Following/FollowingListAllParams/Filter.php +++ b/src/Following/FollowingListAllParams/Filter.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllParams; +namespace OnlyFansAPI\Following\FollowingListAllParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListAllParams\Filter\Online; -use Onlyfansapi\Following\FollowingListAllParams\Filter\Paid; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListAllParams\Filter\Online; +use OnlyFansAPI\Following\FollowingListAllParams\Filter\Paid; /** * @phpstan-type FilterShape = array{ diff --git a/src/Following/FollowingListAllParams/Filter/Online.php b/src/Following/FollowingListAllParams/Filter/Online.php index 54dbbb29..97f7d639 100644 --- a/src/Following/FollowingListAllParams/Filter/Online.php +++ b/src/Following/FollowingListAllParams/Filter/Online.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllParams\Filter; +namespace OnlyFansAPI\Following\FollowingListAllParams\Filter; /** * Filter by online status (1 for online, 0 for offline, null for all). diff --git a/src/Following/FollowingListAllParams/Filter/Paid.php b/src/Following/FollowingListAllParams/Filter/Paid.php index 5dd508d0..84f243e3 100644 --- a/src/Following/FollowingListAllParams/Filter/Paid.php +++ b/src/Following/FollowingListAllParams/Filter/Paid.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllParams\Filter; +namespace OnlyFansAPI\Following\FollowingListAllParams\Filter; /** * Filter by paid status (1 for paid, 0 for free, null for all). diff --git a/src/Following/FollowingListAllParams/Sort.php b/src/Following/FollowingListAllParams/Sort.php new file mode 100644 index 00000000..9a548c4f --- /dev/null +++ b/src/Following/FollowingListAllParams/Sort.php @@ -0,0 +1,19 @@ +sortDirection is present. + */ +enum Sort: string +{ + case LAST_ACTIVITY = 'last_activity'; + + case EXPIRE_DATE = 'expire_date'; + + case SUBSCRIBE_DATE = 'subscribe_date'; + + case IS_EXPIRED = 'is_expired'; +} diff --git a/src/Following/FollowingListAllParams/SortDirection.php b/src/Following/FollowingListAllParams/SortDirection.php new file mode 100644 index 00000000..ff9ee82f --- /dev/null +++ b/src/Following/FollowingListAllParams/SortDirection.php @@ -0,0 +1,15 @@ +|null diff --git a/src/Following/FollowingListAllResponse/Data/List_.php b/src/Following/FollowingListAllResponse/Data/List_.php index 8205f6dc..75fb89ca 100644 --- a/src/Following/FollowingListAllResponse/Data/List_.php +++ b/src/Following/FollowingListAllResponse/Data/List_.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\Data; +namespace OnlyFansAPI\Following\FollowingListAllResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListAllResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\Following\FollowingListAllResponse\Data\List_\HeaderSize; -use Onlyfansapi\Following\FollowingListAllResponse\Data\List_\HeaderThumbs; -use Onlyfansapi\Following\FollowingListAllResponse\Data\List_\ListsState; -use Onlyfansapi\Following\FollowingListAllResponse\Data\List_\SubscribedByData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\HeaderSize; +use OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\HeaderThumbs; +use OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\ListsState; +use OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\SubscribedByData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Following\FollowingListAllResponse\Data\List_\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Following\FollowingListAllResponse\Data\List_\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Following\FollowingListAllResponse\Data\List_\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Following\FollowingListAllResponse\Data\List_\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Following\FollowingListAllResponse\Data\List_\SubscribedByData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\SubscribedByData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Following/FollowingListAllResponse/Data/List_/AvatarThumbs.php b/src/Following/FollowingListAllResponse/Data/List_/AvatarThumbs.php index 3815d588..ff98ddfd 100644 --- a/src/Following/FollowingListAllResponse/Data/List_/AvatarThumbs.php +++ b/src/Following/FollowingListAllResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Following/FollowingListAllResponse/Data/List_/HeaderSize.php b/src/Following/FollowingListAllResponse/Data/List_/HeaderSize.php index b28052e2..683af106 100644 --- a/src/Following/FollowingListAllResponse/Data/List_/HeaderSize.php +++ b/src/Following/FollowingListAllResponse/Data/List_/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Following/FollowingListAllResponse/Data/List_/HeaderThumbs.php b/src/Following/FollowingListAllResponse/Data/List_/HeaderThumbs.php index b35b8aa9..d0f15489 100644 --- a/src/Following/FollowingListAllResponse/Data/List_/HeaderThumbs.php +++ b/src/Following/FollowingListAllResponse/Data/List_/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Following/FollowingListAllResponse/Data/List_/ListsState.php b/src/Following/FollowingListAllResponse/Data/List_/ListsState.php index ef4a4eee..c27cb8e4 100644 --- a/src/Following/FollowingListAllResponse/Data/List_/ListsState.php +++ b/src/Following/FollowingListAllResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData.php b/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData.php index 7343096b..04b1b876 100644 --- a/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData.php +++ b/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListAllResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListAllResponse\Data\List_\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Following\FollowingListAllResponse\Data\List_\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData/Subscribe.php b/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData/Subscribe.php index d879ec73..be580918 100644 --- a/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData/Subscribe.php +++ b/src/Following/FollowingListAllResponse/Data/List_/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\Data\List_\SubscribedByData; +namespace OnlyFansAPI\Following\FollowingListAllResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Following/FollowingListAllResponse/_Meta.php b/src/Following/FollowingListAllResponse/_Meta.php index f4449828..c5ff69b0 100644 --- a/src/Following/FollowingListAllResponse/_Meta.php +++ b/src/Following/FollowingListAllResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse; +namespace OnlyFansAPI\Following\FollowingListAllResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListAllResponse\_Meta\_Cache; -use Onlyfansapi\Following\FollowingListAllResponse\_Meta\_Credits; -use Onlyfansapi\Following\FollowingListAllResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListAllResponse\_Meta\_Cache; +use OnlyFansAPI\Following\FollowingListAllResponse\_Meta\_Credits; +use OnlyFansAPI\Following\FollowingListAllResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Following\FollowingListAllResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Following\FollowingListAllResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Following\FollowingListAllResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Following\FollowingListAllResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Following\FollowingListAllResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Following\FollowingListAllResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Following/FollowingListAllResponse/_Meta/_Cache.php b/src/Following/FollowingListAllResponse/_Meta/_Cache.php index c0f8ce67..c25fd14f 100644 --- a/src/Following/FollowingListAllResponse/_Meta/_Cache.php +++ b/src/Following/FollowingListAllResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Following/FollowingListAllResponse/_Meta/_Credits.php b/src/Following/FollowingListAllResponse/_Meta/_Credits.php index d4c46ae4..19ddd3e4 100644 --- a/src/Following/FollowingListAllResponse/_Meta/_Credits.php +++ b/src/Following/FollowingListAllResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Following/FollowingListAllResponse/_Meta/_RateLimits.php b/src/Following/FollowingListAllResponse/_Meta/_RateLimits.php index bbdc037d..03d4981c 100644 --- a/src/Following/FollowingListAllResponse/_Meta/_RateLimits.php +++ b/src/Following/FollowingListAllResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListAllResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Following/FollowingListAllResponse/_Pagination.php b/src/Following/FollowingListAllResponse/_Pagination.php index 269250c3..6f02252c 100644 --- a/src/Following/FollowingListAllResponse/_Pagination.php +++ b/src/Following/FollowingListAllResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListAllResponse; +namespace OnlyFansAPI\Following\FollowingListAllResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Following/FollowingListExpiredParams.php b/src/Following/FollowingListExpiredParams.php index f65d1f23..a2af9c35 100644 --- a/src/Following/FollowingListExpiredParams.php +++ b/src/Following/FollowingListExpiredParams.php @@ -2,26 +2,30 @@ declare(strict_types=1); -namespace Onlyfansapi\Following; +namespace OnlyFansAPI\Following; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListExpiredParams\Filter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListExpiredParams\Filter; +use OnlyFansAPI\Following\FollowingListExpiredParams\Sort; +use OnlyFansAPI\Following\FollowingListExpiredParams\SortDirection; /** - * Get a paginated list of expired followings for an Account. Newest followings are first. + * Get a paginated list of expired followings for an Account. This list has no order guarantee. Unlike the all and active lists, it is sorted by neither `subscribedByData.subscribeAt` nor `subscribedByData.expiredAt`. To poll for new expirations, page through the full list each cycle (`limit=50`, follow `_pagination.next_page` until it is null) and diff it against your own store using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you have already seen, as that can silently skip real expirations. An empty page is not the end of the list either: OnlyFans applies `offset` to the whole following collection and only then filters that window down to expired subscriptions, so early pages can come back empty while hundreds of expired rows still follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. Pass `sort=expire_date` (optionally with `sortDirection`) to get a deterministic order instead — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. Ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection, so prefer `sortDirection=asc` or `sort=is_expired` for expired-first results; for that reason `sort=expire_date` defaults to `asc` on this list when no `sortDirection` is given. * - * @see Onlyfansapi\Services\FollowingService::listExpired() + * @see OnlyFansAPI\Services\FollowingService::listExpired() * - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListExpiredParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListExpiredParams\Filter * * @phpstan-type FollowingListExpiredParamsShape = array{ * filter?: null|Filter|FilterShape, * limit?: int|null, * offset?: int|null, * query?: string|null, + * sort?: null|Sort|value-of, + * sortDirection?: null|SortDirection|value-of, * } */ final class FollowingListExpiredParams implements BaseModel @@ -51,6 +55,22 @@ final class FollowingListExpiredParams implements BaseModel #[Optional(nullable: true)] public ?string $query; + /** + * Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * + * @var value-of|null $sort + */ + #[Optional(enum: Sort::class, nullable: true)] + public ?string $sort; + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. + * + * @var value-of|null $sortDirection + */ + #[Optional(enum: SortDirection::class, nullable: true)] + public ?string $sortDirection; + public function __construct() { $this->initialize(); @@ -62,12 +82,16 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param Filter|FilterShape|null $filter + * @param Sort|value-of|null $sort + * @param SortDirection|value-of|null $sortDirection */ public static function with( Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, + Sort|string|null $sort = null, + SortDirection|string|null $sortDirection = null, ): self { $self = new self; @@ -75,6 +99,8 @@ public static function with( null !== $limit && $self['limit'] = $limit; null !== $offset && $self['offset'] = $offset; null !== $query && $self['query'] = $query; + null !== $sort && $self['sort'] = $sort; + null !== $sortDirection && $self['sortDirection'] = $sortDirection; return $self; } @@ -122,4 +148,31 @@ public function withQuery(?string $query): self return $self; } + + /** + * Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * + * @param Sort|value-of|null $sort + */ + public function withSort(Sort|string|null $sort): self + { + $self = clone $this; + $self['sort'] = $sort; + + return $self; + } + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. + * + * @param SortDirection|value-of|null $sortDirection + */ + public function withSortDirection( + SortDirection|string|null $sortDirection + ): self { + $self = clone $this; + $self['sortDirection'] = $sortDirection; + + return $self; + } } diff --git a/src/Following/FollowingListExpiredParams/Filter.php b/src/Following/FollowingListExpiredParams/Filter.php index 3f29f93c..3f83af1e 100644 --- a/src/Following/FollowingListExpiredParams/Filter.php +++ b/src/Following/FollowingListExpiredParams/Filter.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredParams; +namespace OnlyFansAPI\Following\FollowingListExpiredParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListExpiredParams\Filter\Online; -use Onlyfansapi\Following\FollowingListExpiredParams\Filter\Paid; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListExpiredParams\Filter\Online; +use OnlyFansAPI\Following\FollowingListExpiredParams\Filter\Paid; /** * @phpstan-type FilterShape = array{ diff --git a/src/Following/FollowingListExpiredParams/Filter/Online.php b/src/Following/FollowingListExpiredParams/Filter/Online.php index ba6759c9..5dc872f3 100644 --- a/src/Following/FollowingListExpiredParams/Filter/Online.php +++ b/src/Following/FollowingListExpiredParams/Filter/Online.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredParams\Filter; +namespace OnlyFansAPI\Following\FollowingListExpiredParams\Filter; /** * Filter by online status (1 for online, 0 for offline, null for all). diff --git a/src/Following/FollowingListExpiredParams/Filter/Paid.php b/src/Following/FollowingListExpiredParams/Filter/Paid.php index 293b0f47..67a3ecce 100644 --- a/src/Following/FollowingListExpiredParams/Filter/Paid.php +++ b/src/Following/FollowingListExpiredParams/Filter/Paid.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredParams\Filter; +namespace OnlyFansAPI\Following\FollowingListExpiredParams\Filter; /** * Filter by paid status (1 for paid, 0 for free, null for all). diff --git a/src/Following/FollowingListExpiredParams/Sort.php b/src/Following/FollowingListExpiredParams/Sort.php new file mode 100644 index 00000000..41c7074c --- /dev/null +++ b/src/Following/FollowingListExpiredParams/Sort.php @@ -0,0 +1,19 @@ +sortDirection is present. + */ +enum Sort: string +{ + case LAST_ACTIVITY = 'last_activity'; + + case EXPIRE_DATE = 'expire_date'; + + case SUBSCRIBE_DATE = 'subscribe_date'; + + case IS_EXPIRED = 'is_expired'; +} diff --git a/src/Following/FollowingListExpiredParams/SortDirection.php b/src/Following/FollowingListExpiredParams/SortDirection.php new file mode 100644 index 00000000..fb7296a0 --- /dev/null +++ b/src/Following/FollowingListExpiredParams/SortDirection.php @@ -0,0 +1,15 @@ +|null diff --git a/src/Following/FollowingListExpiredResponse/Data/List_.php b/src/Following/FollowingListExpiredResponse/Data/List_.php index efda97ab..a899eaca 100644 --- a/src/Following/FollowingListExpiredResponse/Data/List_.php +++ b/src/Following/FollowingListExpiredResponse/Data/List_.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\Data; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\HeaderSize; -use Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\HeaderThumbs; -use Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\ListsState; -use Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\HeaderSize; +use OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\HeaderThumbs; +use OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\ListsState; +use OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Following/FollowingListExpiredResponse/Data/List_/AvatarThumbs.php b/src/Following/FollowingListExpiredResponse/Data/List_/AvatarThumbs.php index ebbc68db..289e9797 100644 --- a/src/Following/FollowingListExpiredResponse/Data/List_/AvatarThumbs.php +++ b/src/Following/FollowingListExpiredResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Following/FollowingListExpiredResponse/Data/List_/HeaderSize.php b/src/Following/FollowingListExpiredResponse/Data/List_/HeaderSize.php index fcfaabbd..c3c92291 100644 --- a/src/Following/FollowingListExpiredResponse/Data/List_/HeaderSize.php +++ b/src/Following/FollowingListExpiredResponse/Data/List_/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Following/FollowingListExpiredResponse/Data/List_/HeaderThumbs.php b/src/Following/FollowingListExpiredResponse/Data/List_/HeaderThumbs.php index 78d1acb7..f37fffce 100644 --- a/src/Following/FollowingListExpiredResponse/Data/List_/HeaderThumbs.php +++ b/src/Following/FollowingListExpiredResponse/Data/List_/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Following/FollowingListExpiredResponse/Data/List_/ListsState.php b/src/Following/FollowingListExpiredResponse/Data/List_/ListsState.php index 3f7bef31..82a79dae 100644 --- a/src/Following/FollowingListExpiredResponse/Data/List_/ListsState.php +++ b/src/Following/FollowingListExpiredResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData.php b/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData.php index 44a39641..3229f552 100644 --- a/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData.php +++ b/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php b/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php index 6d30ccb4..6c06929a 100644 --- a/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php +++ b/src/Following/FollowingListExpiredResponse/Data/List_/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Following/FollowingListExpiredResponse/_Meta.php b/src/Following/FollowingListExpiredResponse/_Meta.php index 5b63db23..d54a8e1e 100644 --- a/src/Following/FollowingListExpiredResponse/_Meta.php +++ b/src/Following/FollowingListExpiredResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Following\FollowingListExpiredResponse\_Meta\_Cache; -use Onlyfansapi\Following\FollowingListExpiredResponse\_Meta\_Credits; -use Onlyfansapi\Following\FollowingListExpiredResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta\_Cache; +use OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta\_Credits; +use OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Following\FollowingListExpiredResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Following\FollowingListExpiredResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Following\FollowingListExpiredResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Following/FollowingListExpiredResponse/_Meta/_Cache.php b/src/Following/FollowingListExpiredResponse/_Meta/_Cache.php index 9c206483..87a2a01b 100644 --- a/src/Following/FollowingListExpiredResponse/_Meta/_Cache.php +++ b/src/Following/FollowingListExpiredResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Following/FollowingListExpiredResponse/_Meta/_Credits.php b/src/Following/FollowingListExpiredResponse/_Meta/_Credits.php index fdddb818..cba26037 100644 --- a/src/Following/FollowingListExpiredResponse/_Meta/_Credits.php +++ b/src/Following/FollowingListExpiredResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Following/FollowingListExpiredResponse/_Meta/_RateLimits.php b/src/Following/FollowingListExpiredResponse/_Meta/_RateLimits.php index d750d772..19c8a2ee 100644 --- a/src/Following/FollowingListExpiredResponse/_Meta/_RateLimits.php +++ b/src/Following/FollowingListExpiredResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse\_Meta; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Following/FollowingListExpiredResponse/_Pagination.php b/src/Following/FollowingListExpiredResponse/_Pagination.php index 41b8f706..3552a508 100644 --- a/src/Following/FollowingListExpiredResponse/_Pagination.php +++ b/src/Following/FollowingListExpiredResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Following\FollowingListExpiredResponse; +namespace OnlyFansAPI\Following\FollowingListExpiredResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Giphy/GiphyListTrendingParams.php b/src/Giphy/GiphyListTrendingParams.php index eda41cd8..d7d60c31 100644 --- a/src/Giphy/GiphyListTrendingParams.php +++ b/src/Giphy/GiphyListTrendingParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy; +namespace OnlyFansAPI\Giphy; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get trending GIFs from the OnlyFans Giphy proxy. Use the returned `id` as the `giphyId` body param when sending a chat or mass message. * - * @see Onlyfansapi\Services\GiphyService::listTrending() + * @see OnlyFansAPI\Services\GiphyService::listTrending() * * @phpstan-type GiphyListTrendingParamsShape = array{ * limit?: int|null, offset?: int|null diff --git a/src/Giphy/GiphyListTrendingResponse.php b/src/Giphy/GiphyListTrendingResponse.php index e68232f8..4ef912bd 100644 --- a/src/Giphy/GiphyListTrendingResponse.php +++ b/src/Giphy/GiphyListTrendingResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy; +namespace OnlyFansAPI\Giphy; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data * * @phpstan-type GiphyListTrendingResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Giphy/GiphyListTrendingResponse/Data.php b/src/Giphy/GiphyListTrendingResponse/Data.php index 28ce7110..58a73647 100644 --- a/src/Giphy/GiphyListTrendingResponse/Data.php +++ b/src/Giphy/GiphyListTrendingResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images; /** - * @phpstan-import-type ImagesShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images + * @phpstan-import-type ImagesShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images * * @phpstan-type DataShape = array{ * id?: string|null, diff --git a/src/Giphy/GiphyListTrendingResponse/Data/Images.php b/src/Giphy/GiphyListTrendingResponse/Data/Images.php index 60242918..d2332369 100644 --- a/src/Giphy/GiphyListTrendingResponse/Data/Images.php +++ b/src/Giphy/GiphyListTrendingResponse/Data/Images.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse\Data; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images\FixedHeight; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images\Original; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images\FixedHeight; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images\Original; /** - * @phpstan-import-type FixedHeightShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images\FixedHeight - * @phpstan-import-type OriginalShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images\Original + * @phpstan-import-type FixedHeightShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images\FixedHeight + * @phpstan-import-type OriginalShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images\Original * * @phpstan-type ImagesShape = array{ * fixedHeight?: null|FixedHeight|FixedHeightShape, diff --git a/src/Giphy/GiphyListTrendingResponse/Data/Images/FixedHeight.php b/src/Giphy/GiphyListTrendingResponse/Data/Images/FixedHeight.php index 7347939e..8f13c168 100644 --- a/src/Giphy/GiphyListTrendingResponse/Data/Images/FixedHeight.php +++ b/src/Giphy/GiphyListTrendingResponse/Data/Images/FixedHeight.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FixedHeightShape = array{ diff --git a/src/Giphy/GiphyListTrendingResponse/Data/Images/Original.php b/src/Giphy/GiphyListTrendingResponse/Data/Images/Original.php index b6c4f256..aaa373d0 100644 --- a/src/Giphy/GiphyListTrendingResponse/Data/Images/Original.php +++ b/src/Giphy/GiphyListTrendingResponse/Data/Images/Original.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse\Data\Images; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse\Data\Images; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type OriginalShape = array{ diff --git a/src/Giphy/GiphyListTrendingResponse/_Meta.php b/src/Giphy/GiphyListTrendingResponse/_Meta.php index 6908f1f5..fd045178 100644 --- a/src/Giphy/GiphyListTrendingResponse/_Meta.php +++ b/src/Giphy/GiphyListTrendingResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta\_Cache; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta\_Credits; -use Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta\_Cache; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta\_Credits; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Giphy/GiphyListTrendingResponse/_Meta/_Cache.php b/src/Giphy/GiphyListTrendingResponse/_Meta/_Cache.php index 0c468fa9..587f13a1 100644 --- a/src/Giphy/GiphyListTrendingResponse/_Meta/_Cache.php +++ b/src/Giphy/GiphyListTrendingResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Giphy/GiphyListTrendingResponse/_Meta/_Credits.php b/src/Giphy/GiphyListTrendingResponse/_Meta/_Credits.php index 5f901e7c..8a25a20a 100644 --- a/src/Giphy/GiphyListTrendingResponse/_Meta/_Credits.php +++ b/src/Giphy/GiphyListTrendingResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Giphy/GiphyListTrendingResponse/_Meta/_RateLimits.php b/src/Giphy/GiphyListTrendingResponse/_Meta/_RateLimits.php index 9c6e7667..e0e67f35 100644 --- a/src/Giphy/GiphyListTrendingResponse/_Meta/_RateLimits.php +++ b/src/Giphy/GiphyListTrendingResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphyListTrendingResponse\_Meta; +namespace OnlyFansAPI\Giphy\GiphyListTrendingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Giphy/GiphySearchParams.php b/src/Giphy/GiphySearchParams.php index 429d3ed5..1ce8274e 100644 --- a/src/Giphy/GiphySearchParams.php +++ b/src/Giphy/GiphySearchParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy; +namespace OnlyFansAPI\Giphy; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Search GIFs from the OnlyFans Giphy proxy. Use the returned `id` as the `giphyId` body param when sending a chat or mass message. * - * @see Onlyfansapi\Services\GiphyService::search() + * @see OnlyFansAPI\Services\GiphyService::search() * * @phpstan-type GiphySearchParamsShape = array{ * q: string, limit?: int|null, offset?: int|null diff --git a/src/Giphy/GiphySearchResponse.php b/src/Giphy/GiphySearchResponse.php index 13264a9a..abd8daaa 100644 --- a/src/Giphy/GiphySearchResponse.php +++ b/src/Giphy/GiphySearchResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy; +namespace OnlyFansAPI\Giphy; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphySearchResponse\_Meta; -use Onlyfansapi\Giphy\GiphySearchResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphySearchResponse\_Meta; +use OnlyFansAPI\Giphy\GiphySearchResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Giphy\GiphySearchResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Giphy\GiphySearchResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Giphy\GiphySearchResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Giphy\GiphySearchResponse\Data * * @phpstan-type GiphySearchResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Giphy/GiphySearchResponse/Data.php b/src/Giphy/GiphySearchResponse/Data.php index f3047f34..dae09e27 100644 --- a/src/Giphy/GiphySearchResponse/Data.php +++ b/src/Giphy/GiphySearchResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse; +namespace OnlyFansAPI\Giphy\GiphySearchResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphySearchResponse\Data\Images; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images; /** - * @phpstan-import-type ImagesShape from \Onlyfansapi\Giphy\GiphySearchResponse\Data\Images + * @phpstan-import-type ImagesShape from \OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images * * @phpstan-type DataShape = array{ * id?: string|null, diff --git a/src/Giphy/GiphySearchResponse/Data/Images.php b/src/Giphy/GiphySearchResponse/Data/Images.php index 118ff88c..1bac8e9b 100644 --- a/src/Giphy/GiphySearchResponse/Data/Images.php +++ b/src/Giphy/GiphySearchResponse/Data/Images.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse\Data; +namespace OnlyFansAPI\Giphy\GiphySearchResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphySearchResponse\Data\Images\FixedHeight; -use Onlyfansapi\Giphy\GiphySearchResponse\Data\Images\Original; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images\FixedHeight; +use OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images\Original; /** - * @phpstan-import-type FixedHeightShape from \Onlyfansapi\Giphy\GiphySearchResponse\Data\Images\FixedHeight - * @phpstan-import-type OriginalShape from \Onlyfansapi\Giphy\GiphySearchResponse\Data\Images\Original + * @phpstan-import-type FixedHeightShape from \OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images\FixedHeight + * @phpstan-import-type OriginalShape from \OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images\Original * * @phpstan-type ImagesShape = array{ * fixedHeight?: null|FixedHeight|FixedHeightShape, diff --git a/src/Giphy/GiphySearchResponse/Data/Images/FixedHeight.php b/src/Giphy/GiphySearchResponse/Data/Images/FixedHeight.php index 426f75db..58e124af 100644 --- a/src/Giphy/GiphySearchResponse/Data/Images/FixedHeight.php +++ b/src/Giphy/GiphySearchResponse/Data/Images/FixedHeight.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse\Data\Images; +namespace OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FixedHeightShape = array{ diff --git a/src/Giphy/GiphySearchResponse/Data/Images/Original.php b/src/Giphy/GiphySearchResponse/Data/Images/Original.php index b0a36d32..1e0a4b9a 100644 --- a/src/Giphy/GiphySearchResponse/Data/Images/Original.php +++ b/src/Giphy/GiphySearchResponse/Data/Images/Original.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse\Data\Images; +namespace OnlyFansAPI\Giphy\GiphySearchResponse\Data\Images; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type OriginalShape = array{ diff --git a/src/Giphy/GiphySearchResponse/_Meta.php b/src/Giphy/GiphySearchResponse/_Meta.php index 195aa5d5..97798da2 100644 --- a/src/Giphy/GiphySearchResponse/_Meta.php +++ b/src/Giphy/GiphySearchResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse; +namespace OnlyFansAPI\Giphy\GiphySearchResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Giphy\GiphySearchResponse\_Meta\_Cache; -use Onlyfansapi\Giphy\GiphySearchResponse\_Meta\_Credits; -use Onlyfansapi\Giphy\GiphySearchResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Giphy\GiphySearchResponse\_Meta\_Cache; +use OnlyFansAPI\Giphy\GiphySearchResponse\_Meta\_Credits; +use OnlyFansAPI\Giphy\GiphySearchResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Giphy\GiphySearchResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Giphy\GiphySearchResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Giphy\GiphySearchResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Giphy\GiphySearchResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Giphy\GiphySearchResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Giphy\GiphySearchResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Giphy/GiphySearchResponse/_Meta/_Cache.php b/src/Giphy/GiphySearchResponse/_Meta/_Cache.php index 323ab293..233354b1 100644 --- a/src/Giphy/GiphySearchResponse/_Meta/_Cache.php +++ b/src/Giphy/GiphySearchResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse\_Meta; +namespace OnlyFansAPI\Giphy\GiphySearchResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Giphy/GiphySearchResponse/_Meta/_Credits.php b/src/Giphy/GiphySearchResponse/_Meta/_Credits.php index e9ce52cf..b85afb1d 100644 --- a/src/Giphy/GiphySearchResponse/_Meta/_Credits.php +++ b/src/Giphy/GiphySearchResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse\_Meta; +namespace OnlyFansAPI\Giphy\GiphySearchResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Giphy/GiphySearchResponse/_Meta/_RateLimits.php b/src/Giphy/GiphySearchResponse/_Meta/_RateLimits.php index 0dd37339..381deeb2 100644 --- a/src/Giphy/GiphySearchResponse/_Meta/_RateLimits.php +++ b/src/Giphy/GiphySearchResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Giphy\GiphySearchResponse\_Meta; +namespace OnlyFansAPI\Giphy\GiphySearchResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/LinkTags/LinkTagListParams.php b/src/LinkTags/LinkTagListParams.php index 7c204913..febd479f 100644 --- a/src/LinkTags/LinkTagListParams.php +++ b/src/LinkTags/LinkTagListParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags; +namespace OnlyFansAPI\LinkTags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\LinkTags\LinkTagListParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\LinkTags\LinkTagListParams\Type; /** - * Get all existing tags that have been used on free trial links and/or tracking links for this account. This is a free endpoint. + * Get all existing tags that have been used on free trial links, tracking links, and/or Smart Links for this account. This is a free endpoint. * - * @see Onlyfansapi\Services\LinkTagsService::list() + * @see OnlyFansAPI\Services\LinkTagsService::list() * * @phpstan-type LinkTagListParamsShape = array{type?: null|Type|value-of} */ @@ -24,7 +24,7 @@ final class LinkTagListParams implements BaseModel use SdkParams; /** - * Filter by link type. If not provided, returns tags for both types. + * Filter by link type. If not provided, returns tags for all types. * * @var value-of|null $type */ @@ -53,7 +53,7 @@ public static function with(Type|string|null $type = null): self } /** - * Filter by link type. If not provided, returns tags for both types. + * Filter by link type. If not provided, returns tags for all types. * * @param Type|value-of $type */ diff --git a/src/LinkTags/LinkTagListParams/Type.php b/src/LinkTags/LinkTagListParams/Type.php index 913b3040..abca18ac 100644 --- a/src/LinkTags/LinkTagListParams/Type.php +++ b/src/LinkTags/LinkTagListParams/Type.php @@ -2,14 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags\LinkTagListParams; +namespace OnlyFansAPI\LinkTags\LinkTagListParams; /** - * Filter by link type. If not provided, returns tags for both types. + * Filter by link type. If not provided, returns tags for all types. */ enum Type: string { case TRIAL_LINKS = 'trial_links'; case TRACKING_LINKS = 'tracking_links'; + + case SMART_LINKS = 'smart_links'; } diff --git a/src/LinkTags/LinkTagListResponse.php b/src/LinkTags/LinkTagListResponse.php index ab504a7c..2a763d6d 100644 --- a/src/LinkTags/LinkTagListResponse.php +++ b/src/LinkTags/LinkTagListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags; +namespace OnlyFansAPI\LinkTags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\LinkTags\LinkTagListResponse\_Meta; -use Onlyfansapi\LinkTags\LinkTagListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta; +use OnlyFansAPI\LinkTags\LinkTagListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\LinkTags\LinkTagListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\LinkTags\LinkTagListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\LinkTags\LinkTagListResponse\Data * * @phpstan-type LinkTagListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/LinkTags/LinkTagListResponse/Data.php b/src/LinkTags/LinkTagListResponse/Data.php index c52b0075..423354b5 100644 --- a/src/LinkTags/LinkTagListResponse/Data.php +++ b/src/LinkTags/LinkTagListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags\LinkTagListResponse; +namespace OnlyFansAPI\LinkTags\LinkTagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/LinkTags/LinkTagListResponse/_Meta.php b/src/LinkTags/LinkTagListResponse/_Meta.php index bab27ef4..ff16b8d6 100644 --- a/src/LinkTags/LinkTagListResponse/_Meta.php +++ b/src/LinkTags/LinkTagListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags\LinkTagListResponse; +namespace OnlyFansAPI\LinkTags\LinkTagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\LinkTags\LinkTagListResponse\_Meta\_Cache; -use Onlyfansapi\LinkTags\LinkTagListResponse\_Meta\_Credits; -use Onlyfansapi\LinkTags\LinkTagListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta\_Cache; +use OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta\_Credits; +use OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\LinkTags\LinkTagListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\LinkTags\LinkTagListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\LinkTags\LinkTagListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/LinkTags/LinkTagListResponse/_Meta/_Cache.php b/src/LinkTags/LinkTagListResponse/_Meta/_Cache.php index 0495a9ec..603fff0a 100644 --- a/src/LinkTags/LinkTagListResponse/_Meta/_Cache.php +++ b/src/LinkTags/LinkTagListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags\LinkTagListResponse\_Meta; +namespace OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/LinkTags/LinkTagListResponse/_Meta/_Credits.php b/src/LinkTags/LinkTagListResponse/_Meta/_Credits.php index c5f1c354..17c0e1a1 100644 --- a/src/LinkTags/LinkTagListResponse/_Meta/_Credits.php +++ b/src/LinkTags/LinkTagListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags\LinkTagListResponse\_Meta; +namespace OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/LinkTags/LinkTagListResponse/_Meta/_RateLimits.php b/src/LinkTags/LinkTagListResponse/_Meta/_RateLimits.php index 9b979784..e87e74f5 100644 --- a/src/LinkTags/LinkTagListResponse/_Meta/_RateLimits.php +++ b/src/LinkTags/LinkTagListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\LinkTags\LinkTagListResponse\_Meta; +namespace OnlyFansAPI\LinkTags\LinkTagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/MassMessaging/MassMessagingDeleteParams.php b/src/MassMessaging/MassMessagingDeleteParams.php index a4469c28..feec7c4b 100644 --- a/src/MassMessaging/MassMessagingDeleteParams.php +++ b/src/MassMessaging/MassMessagingDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unsend a recently sent mass message, or delete a scheduled/saved message. When unsending, purchased content will continue to be able to viewable. * - * @see Onlyfansapi\Services\MassMessagingService::delete() + * @see OnlyFansAPI\Services\MassMessagingService::delete() * * @phpstan-type MassMessagingDeleteParamsShape = array{account: string} */ diff --git a/src/MassMessaging/MassMessagingDeleteResponse.php b/src/MassMessaging/MassMessagingDeleteResponse.php index 4935f141..3375e514 100644 --- a/src/MassMessaging/MassMessagingDeleteResponse.php +++ b/src/MassMessaging/MassMessagingDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\Data * * @phpstan-type MassMessagingDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/MassMessaging/MassMessagingDeleteResponse/Data.php b/src/MassMessaging/MassMessagingDeleteResponse/Data.php index c0b26e61..381e3a81 100644 --- a/src/MassMessaging/MassMessagingDeleteResponse/Data.php +++ b/src/MassMessaging/MassMessagingDeleteResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingDeleteResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\Data\Queue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\Data\Queue; /** - * @phpstan-import-type QueueShape from \Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\Data\Queue + * @phpstan-import-type QueueShape from \OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\Data\Queue * * @phpstan-type DataShape = array{ * queue?: null|Queue|QueueShape, success?: bool|null diff --git a/src/MassMessaging/MassMessagingDeleteResponse/Data/Queue.php b/src/MassMessaging/MassMessagingDeleteResponse/Data/Queue.php index 94a253be..455a8ab4 100644 --- a/src/MassMessaging/MassMessagingDeleteResponse/Data/Queue.php +++ b/src/MassMessaging/MassMessagingDeleteResponse/Data/Queue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\Data; +namespace OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type QueueShape = array{ diff --git a/src/MassMessaging/MassMessagingDeleteResponse/_Meta.php b/src/MassMessaging/MassMessagingDeleteResponse/_Meta.php index 91d8f29c..a03a5972 100644 --- a/src/MassMessaging/MassMessagingDeleteResponse/_Meta.php +++ b/src/MassMessaging/MassMessagingDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingDeleteResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta\_Cache; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta\_Credits; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Cache.php b/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Cache.php index 93721410..fd949932 100644 --- a/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Cache.php +++ b/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Credits.php b/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Credits.php index bd15f306..ad5c4c89 100644 --- a/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Credits.php +++ b/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_RateLimits.php b/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_RateLimits.php index d28b45b8..a86277ee 100644 --- a/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_RateLimits.php +++ b/src/MassMessaging/MassMessagingDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingDeleteResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse.php b/src/MassMessaging/MassMessagingGetOverviewResponse.php index e819d2ee..a31a46d7 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data * * @phpstan-type MassMessagingGetOverviewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data.php index fd0336ec..3395f03f 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item; /** - * @phpstan-import-type ItemShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item + * @phpstan-import-type ItemShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item * * @phpstan-type DataShape = array{ * hasMore?: bool|null, items?: list|null diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item.php index 9ee3ac28..e32043a7 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media * * @phpstan-type ItemShape = array{ * id?: int|null, diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media.php index d9fc9406..cdc0ca6c 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files.php index 263fd446..39680514 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Full; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Preview; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\SquarePreview; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Full; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Preview; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\SquarePreview; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Full.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Full.php index cd14aa98..cf18d442 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Full.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Preview.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Preview.php index 4e6f7a47..a5afbbe0 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Preview.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Preview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PreviewShape = array{ diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/SquarePreview.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/SquarePreview.php index fb36fd6d..343d4e90 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/SquarePreview.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/SquarePreview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SquarePreviewShape = array{ diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Thumb.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Thumb.php index 438d00a7..198563e4 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Thumb.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/VideoSources.php b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/VideoSources.php index 83395812..2f18acf4 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/VideoSources.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/Data/Item/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\Data\Item\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta.php b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta.php index b6999008..ce66779b 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Cache; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Credits; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Cache; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Credits; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Cache.php b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Cache.php index 7e765ec4..99551f0a 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Cache.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Credits.php b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Credits.php index d959fda0..73e9fd7f 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Credits.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_RateLimits.php b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_RateLimits.php index a8700a62..94b89da8 100644 --- a/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_RateLimits.php +++ b/src/MassMessaging/MassMessagingGetOverviewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/MassMessaging/MassMessagingGetResponse.php b/src/MassMessaging/MassMessagingGetResponse.php index bdf8770d..5b457690 100644 --- a/src/MassMessaging/MassMessagingGetResponse.php +++ b/src/MassMessaging/MassMessagingGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\MassMessaging\MassMessagingGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\MassMessaging\MassMessagingGetResponse\Data * * @phpstan-type MassMessagingGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/MassMessaging/MassMessagingGetResponse/Data.php b/src/MassMessaging/MassMessagingGetResponse/Data.php index 100607f8..3e85d68e 100644 --- a/src/MassMessaging/MassMessagingGetResponse/Data.php +++ b/src/MassMessaging/MassMessagingGetResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse\Data\Queue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse\Data\Queue; /** - * @phpstan-import-type QueueShape from \Onlyfansapi\MassMessaging\MassMessagingGetResponse\Data\Queue + * @phpstan-import-type QueueShape from \OnlyFansAPI\MassMessaging\MassMessagingGetResponse\Data\Queue * * @phpstan-type DataShape = array{ * queue?: null|Queue|QueueShape, success?: bool|null diff --git a/src/MassMessaging/MassMessagingGetResponse/Data/Queue.php b/src/MassMessaging/MassMessagingGetResponse/Data/Queue.php index 49cc3a99..3bcc0891 100644 --- a/src/MassMessaging/MassMessagingGetResponse/Data/Queue.php +++ b/src/MassMessaging/MassMessagingGetResponse/Data/Queue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetResponse\Data; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type QueueShape = array{ diff --git a/src/MassMessaging/MassMessagingGetResponse/_Meta.php b/src/MassMessaging/MassMessagingGetResponse/_Meta.php index 0210da28..1aec0503 100644 --- a/src/MassMessaging/MassMessagingGetResponse/_Meta.php +++ b/src/MassMessaging/MassMessagingGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta\_Cache; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta\_Credits; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta\_Cache; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta\_Credits; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/MassMessaging/MassMessagingGetResponse/_Meta/_Cache.php b/src/MassMessaging/MassMessagingGetResponse/_Meta/_Cache.php index c00999de..219119af 100644 --- a/src/MassMessaging/MassMessagingGetResponse/_Meta/_Cache.php +++ b/src/MassMessaging/MassMessagingGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/MassMessaging/MassMessagingGetResponse/_Meta/_Credits.php b/src/MassMessaging/MassMessagingGetResponse/_Meta/_Credits.php index 9856da77..2bfc5d23 100644 --- a/src/MassMessaging/MassMessagingGetResponse/_Meta/_Credits.php +++ b/src/MassMessaging/MassMessagingGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/MassMessaging/MassMessagingGetResponse/_Meta/_RateLimits.php b/src/MassMessaging/MassMessagingGetResponse/_Meta/_RateLimits.php index 70d50d28..898f304e 100644 --- a/src/MassMessaging/MassMessagingGetResponse/_Meta/_RateLimits.php +++ b/src/MassMessaging/MassMessagingGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingGetResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/MassMessaging/MassMessagingListResponse.php b/src/MassMessaging/MassMessagingListResponse.php index 3ab203b2..592da216 100644 --- a/src/MassMessaging/MassMessagingListResponse.php +++ b/src/MassMessaging/MassMessagingListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta; -use Onlyfansapi\MassMessaging\MassMessagingListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\MassMessaging\MassMessagingListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\MassMessaging\MassMessagingListResponse\Data * * @phpstan-type MassMessagingListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/MassMessaging/MassMessagingListResponse/Data.php b/src/MassMessaging/MassMessagingListResponse/Data.php index 447ff5a8..67bfde45 100644 --- a/src/MassMessaging/MassMessagingListResponse/Data.php +++ b/src/MassMessaging/MassMessagingListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingListResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/MassMessaging/MassMessagingListResponse/_Meta.php b/src/MassMessaging/MassMessagingListResponse/_Meta.php index 5d751c52..488d8381 100644 --- a/src/MassMessaging/MassMessagingListResponse/_Meta.php +++ b/src/MassMessaging/MassMessagingListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingListResponse; +namespace OnlyFansAPI\MassMessaging\MassMessagingListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta\_Cache; -use Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta\_Credits; -use Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta\_Cache; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta\_Credits; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/MassMessaging/MassMessagingListResponse/_Meta/_Cache.php b/src/MassMessaging/MassMessagingListResponse/_Meta/_Cache.php index 691b23f3..404c236e 100644 --- a/src/MassMessaging/MassMessagingListResponse/_Meta/_Cache.php +++ b/src/MassMessaging/MassMessagingListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/MassMessaging/MassMessagingListResponse/_Meta/_Credits.php b/src/MassMessaging/MassMessagingListResponse/_Meta/_Credits.php index d252c19e..6f9a34ad 100644 --- a/src/MassMessaging/MassMessagingListResponse/_Meta/_Credits.php +++ b/src/MassMessaging/MassMessagingListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/MassMessaging/MassMessagingListResponse/_Meta/_RateLimits.php b/src/MassMessaging/MassMessagingListResponse/_Meta/_RateLimits.php index b232b2a2..0b21ceeb 100644 --- a/src/MassMessaging/MassMessagingListResponse/_Meta/_RateLimits.php +++ b/src/MassMessaging/MassMessagingListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging\MassMessagingListResponse\_Meta; +namespace OnlyFansAPI\MassMessaging\MassMessagingListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/MassMessaging/MassMessagingRetrieveOverviewParams.php b/src/MassMessaging/MassMessagingRetrieveOverviewParams.php index a3a24474..4a0e69fe 100644 --- a/src/MassMessaging/MassMessagingRetrieveOverviewParams.php +++ b/src/MassMessaging/MassMessagingRetrieveOverviewParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get an overview of mass messages, showing the send count and view count. * - * @see Onlyfansapi\Services\MassMessagingService::retrieveOverview() + * @see OnlyFansAPI\Services\MassMessagingService::retrieveOverview() * * @phpstan-type MassMessagingRetrieveOverviewParamsShape = array{ * endDate?: string|null, @@ -28,7 +28,7 @@ final class MassMessagingRetrieveOverviewParams implements BaseModel use SdkParams; /** - * The latest mass message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * The latest mass message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. */ #[Optional] public ?string $endDate; @@ -78,7 +78,7 @@ public static function with( } /** - * The latest mass message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * The latest mass message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. */ public function withEndDate(string $endDate): self { diff --git a/src/MassMessaging/MassMessagingRetrieveParams.php b/src/MassMessaging/MassMessagingRetrieveParams.php index 60c822a8..23ea2131 100644 --- a/src/MassMessaging/MassMessagingRetrieveParams.php +++ b/src/MassMessaging/MassMessagingRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * Get the content of a mass message. + * Get the content and settings of a mass message, including a message scheduled for later. * - * @see Onlyfansapi\Services\MassMessagingService::retrieve() + * @see OnlyFansAPI\Services\MassMessagingService::retrieve() * * @phpstan-type MassMessagingRetrieveParamsShape = array{account: string} */ diff --git a/src/MassMessaging/MassMessagingSendParams.php b/src/MassMessaging/MassMessagingSendParams.php index e948cfe0..2857a5b8 100644 --- a/src/MassMessaging/MassMessagingSendParams.php +++ b/src/MassMessaging/MassMessagingSendParams.php @@ -2,27 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\MassMessaging; +namespace OnlyFansAPI\MassMessaging; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\MassMessaging\MassMessagingSendParams\BlockBannedWords; /** * Send a mass message to lists and/or users. You may use both the `userLists` and `userIds` parameters to send the same message to both lists and individual users. * - * @see Onlyfansapi\Services\MassMessagingService::send() + * @see OnlyFansAPI\Services\MassMessagingService::send() * * @phpstan-type MassMessagingSendParamsShape = array{ * text: string, + * blockBannedWords?: null|BlockBannedWords|value-of, * excludedLists?: list|null, * giphyID?: string|null, * lockedText?: bool|null, * mediaFiles?: list|null, * previews?: list|null, - * price?: int|null, + * price?: float|null, * rfGuest?: string|null, * rfPartner?: string|null, * rfTag?: string|null, @@ -44,6 +46,14 @@ final class MassMessagingSendParams implements BaseModel #[Required] public string $text; + /** + * Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @var value-of|null $blockBannedWords + */ + #[Optional(enum: BlockBannedWords::class)] + public ?string $blockBannedWords; + /** * Array of user list IDs that the mass message will NOT be sent to. * @@ -81,10 +91,10 @@ final class MassMessagingSendParams implements BaseModel public ?array $previews; /** - * Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required. + * Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required. */ #[Optional] - public ?int $price; + public ?float $price; /** * Array of OnlyFans Release Form Guest IDs to tag in your mass message. @@ -156,6 +166,7 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param BlockBannedWords|value-of|null $blockBannedWords * @param list|null $excludedLists * @param list|null $mediaFiles * @param list|null $previews @@ -164,12 +175,13 @@ public function __construct() */ public static function with( string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?array $excludedLists = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?string $rfGuest = null, ?string $rfPartner = null, ?string $rfTag = null, @@ -182,6 +194,7 @@ public static function with( $self['text'] = $text; + null !== $blockBannedWords && $self['blockBannedWords'] = $blockBannedWords; null !== $excludedLists && $self['excludedLists'] = $excludedLists; null !== $giphyID && $self['giphyID'] = $giphyID; null !== $lockedText && $self['lockedText'] = $lockedText; @@ -210,6 +223,20 @@ public function withText(string $text): self return $self; } + /** + * Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @param BlockBannedWords|value-of $blockBannedWords + */ + public function withBlockBannedWords( + BlockBannedWords|string $blockBannedWords + ): self { + $self = clone $this; + $self['blockBannedWords'] = $blockBannedWords; + + return $self; + } + /** * Array of user list IDs that the mass message will NOT be sent to. * @@ -272,9 +299,9 @@ public function withPreviews(array $previews): self } /** - * Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required. + * Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required. */ - public function withPrice(int $price): self + public function withPrice(float $price): self { $self = clone $this; $self['price'] = $price; diff --git a/src/MassMessaging/MassMessagingSendParams/BlockBannedWords.php b/src/MassMessaging/MassMessagingSendParams/BlockBannedWords.php new file mode 100644 index 00000000..a11e7eb3 --- /dev/null +++ b/src/MassMessaging/MassMessagingSendParams/BlockBannedWords.php @@ -0,0 +1,17 @@ +, * giphyID?: string|null, * lockedText?: bool|null, * mediaFiles?: list|null, * previews?: list|null, - * price?: int|null, + * price?: float|null, * scheduledDate?: string|null, * userIDs?: list|null, * userLists?: list|null, @@ -43,6 +45,14 @@ final class MassMessagingUpdateParams implements BaseModel #[Required] public string $text; + /** + * Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @var value-of|null $blockBannedWords + */ + #[Optional(enum: BlockBannedWords::class)] + public ?string $blockBannedWords; + /** * The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). */ @@ -72,10 +82,10 @@ final class MassMessagingUpdateParams implements BaseModel public ?array $previews; /** - * Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required. + * Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required. */ #[Optional] - public ?int $price; + public ?float $price; /** * Schedule the chat message in the future (UTC timezone). @@ -123,6 +133,7 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param BlockBannedWords|value-of|null $blockBannedWords * @param list|null $mediaFiles * @param list|null $previews * @param list|null $userIDs @@ -131,11 +142,12 @@ public function __construct() public static function with( string $account, string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?string $scheduledDate = null, ?array $userIDs = null, ?array $userLists = null, @@ -145,6 +157,7 @@ public static function with( $self['account'] = $account; $self['text'] = $text; + null !== $blockBannedWords && $self['blockBannedWords'] = $blockBannedWords; null !== $giphyID && $self['giphyID'] = $giphyID; null !== $lockedText && $self['lockedText'] = $lockedText; null !== $mediaFiles && $self['mediaFiles'] = $mediaFiles; @@ -176,6 +189,20 @@ public function withText(string $text): self return $self; } + /** + * Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @param BlockBannedWords|value-of $blockBannedWords + */ + public function withBlockBannedWords( + BlockBannedWords|string $blockBannedWords + ): self { + $self = clone $this; + $self['blockBannedWords'] = $blockBannedWords; + + return $self; + } + /** * The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). */ @@ -225,9 +252,9 @@ public function withPreviews(array $previews): self } /** - * Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required. + * Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required. */ - public function withPrice(int $price): self + public function withPrice(float $price): self { $self = clone $this; $self['price'] = $price; diff --git a/src/MassMessaging/MassMessagingUpdateParams/BlockBannedWords.php b/src/MassMessaging/MassMessagingUpdateParams/BlockBannedWords.php new file mode 100644 index 00000000..94860c98 --- /dev/null +++ b/src/MassMessaging/MassMessagingUpdateParams/BlockBannedWords.php @@ -0,0 +1,17 @@ + */ - use SdkModel; - - #[Optional] - public ?_Meta $_meta; - - #[Optional] - public ?Data $data; - - public function __construct() - { - $this->initialize(); - } + use SdkUnion; /** - * Construct an instance from the required parameters. - * - * You must use named parameters to construct any parameters with a default value. - * - * @param _Meta|_MetaShape|null $_meta - * @param Data|DataShape|null $data + * @return list|array */ - public static function with( - _Meta|array|null $_meta = null, - Data|array|null $data = null - ): self { - $self = new self; - - null !== $_meta && $self['_meta'] = $_meta; - null !== $data && $self['data'] = $data; - - return $self; - } - - /** - * @param _Meta|_MetaShape $_meta - */ - public function withMeta(_Meta|array $_meta): self + public static function variants(): array { - $self = clone $this; - $self['_meta'] = $_meta; - - return $self; - } - - /** - * @param Data|DataShape $data - */ - public function withData(Data|array $data): self - { - $self = clone $this; - $self['data'] = $data; - - return $self; + return [UnionMember0::class, UnionMember1::class]; } } diff --git a/src/Messages/MessageAttachTagsResponse.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0.php similarity index 64% rename from src/Messages/MessageAttachTagsResponse.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0.php index acedb080..f3efb8e0 100644 --- a/src/Messages/MessageAttachTagsResponse.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0.php @@ -2,25 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Messages; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta; -use Onlyfansapi\Messages\MessageAttachTagsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Messages\MessageAttachTagsResponse\Data + * Success. * - * @phpstan-type MessageAttachTagsResponseShape = array{ + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data + * + * @phpstan-type UnionMember0Shape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape * } */ -final class MessageAttachTagsResponse implements BaseModel +final class UnionMember0 implements BaseModel { - /** @use SdkModel */ + /** @use SdkModel */ use SdkModel; #[Optional] diff --git a/src/Media/Vault/Lists/ListListResponse/Data.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data.php similarity index 82% rename from src/Media/Vault/Lists/ListListResponse/Data.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/Data.php index 4085801c..958c12a9 100644 --- a/src/Media/Vault/Lists/ListListResponse/Data.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\ListListResponse\Data\All; -use Onlyfansapi\Media\Vault\Lists\ListListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data\All; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data\List_; /** - * @phpstan-import-type AllShape from \Onlyfansapi\Media\Vault\Lists\ListListResponse\Data\All - * @phpstan-import-type ListShape from \Onlyfansapi\Media\Vault\Lists\ListListResponse\Data\List_ + * @phpstan-import-type AllShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data\All + * @phpstan-import-type ListShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data\List_ * * @phpstan-type DataShape = array{ * all?: null|All|AllShape, diff --git a/src/Media/Vault/Lists/ListListResponse/Data/All.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/All.php similarity index 85% rename from src/Media/Vault/Lists/ListListResponse/Data/All.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/All.php index d7ffc441..a133282c 100644 --- a/src/Media/Vault/Lists/ListListResponse/Data/All.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/All.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse\Data; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\ListListResponse\Data\All\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data\All\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Media\Vault\Lists\ListListResponse\Data\All\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data\All\Media * * @phpstan-type AllShape = array{ * audiosCount?: int|null, diff --git a/src/Media/Vault/Lists/ListListResponse/Data/All/Media.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/All/Media.php similarity index 84% rename from src/Media/Vault/Lists/ListListResponse/Data/All/Media.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/All/Media.php index 76fe3f6f..a1ce09f9 100644 --- a/src/Media/Vault/Lists/ListListResponse/Data/All/Media.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/All/Media.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse\Data\All; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data\All; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type MediaShape = array{type?: string|null, url?: string|null} diff --git a/src/Media/Vault/Lists/ListListResponse/Data/List_.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/List_.php similarity index 95% rename from src/Media/Vault/Lists/ListListResponse/Data/List_.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/List_.php index 5de44004..365507cc 100644 --- a/src/Media/Vault/Lists/ListListResponse/Data/List_.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse\Data; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{ diff --git a/src/UserLists/Users/UserAddResponse/_Meta.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta.php similarity index 71% rename from src/UserLists/Users/UserAddResponse/_Meta.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta.php index 4b8ac363..4370c39b 100644 --- a/src/UserLists/Users/UserAddResponse/_Meta.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserAddResponse; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserAddResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\Users\UserAddResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\Users\UserAddResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\Users\UserAddResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\Users\UserAddResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\Users\UserAddResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Messages/MessageAttachTagsResponse/_Meta/_Cache.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_Cache.php similarity index 85% rename from src/Messages/MessageAttachTagsResponse/_Meta/_Cache.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_Cache.php index bcbc8bee..ebef386e 100644 --- a/src/Messages/MessageAttachTagsResponse/_Meta/_Cache.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/Lists/ListListResponse/_Meta/_Credits.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_Credits.php similarity index 87% rename from src/Media/Vault/Lists/ListListResponse/_Meta/_Credits.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_Credits.php index 568fe7c9..79fdbfff 100644 --- a/src/Media/Vault/Lists/ListListResponse/_Meta/_Credits.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/Lists/ListListResponse/_Meta/_RateLimits.php b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_RateLimits.php similarity index 91% rename from src/Media/Vault/Lists/ListListResponse/_Meta/_RateLimits.php rename to src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_RateLimits.php index cdc67a25..e4cb305c 100644 --- a/src/Media/Vault/Lists/ListListResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember0/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1.php new file mode 100644 index 00000000..9203a863 --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1.php @@ -0,0 +1,80 @@ + */ + use SdkModel; + + #[Optional] + public ?_Meta $_meta; + + #[Optional] + public ?Data $data; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param _Meta|_MetaShape|null $_meta + * @param Data|DataShape|null $data + */ + public static function with( + _Meta|array|null $_meta = null, + Data|array|null $data = null + ): self { + $self = new self; + + null !== $_meta && $self['_meta'] = $_meta; + null !== $data && $self['data'] = $data; + + return $self; + } + + /** + * @param _Meta|_MetaShape $_meta + */ + public function withMeta(_Meta|array $_meta): self + { + $self = clone $this; + $self['_meta'] = $_meta; + + return $self; + } + + /** + * @param Data|DataShape $data + */ + public function withData(Data|array $data): self + { + $self = clone $this; + $self['data'] = $data; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data.php new file mode 100644 index 00000000..5cf175ac --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data.php @@ -0,0 +1,136 @@ +|null, + * order?: string|null, + * sort?: string|null, + * } + */ +final class Data implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + #[Optional] + public ?All $all; + + #[Optional] + public ?bool $canCreateVaultLists; + + #[Optional] + public ?bool $hasMore; + + /** @var list|null $list */ + #[Optional(list: List_::class)] + public ?array $list; + + #[Optional] + public ?string $order; + + #[Optional] + public ?string $sort; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param All|AllShape|null $all + * @param list|null $list + */ + public static function with( + All|array|null $all = null, + ?bool $canCreateVaultLists = null, + ?bool $hasMore = null, + ?array $list = null, + ?string $order = null, + ?string $sort = null, + ): self { + $self = new self; + + null !== $all && $self['all'] = $all; + null !== $canCreateVaultLists && $self['canCreateVaultLists'] = $canCreateVaultLists; + null !== $hasMore && $self['hasMore'] = $hasMore; + null !== $list && $self['list'] = $list; + null !== $order && $self['order'] = $order; + null !== $sort && $self['sort'] = $sort; + + return $self; + } + + /** + * @param All|AllShape $all + */ + public function withAll(All|array $all): self + { + $self = clone $this; + $self['all'] = $all; + + return $self; + } + + public function withCanCreateVaultLists(bool $canCreateVaultLists): self + { + $self = clone $this; + $self['canCreateVaultLists'] = $canCreateVaultLists; + + return $self; + } + + public function withHasMore(bool $hasMore): self + { + $self = clone $this; + $self['hasMore'] = $hasMore; + + return $self; + } + + /** + * @param list $list + */ + public function withList(array $list): self + { + $self = clone $this; + $self['list'] = $list; + + return $self; + } + + public function withOrder(string $order): self + { + $self = clone $this; + $self['order'] = $order; + + return $self; + } + + public function withSort(string $sort): self + { + $self = clone $this; + $self['sort'] = $sort; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data/All.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data/All.php new file mode 100644 index 00000000..3c94f3c1 --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data/All.php @@ -0,0 +1,48 @@ + */ + use SdkModel; + + #[Optional] + public ?int $mediaCount; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with(?int $mediaCount = null): self + { + $self = new self; + + null !== $mediaCount && $self['mediaCount'] = $mediaCount; + + return $self; + } + + public function withMediaCount(int $mediaCount): self + { + $self = clone $this; + $self['mediaCount'] = $mediaCount; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data/List_.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data/List_.php new file mode 100644 index 00000000..a6342943 --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1/Data/List_.php @@ -0,0 +1,107 @@ + */ + use SdkModel; + + #[Optional] + public ?int $id; + + #[Optional] + public ?bool $canUpdate; + + #[Optional] + public ?int $mediaCount; + + #[Optional] + public ?string $name; + + #[Optional] + public ?string $type; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?int $id = null, + ?bool $canUpdate = null, + ?int $mediaCount = null, + ?string $name = null, + ?string $type = null, + ): self { + $self = new self; + + null !== $id && $self['id'] = $id; + null !== $canUpdate && $self['canUpdate'] = $canUpdate; + null !== $mediaCount && $self['mediaCount'] = $mediaCount; + null !== $name && $self['name'] = $name; + null !== $type && $self['type'] = $type; + + return $self; + } + + public function withID(int $id): self + { + $self = clone $this; + $self['id'] = $id; + + return $self; + } + + public function withCanUpdate(bool $canUpdate): self + { + $self = clone $this; + $self['canUpdate'] = $canUpdate; + + return $self; + } + + public function withMediaCount(int $mediaCount): self + { + $self = clone $this; + $self['mediaCount'] = $mediaCount; + + return $self; + } + + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + public function withType(string $type): self + { + $self = clone $this; + $self['type'] = $type; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta.php new file mode 100644 index 00000000..b4ac157f --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta.php @@ -0,0 +1,99 @@ + */ + use SdkModel; + + #[Optional] + public ?_Cache $_cache; + + #[Optional] + public ?_Credits $_credits; + + #[Optional('_rate_limits')] + public ?_RateLimits $_rateLimits; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param _Cache|_CacheShape|null $_cache + * @param _Credits|_CreditsShape|null $_credits + * @param _RateLimits|_RateLimitsShape|null $_rateLimits + */ + public static function with( + _Cache|array|null $_cache = null, + _Credits|array|null $_credits = null, + _RateLimits|array|null $_rateLimits = null, + ): self { + $self = new self; + + null !== $_cache && $self['_cache'] = $_cache; + null !== $_credits && $self['_credits'] = $_credits; + null !== $_rateLimits && $self['_rateLimits'] = $_rateLimits; + + return $self; + } + + /** + * @param _Cache|_CacheShape $_cache + */ + public function withCache(_Cache|array $_cache): self + { + $self = clone $this; + $self['_cache'] = $_cache; + + return $self; + } + + /** + * @param _Credits|_CreditsShape $_credits + */ + public function withCredits(_Credits|array $_credits): self + { + $self = clone $this; + $self['_credits'] = $_credits; + + return $self; + } + + /** + * @param _RateLimits|_RateLimitsShape $_rateLimits + */ + public function withRateLimits(_RateLimits|array $_rateLimits): self + { + $self = clone $this; + $self['_rateLimits'] = $_rateLimits; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_Cache.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_Cache.php new file mode 100644 index 00000000..0c6a0170 --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_Cache.php @@ -0,0 +1,62 @@ + */ + use SdkModel; + + #[Optional('is_cached')] + public ?bool $isCached; + + #[Optional] + public ?string $note; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?bool $isCached = null, + ?string $note = null + ): self { + $self = new self; + + null !== $isCached && $self['isCached'] = $isCached; + null !== $note && $self['note'] = $note; + + return $self; + } + + public function withIsCached(bool $isCached): self + { + $self = clone $this; + $self['isCached'] = $isCached; + + return $self; + } + + public function withNote(string $note): self + { + $self = clone $this; + $self['note'] = $note; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_Credits.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_Credits.php new file mode 100644 index 00000000..b49aeaa8 --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_Credits.php @@ -0,0 +1,77 @@ + */ + use SdkModel; + + #[Optional] + public ?int $balance; + + #[Optional] + public ?string $note; + + #[Optional] + public ?int $used; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?int $balance = null, + ?string $note = null, + ?int $used = null + ): self { + $self = new self; + + null !== $balance && $self['balance'] = $balance; + null !== $note && $self['note'] = $note; + null !== $used && $self['used'] = $used; + + return $self; + } + + public function withBalance(int $balance): self + { + $self = clone $this; + $self['balance'] = $balance; + + return $self; + } + + public function withNote(string $note): self + { + $self = clone $this; + $self['note'] = $note; + + return $self; + } + + public function withUsed(int $used): self + { + $self = clone $this; + $self['used'] = $used; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_RateLimits.php b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_RateLimits.php new file mode 100644 index 00000000..1b0c1868 --- /dev/null +++ b/src/Media/Vault/Lists/ListListResponse/UnionMember1/_Meta/_RateLimits.php @@ -0,0 +1,93 @@ + */ + use SdkModel; + + #[Optional('limit_day')] + public ?int $limitDay; + + #[Optional('limit_minute')] + public ?int $limitMinute; + + #[Optional('remaining_day')] + public ?int $remainingDay; + + #[Optional('remaining_minute')] + public ?int $remainingMinute; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?int $limitDay = null, + ?int $limitMinute = null, + ?int $remainingDay = null, + ?int $remainingMinute = null, + ): self { + $self = new self; + + null !== $limitDay && $self['limitDay'] = $limitDay; + null !== $limitMinute && $self['limitMinute'] = $limitMinute; + null !== $remainingDay && $self['remainingDay'] = $remainingDay; + null !== $remainingMinute && $self['remainingMinute'] = $remainingMinute; + + return $self; + } + + public function withLimitDay(int $limitDay): self + { + $self = clone $this; + $self['limitDay'] = $limitDay; + + return $self; + } + + public function withLimitMinute(int $limitMinute): self + { + $self = clone $this; + $self['limitMinute'] = $limitMinute; + + return $self; + } + + public function withRemainingDay(int $remainingDay): self + { + $self = clone $this; + $self['remainingDay'] = $remainingDay; + + return $self; + } + + public function withRemainingMinute(int $remainingMinute): self + { + $self = clone $this; + $self['remainingMinute'] = $remainingMinute; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListNewResponse.php b/src/Media/Vault/Lists/ListNewResponse.php index 9bbc3c7d..f2f45d19 100644 --- a/src/Media/Vault/Lists/ListNewResponse.php +++ b/src/Media/Vault/Lists/ListNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists; +namespace OnlyFansAPI\Media\Vault\Lists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\Lists\ListNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\Lists\ListNewResponse\Data * * @phpstan-type ListNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/Lists/ListNewResponse/Data.php b/src/Media/Vault/Lists/ListNewResponse/Data.php index e4fa7651..99900ba0 100644 --- a/src/Media/Vault/Lists/ListNewResponse/Data.php +++ b/src/Media/Vault/Lists/ListNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListNewResponse; +namespace OnlyFansAPI\Media\Vault\Lists\ListNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Media/Vault/Lists/ListNewResponse/_Meta.php b/src/Media/Vault/Lists/ListNewResponse/_Meta.php index 138d8b95..9c40ee67 100644 --- a/src/Media/Vault/Lists/ListNewResponse/_Meta.php +++ b/src/Media/Vault/Lists/ListNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListNewResponse; +namespace OnlyFansAPI\Media\Vault\Lists\ListNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/Lists/ListNewResponse/_Meta/_Cache.php b/src/Media/Vault/Lists/ListNewResponse/_Meta/_Cache.php index 5c347d5a..97b80a68 100644 --- a/src/Media/Vault/Lists/ListNewResponse/_Meta/_Cache.php +++ b/src/Media/Vault/Lists/ListNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/Lists/ListNewResponse/_Meta/_Credits.php b/src/Media/Vault/Lists/ListNewResponse/_Meta/_Credits.php index 3e10ca88..fffce8f7 100644 --- a/src/Media/Vault/Lists/ListNewResponse/_Meta/_Credits.php +++ b/src/Media/Vault/Lists/ListNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/Lists/ListNewResponse/_Meta/_RateLimits.php b/src/Media/Vault/Lists/ListNewResponse/_Meta/_RateLimits.php index 6e2ac6b4..3475c6d6 100644 --- a/src/Media/Vault/Lists/ListNewResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/Lists/ListNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListNewResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/Lists/ListRetrieveParams.php b/src/Media/Vault/Lists/ListRetrieveParams.php index 066865ab..d8221ba5 100644 --- a/src/Media/Vault/Lists/ListRetrieveParams.php +++ b/src/Media/Vault/Lists/ListRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists; +namespace OnlyFansAPI\Media\Vault\Lists; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Show a Vault list. * - * @see Onlyfansapi\Services\Media\Vault\ListsService::retrieve() + * @see OnlyFansAPI\Services\Media\Vault\ListsService::retrieve() * * @phpstan-type ListRetrieveParamsShape = array{account: string} */ diff --git a/src/Media/Vault/Lists/ListUpdateParams.php b/src/Media/Vault/Lists/ListUpdateParams.php index f56cbc7c..e3b36ac3 100644 --- a/src/Media/Vault/Lists/ListUpdateParams.php +++ b/src/Media/Vault/Lists/ListUpdateParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists; +namespace OnlyFansAPI\Media\Vault\Lists; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Rename a Vault list. * - * @see Onlyfansapi\Services\Media\Vault\ListsService::update() + * @see OnlyFansAPI\Services\Media\Vault\ListsService::update() * - * @phpstan-type ListUpdateParamsShape = array{account: string} + * @phpstan-type ListUpdateParamsShape = array{account: string, name: string} */ final class ListUpdateParams implements BaseModel { @@ -25,18 +25,24 @@ final class ListUpdateParams implements BaseModel #[Required] public string $account; + /** + * The new name for the vault list. Must not be greater than 255 characters. + */ + #[Required] + public string $name; + /** * `new ListUpdateParams()` is missing required properties by the API. * * To enforce required parameters use * ``` - * ListUpdateParams::with(account: ...) + * ListUpdateParams::with(account: ..., name: ...) * ``` * * Otherwise ensure the following setters are called * * ``` - * (new ListUpdateParams)->withAccount(...) + * (new ListUpdateParams)->withAccount(...)->withName(...) * ``` */ public function __construct() @@ -49,11 +55,12 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. */ - public static function with(string $account): self + public static function with(string $account, string $name): self { $self = new self; $self['account'] = $account; + $self['name'] = $name; return $self; } @@ -65,4 +72,15 @@ public function withAccount(string $account): self return $self; } + + /** + * The new name for the vault list. Must not be greater than 255 characters. + */ + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } } diff --git a/src/Media/Vault/Lists/ListUpdateResponse.php b/src/Media/Vault/Lists/ListUpdateResponse.php index a5f0159f..864641e0 100644 --- a/src/Media/Vault/Lists/ListUpdateResponse.php +++ b/src/Media/Vault/Lists/ListUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists; +namespace OnlyFansAPI\Media\Vault\Lists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\Data * * @phpstan-type ListUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/Lists/ListUpdateResponse/Data.php b/src/Media/Vault/Lists/ListUpdateResponse/Data.php index 0df034d7..d2b2a153 100644 --- a/src/Media/Vault/Lists/ListUpdateResponse/Data.php +++ b/src/Media/Vault/Lists/ListUpdateResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListUpdateResponse; +namespace OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Media/Vault/Lists/ListUpdateResponse/_Meta.php b/src/Media/Vault/Lists/ListUpdateResponse/_Meta.php index 28140c65..ac9f1a21 100644 --- a/src/Media/Vault/Lists/ListUpdateResponse/_Meta.php +++ b/src/Media/Vault/Lists/ListUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListUpdateResponse; +namespace OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Cache.php b/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Cache.php index 6664989c..b4a67727 100644 --- a/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Cache.php +++ b/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Credits.php b/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Credits.php index a5c3b7f7..045c32ec 100644 --- a/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Credits.php +++ b/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_RateLimits.php b/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_RateLimits.php index 8262ecd0..edb46aad 100644 --- a/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/Lists/ListUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListUpdateResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/Lists/Media/MediaAddParams.php b/src/Media/Vault/Lists/Media/MediaAddParams.php index 280bfea9..75f6a7f2 100644 --- a/src/Media/Vault/Lists/Media/MediaAddParams.php +++ b/src/Media/Vault/Lists/Media/MediaAddParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media; +namespace OnlyFansAPI\Media\Vault\Lists\Media; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Add one or multiple media to a list. * - * @see Onlyfansapi\Services\Media\Vault\Lists\MediaService::add() + * @see OnlyFansAPI\Services\Media\Vault\Lists\MediaService::add() * * @phpstan-type MediaAddParamsShape = array{ * account: string, mediaIDs: list diff --git a/src/Media/Vault/Lists/Media/MediaAddResponse.php b/src/Media/Vault/Lists/Media/MediaAddResponse.php index 91580346..827a8be3 100644 --- a/src/Media/Vault/Lists/Media/MediaAddResponse.php +++ b/src/Media/Vault/Lists/Media/MediaAddResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media; +namespace OnlyFansAPI\Media\Vault\Lists\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\Data * * @phpstan-type MediaAddResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/Lists/Media/MediaAddResponse/Data.php b/src/Media/Vault/Lists/Media/MediaAddResponse/Data.php index d40a32ea..9e6e1bf4 100644 --- a/src/Media/Vault/Lists/Media/MediaAddResponse/Data.php +++ b/src/Media/Vault/Lists/Media/MediaAddResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\Data\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\Data\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\Data\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\Data\Media * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Media/Vault/Lists/Media/MediaAddResponse/Data/Media.php b/src/Media/Vault/Lists/Media/MediaAddResponse/Data/Media.php index be3dacb6..739b7791 100644 --- a/src/Media/Vault/Lists/Media/MediaAddResponse/Data/Media.php +++ b/src/Media/Vault/Lists/Media/MediaAddResponse/Data/Media.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\Data; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type MediaShape = array{type?: string|null, url?: string|null} diff --git a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta.php b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta.php index 7cbc116c..f2d14604 100644 --- a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta.php +++ b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Cache.php b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Cache.php index 49fe001c..89e15ca6 100644 --- a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Cache.php +++ b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Credits.php b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Credits.php index 875b5373..3a66eb2f 100644 --- a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Credits.php +++ b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_RateLimits.php b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_RateLimits.php index e1690d36..4abf6f43 100644 --- a/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/Lists/Media/MediaAddResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/Lists/Media/MediaRemoveParams.php b/src/Media/Vault/Lists/Media/MediaRemoveParams.php index 96e6cbb0..e2fecdc0 100644 --- a/src/Media/Vault/Lists/Media/MediaRemoveParams.php +++ b/src/Media/Vault/Lists/Media/MediaRemoveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media; +namespace OnlyFansAPI\Media\Vault\Lists\Media; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove one or multiple media from a list. * - * @see Onlyfansapi\Services\Media\Vault\Lists\MediaService::remove() + * @see OnlyFansAPI\Services\Media\Vault\Lists\MediaService::remove() * * @phpstan-type MediaRemoveParamsShape = array{ * account: string, mediaIDs: list diff --git a/src/Media/Vault/Lists/Media/MediaRemoveResponse.php b/src/Media/Vault/Lists/Media/MediaRemoveResponse.php index 1f5eb5f8..036512e9 100644 --- a/src/Media/Vault/Lists/Media/MediaRemoveResponse.php +++ b/src/Media/Vault/Lists/Media/MediaRemoveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media; +namespace OnlyFansAPI\Media\Vault\Lists\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\Data * * @phpstan-type MediaRemoveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/Lists/Media/MediaRemoveResponse/Data.php b/src/Media/Vault/Lists/Media/MediaRemoveResponse/Data.php index 0eeebc6b..a7070842 100644 --- a/src/Media/Vault/Lists/Media/MediaRemoveResponse/Data.php +++ b/src/Media/Vault/Lists/Media/MediaRemoveResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta.php b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta.php index 8db3db95..08361068 100644 --- a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta.php +++ b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Cache.php b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Cache.php index 611657d0..ecc8aaed 100644 --- a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Cache.php +++ b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Credits.php b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Credits.php index 1d7cbc8b..9149c3e1 100644 --- a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Credits.php +++ b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_RateLimits.php b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_RateLimits.php index 59620b4b..72f168c7 100644 --- a/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/Lists/Media/MediaRemoveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/VaultDeleteParams.php b/src/Media/Vault/VaultDeleteParams.php index c0083816..dc83404b 100644 --- a/src/Media/Vault/VaultDeleteParams.php +++ b/src/Media/Vault/VaultDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete one or multiple media from your vault. * - * @see Onlyfansapi\Services\Media\VaultService::delete() + * @see OnlyFansAPI\Services\Media\VaultService::delete() * * @phpstan-type VaultDeleteParamsShape = array{mediaIDs: list} */ diff --git a/src/Media/Vault/VaultDeleteResponse.php b/src/Media/Vault/VaultDeleteResponse.php index 9f146ef6..11bdb406 100644 --- a/src/Media/Vault/VaultDeleteResponse.php +++ b/src/Media/Vault/VaultDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta; -use Onlyfansapi\Media\Vault\VaultDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\VaultDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\VaultDeleteResponse\Data * * @phpstan-type VaultDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/VaultDeleteResponse/Data.php b/src/Media/Vault/VaultDeleteResponse/Data.php index a5df32f1..5fd99dce 100644 --- a/src/Media/Vault/VaultDeleteResponse/Data.php +++ b/src/Media/Vault/VaultDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultDeleteResponse; +namespace OnlyFansAPI\Media\Vault\VaultDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Media/Vault/VaultDeleteResponse/_Meta.php b/src/Media/Vault/VaultDeleteResponse/_Meta.php index 510d47ca..c5795f87 100644 --- a/src/Media/Vault/VaultDeleteResponse/_Meta.php +++ b/src/Media/Vault/VaultDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultDeleteResponse; +namespace OnlyFansAPI\Media\Vault\VaultDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/VaultDeleteResponse/_Meta/_Cache.php b/src/Media/Vault/VaultDeleteResponse/_Meta/_Cache.php index c801ab05..b108e07a 100644 --- a/src/Media/Vault/VaultDeleteResponse/_Meta/_Cache.php +++ b/src/Media/Vault/VaultDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/VaultDeleteResponse/_Meta/_Credits.php b/src/Media/Vault/VaultDeleteResponse/_Meta/_Credits.php index d5333b4c..42192640 100644 --- a/src/Media/Vault/VaultDeleteResponse/_Meta/_Credits.php +++ b/src/Media/Vault/VaultDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/VaultDeleteResponse/_Meta/_RateLimits.php b/src/Media/Vault/VaultDeleteResponse/_Meta/_RateLimits.php index 3cce2019..c5c3818a 100644 --- a/src/Media/Vault/VaultDeleteResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/VaultDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultDeleteResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/VaultGetResponse.php b/src/Media/Vault/VaultGetResponse.php index 8e4c8406..9b5542bd 100644 --- a/src/Media/Vault/VaultGetResponse.php +++ b/src/Media/Vault/VaultGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultGetResponse\_Meta; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\VaultGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data * * @phpstan-type VaultGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/VaultGetResponse/Data.php b/src/Media/Vault/VaultGetResponse/Data.php index 7ea7f5df..908e7fe4 100644 --- a/src/Media/Vault/VaultGetResponse/Data.php +++ b/src/Media/Vault/VaultGetResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data\ListState; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data\ListState; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files - * @phpstan-import-type ListStateShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data\ListState - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files + * @phpstan-import-type ListStateShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data\ListState + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data\VideoSources * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Media/Vault/VaultGetResponse/Data/Files.php b/src/Media/Vault/VaultGetResponse/Data/Files.php index a613b702..caef423b 100644 --- a/src/Media/Vault/VaultGetResponse/Data/Files.php +++ b/src/Media/Vault/VaultGetResponse/Data/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\Data; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\Full; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\Preview; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\SquarePreview; -use Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\Full; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\Preview; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\SquarePreview; +use OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Media/Vault/VaultGetResponse/Data/Files/Full.php b/src/Media/Vault/VaultGetResponse/Data/Files/Full.php index 51027e4d..75889136 100644 --- a/src/Media/Vault/VaultGetResponse/Data/Files/Full.php +++ b/src/Media/Vault/VaultGetResponse/Data/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Media/Vault/VaultGetResponse/Data/Files/Preview.php b/src/Media/Vault/VaultGetResponse/Data/Files/Preview.php index c8683b22..afb06b8b 100644 --- a/src/Media/Vault/VaultGetResponse/Data/Files/Preview.php +++ b/src/Media/Vault/VaultGetResponse/Data/Files/Preview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PreviewShape = array{ diff --git a/src/Media/Vault/VaultGetResponse/Data/Files/SquarePreview.php b/src/Media/Vault/VaultGetResponse/Data/Files/SquarePreview.php index c9f7b3f9..fd76e0e2 100644 --- a/src/Media/Vault/VaultGetResponse/Data/Files/SquarePreview.php +++ b/src/Media/Vault/VaultGetResponse/Data/Files/SquarePreview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SquarePreviewShape = array{ diff --git a/src/Media/Vault/VaultGetResponse/Data/Files/Thumb.php b/src/Media/Vault/VaultGetResponse/Data/Files/Thumb.php index 9e7d2ebc..772718c2 100644 --- a/src/Media/Vault/VaultGetResponse/Data/Files/Thumb.php +++ b/src/Media/Vault/VaultGetResponse/Data/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\Data\Files; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\Data\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Media/Vault/VaultGetResponse/Data/ListState.php b/src/Media/Vault/VaultGetResponse/Data/ListState.php index 7549af43..f2c7307a 100644 --- a/src/Media/Vault/VaultGetResponse/Data/ListState.php +++ b/src/Media/Vault/VaultGetResponse/Data/ListState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\Data; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListStateShape = array{ diff --git a/src/Media/Vault/VaultGetResponse/Data/VideoSources.php b/src/Media/Vault/VaultGetResponse/Data/VideoSources.php index 9162cb6b..8e7c8021 100644 --- a/src/Media/Vault/VaultGetResponse/Data/VideoSources.php +++ b/src/Media/Vault/VaultGetResponse/Data/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\Data; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Media/Vault/VaultGetResponse/_Meta.php b/src/Media/Vault/VaultGetResponse/_Meta.php index a00665f9..9a7ae950 100644 --- a/src/Media/Vault/VaultGetResponse/_Meta.php +++ b/src/Media/Vault/VaultGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultGetResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\VaultGetResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\VaultGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\VaultGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\VaultGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\VaultGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/VaultGetResponse/_Meta/_Cache.php b/src/Media/Vault/VaultGetResponse/_Meta/_Cache.php index db44ca7d..38fc3881 100644 --- a/src/Media/Vault/VaultGetResponse/_Meta/_Cache.php +++ b/src/Media/Vault/VaultGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/VaultGetResponse/_Meta/_Credits.php b/src/Media/Vault/VaultGetResponse/_Meta/_Credits.php index 0046851a..6bf318b1 100644 --- a/src/Media/Vault/VaultGetResponse/_Meta/_Credits.php +++ b/src/Media/Vault/VaultGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/VaultGetResponse/_Meta/_RateLimits.php b/src/Media/Vault/VaultGetResponse/_Meta/_RateLimits.php index b61e6c2c..edb366cb 100644 --- a/src/Media/Vault/VaultGetResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/VaultGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultGetResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/VaultListParams.php b/src/Media/Vault/VaultListParams.php index c9c6f006..a983cb9b 100644 --- a/src/Media/Vault/VaultListParams.php +++ b/src/Media/Vault/VaultListParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultListParams\Field; -use Onlyfansapi\Media\Vault\VaultListParams\Sort; -use Onlyfansapi\Media\Vault\VaultListParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultListParams\Field; +use OnlyFansAPI\Media\Vault\VaultListParams\Sort; +use OnlyFansAPI\Media\Vault\VaultListParams\Type; /** * List media items stored in your vault. See how many likes and how much tips did they get. * - * @see Onlyfansapi\Services\Media\VaultService::list() + * @see OnlyFansAPI\Services\Media\VaultService::list() * * @phpstan-type VaultListParamsShape = array{ * field?: null|Field|value-of, diff --git a/src/Media/Vault/VaultListParams/Field.php b/src/Media/Vault/VaultListParams/Field.php index ca31a2a3..13944a7c 100644 --- a/src/Media/Vault/VaultListParams/Field.php +++ b/src/Media/Vault/VaultListParams/Field.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListParams; +namespace OnlyFansAPI\Media\Vault\VaultListParams; /** * Sort the results by a field. Default `recent`. diff --git a/src/Media/Vault/VaultListParams/Sort.php b/src/Media/Vault/VaultListParams/Sort.php index 46a55673..5e74223d 100644 --- a/src/Media/Vault/VaultListParams/Sort.php +++ b/src/Media/Vault/VaultListParams/Sort.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListParams; +namespace OnlyFansAPI\Media\Vault\VaultListParams; /** * Sort the results. Default `desc`. diff --git a/src/Media/Vault/VaultListParams/Type.php b/src/Media/Vault/VaultListParams/Type.php index 1c167d26..ef19f872 100644 --- a/src/Media/Vault/VaultListParams/Type.php +++ b/src/Media/Vault/VaultListParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListParams; +namespace OnlyFansAPI\Media\Vault\VaultListParams; /** * Filter the results by a media type. Keep empty to show all media. diff --git a/src/Media/Vault/VaultListResponse.php b/src/Media/Vault/VaultListResponse.php index 6ae6ae5a..bf716840 100644 --- a/src/Media/Vault/VaultListResponse.php +++ b/src/Media/Vault/VaultListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultListResponse\_Meta; -use Onlyfansapi\Media\Vault\VaultListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultListResponse\_Meta; +use OnlyFansAPI\Media\Vault\VaultListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\VaultListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\VaultListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\VaultListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\VaultListResponse\Data * * @phpstan-type VaultListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/VaultListResponse/Data.php b/src/Media/Vault/VaultListResponse/Data.php index 657c8b42..3ce32e26 100644 --- a/src/Media/Vault/VaultListResponse/Data.php +++ b/src/Media/Vault/VaultListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse; +namespace OnlyFansAPI\Media\Vault\VaultListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Media\Vault\VaultListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Media/Vault/VaultListResponse/Data/List_.php b/src/Media/Vault/VaultListResponse/Data/List_.php index 5b48fdb1..34505118 100644 --- a/src/Media/Vault/VaultListResponse/Data/List_.php +++ b/src/Media/Vault/VaultListResponse/Data/List_.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\Data; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\Counters; -use Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\Files; -use Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\ListState; -use Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\Counters; +use OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\Files; +use OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\ListState; +use OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\VideoSources; /** - * @phpstan-import-type CountersShape from \Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\Counters - * @phpstan-import-type FilesShape from \Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\Files - * @phpstan-import-type ListStateShape from \Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\ListState - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\VideoSources + * @phpstan-import-type CountersShape from \OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\Counters + * @phpstan-import-type FilesShape from \OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\Files + * @phpstan-import-type ListStateShape from \OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\ListState + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\VideoSources * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Media/Vault/VaultListResponse/Data/List_/Counters.php b/src/Media/Vault/VaultListResponse/Data/List_/Counters.php index 54046af4..daffd864 100644 --- a/src/Media/Vault/VaultListResponse/Data/List_/Counters.php +++ b/src/Media/Vault/VaultListResponse/Data/List_/Counters.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\Data\List_; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CountersShape = array{likesCount?: int|null, tipsSumm?: int|null} diff --git a/src/Media/Vault/VaultListResponse/Data/List_/Files.php b/src/Media/Vault/VaultListResponse/Data/List_/Files.php index f947998c..49e2b1bb 100644 --- a/src/Media/Vault/VaultListResponse/Data/List_/Files.php +++ b/src/Media/Vault/VaultListResponse/Data/List_/Files.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\Data\List_; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\Files\Full; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\Files\Full; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\Files\Full + * @phpstan-import-type FullShape from \OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\Files\Full * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Media/Vault/VaultListResponse/Data/List_/Files/Full.php b/src/Media/Vault/VaultListResponse/Data/List_/Files/Full.php index 95248a11..1a40e51c 100644 --- a/src/Media/Vault/VaultListResponse/Data/List_/Files/Full.php +++ b/src/Media/Vault/VaultListResponse/Data/List_/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\Data\List_\Files; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Media/Vault/VaultListResponse/Data/List_/ListState.php b/src/Media/Vault/VaultListResponse/Data/List_/ListState.php index 9e4c7c60..02b4c0cf 100644 --- a/src/Media/Vault/VaultListResponse/Data/List_/ListState.php +++ b/src/Media/Vault/VaultListResponse/Data/List_/ListState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\Data\List_; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListStateShape = array{ diff --git a/src/Media/Vault/VaultListResponse/Data/List_/VideoSources.php b/src/Media/Vault/VaultListResponse/Data/List_/VideoSources.php index 86502c96..a1f0ec97 100644 --- a/src/Media/Vault/VaultListResponse/Data/List_/VideoSources.php +++ b/src/Media/Vault/VaultListResponse/Data/List_/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\Data\List_; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Media/Vault/VaultListResponse/_Meta.php b/src/Media/Vault/VaultListResponse/_Meta.php index 91bfb682..d67b26d2 100644 --- a/src/Media/Vault/VaultListResponse/_Meta.php +++ b/src/Media/Vault/VaultListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse; +namespace OnlyFansAPI\Media\Vault\VaultListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultListResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\VaultListResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\VaultListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultListResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\VaultListResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\VaultListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\VaultListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\VaultListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\VaultListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\VaultListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\VaultListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\VaultListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/VaultListResponse/_Meta/_Cache.php b/src/Media/Vault/VaultListResponse/_Meta/_Cache.php index adcd7ccc..46af39bf 100644 --- a/src/Media/Vault/VaultListResponse/_Meta/_Cache.php +++ b/src/Media/Vault/VaultListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/VaultListResponse/_Meta/_Credits.php b/src/Media/Vault/VaultListResponse/_Meta/_Credits.php index 362a1a05..1e7cb02e 100644 --- a/src/Media/Vault/VaultListResponse/_Meta/_Credits.php +++ b/src/Media/Vault/VaultListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/VaultListResponse/_Meta/_RateLimits.php b/src/Media/Vault/VaultListResponse/_Meta/_RateLimits.php index 7da66518..c4d4d8d8 100644 --- a/src/Media/Vault/VaultListResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/VaultListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultListResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Media/Vault/VaultRetrieveParams.php b/src/Media/Vault/VaultRetrieveParams.php index 10285e84..90c8485f 100644 --- a/src/Media/Vault/VaultRetrieveParams.php +++ b/src/Media/Vault/VaultRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve details about a specific media item in your vault. * - * @see Onlyfansapi\Services\Media\VaultService::retrieve() + * @see OnlyFansAPI\Services\Media\VaultService::retrieve() * * @phpstan-type VaultRetrieveParamsShape = array{account: string} */ diff --git a/src/Media/Vault/VaultUploadParams.php b/src/Media/Vault/VaultUploadParams.php index 685455b2..6776d6b8 100644 --- a/src/Media/Vault/VaultUploadParams.php +++ b/src/Media/Vault/VaultUploadParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Core\FileParam; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\FileParam; /** * Upload a media file directly to your vault. * - * @see Onlyfansapi\Services\Media\VaultService::upload() + * @see OnlyFansAPI\Services\Media\VaultService::upload() * * @phpstan-type VaultUploadParamsShape = array{ * async?: bool|null, file?: string|null|FileParam, fileURL?: string|null @@ -26,7 +26,7 @@ final class VaultUploadParams implements BaseModel use SdkParams; /** - * Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. + * Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events — they only fire for async uploads. */ #[Optional] public ?bool $async; @@ -68,7 +68,7 @@ public static function with( } /** - * Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. + * Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events — they only fire for async uploads. */ public function withAsync(bool $async): self { diff --git a/src/Media/Vault/VaultUploadResponse.php b/src/Media/Vault/VaultUploadResponse.php index f3d5e814..cfe6a4bc 100644 --- a/src/Media/Vault/VaultUploadResponse.php +++ b/src/Media/Vault/VaultUploadResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault; +namespace OnlyFansAPI\Media\Vault; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta; -use Onlyfansapi\Media\Vault\VaultUploadResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta; +use OnlyFansAPI\Media\Vault\VaultUploadResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Media\Vault\VaultUploadResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Media\Vault\VaultUploadResponse\Data * * @phpstan-type VaultUploadResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Media/Vault/VaultUploadResponse/Data.php b/src/Media/Vault/VaultUploadResponse/Data.php index 91dd7d8c..8e25cc0d 100644 --- a/src/Media/Vault/VaultUploadResponse/Data.php +++ b/src/Media/Vault/VaultUploadResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultUploadResponse; +namespace OnlyFansAPI\Media\Vault\VaultUploadResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultUploadResponse\Data\Files; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultUploadResponse\Data\Files; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Media\Vault\VaultUploadResponse\Data\Files + * @phpstan-import-type FilesShape from \OnlyFansAPI\Media\Vault\VaultUploadResponse\Data\Files * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Media/Vault/VaultUploadResponse/Data/Files.php b/src/Media/Vault/VaultUploadResponse/Data/Files.php index f6579c81..4cb12b3f 100644 --- a/src/Media/Vault/VaultUploadResponse/Data/Files.php +++ b/src/Media/Vault/VaultUploadResponse/Data/Files.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultUploadResponse\Data; +namespace OnlyFansAPI\Media\Vault\VaultUploadResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultUploadResponse\Data\Files\Full; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultUploadResponse\Data\Files\Full; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Media\Vault\VaultUploadResponse\Data\Files\Full + * @phpstan-import-type FullShape from \OnlyFansAPI\Media\Vault\VaultUploadResponse\Data\Files\Full * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Media/Vault/VaultUploadResponse/Data/Files/Full.php b/src/Media/Vault/VaultUploadResponse/Data/Files/Full.php index 36136f5b..8f7bf7d0 100644 --- a/src/Media/Vault/VaultUploadResponse/Data/Files/Full.php +++ b/src/Media/Vault/VaultUploadResponse/Data/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultUploadResponse\Data\Files; +namespace OnlyFansAPI\Media\Vault\VaultUploadResponse\Data\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Media/Vault/VaultUploadResponse/_Meta.php b/src/Media/Vault/VaultUploadResponse/_Meta.php index dc3ec322..e965885b 100644 --- a/src/Media/Vault/VaultUploadResponse/_Meta.php +++ b/src/Media/Vault/VaultUploadResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultUploadResponse; +namespace OnlyFansAPI\Media\Vault\VaultUploadResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta\_Cache; +use OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta\_Credits; +use OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/VaultUploadResponse/_Meta/_Cache.php b/src/Media/Vault/VaultUploadResponse/_Meta/_Cache.php index a3c7dbdc..9f7adf87 100644 --- a/src/Media/Vault/VaultUploadResponse/_Meta/_Cache.php +++ b/src/Media/Vault/VaultUploadResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Media/Vault/VaultUploadResponse/_Meta/_Credits.php b/src/Media/Vault/VaultUploadResponse/_Meta/_Credits.php index 84dc5244..059c312b 100644 --- a/src/Media/Vault/VaultUploadResponse/_Meta/_Credits.php +++ b/src/Media/Vault/VaultUploadResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Media/Vault/VaultUploadResponse/_Meta/_RateLimits.php b/src/Media/Vault/VaultUploadResponse/_Meta/_RateLimits.php index 18ac01d2..7f6e7491 100644 --- a/src/Media/Vault/VaultUploadResponse/_Meta/_RateLimits.php +++ b/src/Media/Vault/VaultUploadResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\VaultUploadResponse\_Meta; +namespace OnlyFansAPI\Media\Vault\VaultUploadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Messages/MessageAttachTagsParams.php b/src/Messages/MessageAttachTagsParams.php deleted file mode 100644 index f23a26f0..00000000 --- a/src/Messages/MessageAttachTagsParams.php +++ /dev/null @@ -1,133 +0,0 @@ - */ - use SdkModel; - use SdkParams; - - #[Required] - public string $account; - - /** - * Array of OnlyFans Release Form Guest IDs to tag in your message. - */ - #[Optional] - public ?string $rfGuest; - - /** - * Array of OnlyFans Release Form Partners IDs to tag in your message. - */ - #[Optional] - public ?string $rfPartner; - - /** - * Array of OnlyFans Creator User IDs to tag in your message. - */ - #[Optional] - public ?string $rfTag; - - /** - * `new MessageAttachTagsParams()` is missing required properties by the API. - * - * To enforce required parameters use - * ``` - * MessageAttachTagsParams::with(account: ...) - * ``` - * - * Otherwise ensure the following setters are called - * - * ``` - * (new MessageAttachTagsParams)->withAccount(...) - * ``` - */ - public function __construct() - { - $this->initialize(); - } - - /** - * Construct an instance from the required parameters. - * - * You must use named parameters to construct any parameters with a default value. - */ - public static function with( - string $account, - ?string $rfGuest = null, - ?string $rfPartner = null, - ?string $rfTag = null, - ): self { - $self = new self; - - $self['account'] = $account; - - null !== $rfGuest && $self['rfGuest'] = $rfGuest; - null !== $rfPartner && $self['rfPartner'] = $rfPartner; - null !== $rfTag && $self['rfTag'] = $rfTag; - - return $self; - } - - public function withAccount(string $account): self - { - $self = clone $this; - $self['account'] = $account; - - return $self; - } - - /** - * Array of OnlyFans Release Form Guest IDs to tag in your message. - */ - public function withRfGuest(string $rfGuest): self - { - $self = clone $this; - $self['rfGuest'] = $rfGuest; - - return $self; - } - - /** - * Array of OnlyFans Release Form Partners IDs to tag in your message. - */ - public function withRfPartner(string $rfPartner): self - { - $self = clone $this; - $self['rfPartner'] = $rfPartner; - - return $self; - } - - /** - * Array of OnlyFans Creator User IDs to tag in your message. - */ - public function withRfTag(string $rfTag): self - { - $self = clone $this; - $self['rfTag'] = $rfTag; - - return $self; - } -} diff --git a/src/Messages/MessageAttachTagsResponse/Data.php b/src/Messages/MessageAttachTagsResponse/Data.php deleted file mode 100644 index 31f4ebbf..00000000 --- a/src/Messages/MessageAttachTagsResponse/Data.php +++ /dev/null @@ -1,48 +0,0 @@ - */ - use SdkModel; - - #[Optional] - public ?bool $success; - - public function __construct() - { - $this->initialize(); - } - - /** - * Construct an instance from the required parameters. - * - * You must use named parameters to construct any parameters with a default value. - */ - public static function with(?bool $success = null): self - { - $self = new self; - - null !== $success && $self['success'] = $success; - - return $self; - } - - public function withSuccess(bool $success): self - { - $self = clone $this; - $self['success'] = $success; - - return $self; - } -} diff --git a/src/Notifications/NotificationGetCountsResponse.php b/src/Notifications/NotificationGetCountsResponse.php index 169633e6..7bd5c267 100644 --- a/src/Notifications/NotificationGetCountsResponse.php +++ b/src/Notifications/NotificationGetCountsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications; +namespace OnlyFansAPI\Notifications; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta; -use Onlyfansapi\Notifications\NotificationGetCountsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Notifications\NotificationGetCountsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Notifications\NotificationGetCountsResponse\Data * * @phpstan-type NotificationGetCountsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Notifications/NotificationGetCountsResponse/Data.php b/src/Notifications/NotificationGetCountsResponse/Data.php index 5e68f33f..86bb69b3 100644 --- a/src/Notifications/NotificationGetCountsResponse/Data.php +++ b/src/Notifications/NotificationGetCountsResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationGetCountsResponse; +namespace OnlyFansAPI\Notifications\NotificationGetCountsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Notifications/NotificationGetCountsResponse/_Meta.php b/src/Notifications/NotificationGetCountsResponse/_Meta.php index 65b00da5..959f942d 100644 --- a/src/Notifications/NotificationGetCountsResponse/_Meta.php +++ b/src/Notifications/NotificationGetCountsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationGetCountsResponse; +namespace OnlyFansAPI\Notifications\NotificationGetCountsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta\_Cache; -use Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta\_Credits; -use Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta\_Cache; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta\_Credits; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Notifications/NotificationGetCountsResponse/_Meta/_Cache.php b/src/Notifications/NotificationGetCountsResponse/_Meta/_Cache.php index 93eec578..41e8d927 100644 --- a/src/Notifications/NotificationGetCountsResponse/_Meta/_Cache.php +++ b/src/Notifications/NotificationGetCountsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Notifications/NotificationGetCountsResponse/_Meta/_Credits.php b/src/Notifications/NotificationGetCountsResponse/_Meta/_Credits.php index 46136e87..5c3d079b 100644 --- a/src/Notifications/NotificationGetCountsResponse/_Meta/_Credits.php +++ b/src/Notifications/NotificationGetCountsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Notifications/NotificationGetCountsResponse/_Meta/_RateLimits.php b/src/Notifications/NotificationGetCountsResponse/_Meta/_RateLimits.php index 41b57e1b..8424ebdd 100644 --- a/src/Notifications/NotificationGetCountsResponse/_Meta/_RateLimits.php +++ b/src/Notifications/NotificationGetCountsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationGetCountsResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationGetCountsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Notifications/NotificationListParams.php b/src/Notifications/NotificationListParams.php index 93081435..85380582 100644 --- a/src/Notifications/NotificationListParams.php +++ b/src/Notifications/NotificationListParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications; +namespace OnlyFansAPI\Notifications; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationListParams\SkipUsers; -use Onlyfansapi\Notifications\NotificationListParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationListParams\SkipUsers; +use OnlyFansAPI\Notifications\NotificationListParams\Type; /** * List all notifications for the account. * - * @see Onlyfansapi\Services\NotificationsService::list() + * @see OnlyFansAPI\Services\NotificationsService::list() * * @phpstan-type NotificationListParamsShape = array{ * fromID?: int|null, @@ -42,7 +42,7 @@ final class NotificationListParams implements BaseModel public ?int $limit; /** - * Whether to skip user details. Default `all`. + * Whether to skip user details. Defaults to `all`. * * @var value-of|null $skipUsers */ @@ -109,7 +109,7 @@ public function withLimit(int $limit): self } /** - * Whether to skip user details. Default `all`. + * Whether to skip user details. Defaults to `all`. * * @param SkipUsers|value-of $skipUsers */ diff --git a/src/Notifications/NotificationListParams/SkipUsers.php b/src/Notifications/NotificationListParams/SkipUsers.php index e002ab6e..78574f7a 100644 --- a/src/Notifications/NotificationListParams/SkipUsers.php +++ b/src/Notifications/NotificationListParams/SkipUsers.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListParams; +namespace OnlyFansAPI\Notifications\NotificationListParams; /** - * Whether to skip user details. Default `all`. + * Whether to skip user details. Defaults to `all`. */ enum SkipUsers: string { diff --git a/src/Notifications/NotificationListParams/Type.php b/src/Notifications/NotificationListParams/Type.php index b465a0a8..d7c327af 100644 --- a/src/Notifications/NotificationListParams/Type.php +++ b/src/Notifications/NotificationListParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListParams; +namespace OnlyFansAPI\Notifications\NotificationListParams; /** * Filter notifications by a specific type. diff --git a/src/Notifications/NotificationListResponse.php b/src/Notifications/NotificationListResponse.php index dbb4f09e..7108db1b 100644 --- a/src/Notifications/NotificationListResponse.php +++ b/src/Notifications/NotificationListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications; +namespace OnlyFansAPI\Notifications; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationListResponse\_Meta; -use Onlyfansapi\Notifications\NotificationListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationListResponse\_Meta; +use OnlyFansAPI\Notifications\NotificationListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Notifications\NotificationListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Notifications\NotificationListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Notifications\NotificationListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Notifications\NotificationListResponse\Data * * @phpstan-type NotificationListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Notifications/NotificationListResponse/Data.php b/src/Notifications/NotificationListResponse/Data.php index 07a1b112..863f8e3f 100644 --- a/src/Notifications/NotificationListResponse/Data.php +++ b/src/Notifications/NotificationListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse; +namespace OnlyFansAPI\Notifications\NotificationListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Notifications\NotificationListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Notifications\NotificationListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Notifications/NotificationListResponse/Data/List_.php b/src/Notifications/NotificationListResponse/Data/List_.php index 483e73da..9aa46499 100644 --- a/src/Notifications/NotificationListResponse/Data/List_.php +++ b/src/Notifications/NotificationListResponse/Data/List_.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse\Data; +namespace OnlyFansAPI\Notifications\NotificationListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationListResponse\Data\List_\ReplacePairs; -use Onlyfansapi\Notifications\NotificationListResponse\Data\List_\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationListResponse\Data\List_\ReplacePairs; +use OnlyFansAPI\Notifications\NotificationListResponse\Data\List_\User; /** - * @phpstan-import-type ReplacePairsShape from \Onlyfansapi\Notifications\NotificationListResponse\Data\List_\ReplacePairs - * @phpstan-import-type UserShape from \Onlyfansapi\Notifications\NotificationListResponse\Data\List_\User + * @phpstan-import-type ReplacePairsShape from \OnlyFansAPI\Notifications\NotificationListResponse\Data\List_\ReplacePairs + * @phpstan-import-type UserShape from \OnlyFansAPI\Notifications\NotificationListResponse\Data\List_\User * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Notifications/NotificationListResponse/Data/List_/ReplacePairs.php b/src/Notifications/NotificationListResponse/Data/List_/ReplacePairs.php index 8e629556..86e8fd5a 100644 --- a/src/Notifications/NotificationListResponse/Data/List_/ReplacePairs.php +++ b/src/Notifications/NotificationListResponse/Data/List_/ReplacePairs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse\Data\List_; +namespace OnlyFansAPI\Notifications\NotificationListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ReplacePairsShape = array{ diff --git a/src/Notifications/NotificationListResponse/Data/List_/User.php b/src/Notifications/NotificationListResponse/Data/List_/User.php index a63d9dd6..6f4069eb 100644 --- a/src/Notifications/NotificationListResponse/Data/List_/User.php +++ b/src/Notifications/NotificationListResponse/Data/List_/User.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse\Data\List_; +namespace OnlyFansAPI\Notifications\NotificationListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type UserShape = array{id?: int|null, _view?: string|null} diff --git a/src/Notifications/NotificationListResponse/_Meta.php b/src/Notifications/NotificationListResponse/_Meta.php index 5fa681b1..cd8f41ca 100644 --- a/src/Notifications/NotificationListResponse/_Meta.php +++ b/src/Notifications/NotificationListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse; +namespace OnlyFansAPI\Notifications\NotificationListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationListResponse\_Meta\_Cache; -use Onlyfansapi\Notifications\NotificationListResponse\_Meta\_Credits; -use Onlyfansapi\Notifications\NotificationListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationListResponse\_Meta\_Cache; +use OnlyFansAPI\Notifications\NotificationListResponse\_Meta\_Credits; +use OnlyFansAPI\Notifications\NotificationListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Notifications\NotificationListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Notifications\NotificationListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Notifications\NotificationListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Notifications\NotificationListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Notifications\NotificationListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Notifications\NotificationListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Notifications/NotificationListResponse/_Meta/_Cache.php b/src/Notifications/NotificationListResponse/_Meta/_Cache.php index b7724831..4ea1dadb 100644 --- a/src/Notifications/NotificationListResponse/_Meta/_Cache.php +++ b/src/Notifications/NotificationListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Notifications/NotificationListResponse/_Meta/_Credits.php b/src/Notifications/NotificationListResponse/_Meta/_Credits.php index ab57dab0..81622fcc 100644 --- a/src/Notifications/NotificationListResponse/_Meta/_Credits.php +++ b/src/Notifications/NotificationListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Notifications/NotificationListResponse/_Meta/_RateLimits.php b/src/Notifications/NotificationListResponse/_Meta/_RateLimits.php index a7356102..e14177ce 100644 --- a/src/Notifications/NotificationListResponse/_Meta/_RateLimits.php +++ b/src/Notifications/NotificationListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationListResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Notifications/NotificationMarkAllAsReadResponse.php b/src/Notifications/NotificationMarkAllAsReadResponse.php index 3c1345ea..c07fb906 100644 --- a/src/Notifications/NotificationMarkAllAsReadResponse.php +++ b/src/Notifications/NotificationMarkAllAsReadResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications; +namespace OnlyFansAPI\Notifications; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\Data * * @phpstan-type NotificationMarkAllAsReadResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Notifications/NotificationMarkAllAsReadResponse/Data.php b/src/Notifications/NotificationMarkAllAsReadResponse/Data.php index e5697973..ad70d82a 100644 --- a/src/Notifications/NotificationMarkAllAsReadResponse/Data.php +++ b/src/Notifications/NotificationMarkAllAsReadResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse; +namespace OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta.php b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta.php index 379a2ed1..d91b953c 100644 --- a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta.php +++ b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse; +namespace OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Cache; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Credits; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Cache; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Credits; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Cache.php b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Cache.php index 3fec31a6..7d859756 100644 --- a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Cache.php +++ b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Credits.php b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Credits.php index e7d10b19..ead0ac26 100644 --- a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Credits.php +++ b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_RateLimits.php b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_RateLimits.php index a8190297..5a36aa29 100644 --- a/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_RateLimits.php +++ b/src/Notifications/NotificationMarkAllAsReadResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Notifications/NotificationSearchUsersParams.php b/src/Notifications/NotificationSearchUsersParams.php index ba0296ad..be636cb6 100644 --- a/src/Notifications/NotificationSearchUsersParams.php +++ b/src/Notifications/NotificationSearchUsersParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications; +namespace OnlyFansAPI\Notifications; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Search users that have appeared in your notifications. * - * @see Onlyfansapi\Services\NotificationsService::searchUsers() + * @see OnlyFansAPI\Services\NotificationsService::searchUsers() * * @phpstan-type NotificationSearchUsersParamsShape = array{query: string} */ diff --git a/src/Notifications/NotificationSearchUsersResponse.php b/src/Notifications/NotificationSearchUsersResponse.php index 07b654c8..21fab1ac 100644 --- a/src/Notifications/NotificationSearchUsersResponse.php +++ b/src/Notifications/NotificationSearchUsersResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications; +namespace OnlyFansAPI\Notifications; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data * * @phpstan-type NotificationSearchUsersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Notifications/NotificationSearchUsersResponse/Data.php b/src/Notifications/NotificationSearchUsersResponse/Data.php index 305939c9..649089b6 100644 --- a/src/Notifications/NotificationSearchUsersResponse/Data.php +++ b/src/Notifications/NotificationSearchUsersResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\ListsState; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\ListsState; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData; /** - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Notifications/NotificationSearchUsersResponse/Data/ListsState.php b/src/Notifications/NotificationSearchUsersResponse/Data/ListsState.php index 1c13b454..0f293622 100644 --- a/src/Notifications/NotificationSearchUsersResponse/Data/ListsState.php +++ b/src/Notifications/NotificationSearchUsersResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData.php b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData.php index ac3f127b..141a652f 100644 --- a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData.php +++ b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData/Subscribe.php b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData/Subscribe.php index 50e48c1e..3d947bf2 100644 --- a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData.php b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData.php index 936181a3..e297a6ec 100644 --- a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData.php +++ b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData/Subscribe.php b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData/Subscribe.php index e33bddcc..c349c58b 100644 --- a/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData/Subscribe.php +++ b/src/Notifications/NotificationSearchUsersResponse/Data/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\Data\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Notifications/NotificationSearchUsersResponse/_Meta.php b/src/Notifications/NotificationSearchUsersResponse/_Meta.php index 78af4986..3698f121 100644 --- a/src/Notifications/NotificationSearchUsersResponse/_Meta.php +++ b/src/Notifications/NotificationSearchUsersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta\_Cache; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta\_Credits; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta\_Cache; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta\_Credits; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Notifications/NotificationSearchUsersResponse/_Meta/_Cache.php b/src/Notifications/NotificationSearchUsersResponse/_Meta/_Cache.php index c384bc66..cbb9d950 100644 --- a/src/Notifications/NotificationSearchUsersResponse/_Meta/_Cache.php +++ b/src/Notifications/NotificationSearchUsersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Notifications/NotificationSearchUsersResponse/_Meta/_Credits.php b/src/Notifications/NotificationSearchUsersResponse/_Meta/_Credits.php index f673ae7c..1b15deff 100644 --- a/src/Notifications/NotificationSearchUsersResponse/_Meta/_Credits.php +++ b/src/Notifications/NotificationSearchUsersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Notifications/NotificationSearchUsersResponse/_Meta/_RateLimits.php b/src/Notifications/NotificationSearchUsersResponse/_Meta/_RateLimits.php index ea7b1414..ec6f4e35 100644 --- a/src/Notifications/NotificationSearchUsersResponse/_Meta/_RateLimits.php +++ b/src/Notifications/NotificationSearchUsersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\NotificationSearchUsersResponse\_Meta; +namespace OnlyFansAPI\Notifications\NotificationSearchUsersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Notifications/TabsOrder/TabsOrderGetResponse.php b/src/Notifications/TabsOrder/TabsOrderGetResponse.php index 6e722c2c..d6323e25 100644 --- a/src/Notifications/TabsOrder/TabsOrderGetResponse.php +++ b/src/Notifications/TabsOrder/TabsOrderGetResponse.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder; +namespace OnlyFansAPI\Notifications\TabsOrder; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta * * @phpstan-type TabsOrderGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta.php b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta.php index 98067081..5228c644 100644 --- a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta.php +++ b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Cache; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Credits; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Cache; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Credits; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Cache.php b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Cache.php index 68bc7724..dcb835c5 100644 --- a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Cache.php +++ b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Credits.php b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Credits.php index 125ec5de..4b5a8a81 100644 --- a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Credits.php +++ b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_RateLimits.php b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_RateLimits.php index 9838ed5c..02d300e0 100644 --- a/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_RateLimits.php +++ b/src/Notifications/TabsOrder/TabsOrderGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Notifications/TabsOrder/TabsOrderUpdateParams.php b/src/Notifications/TabsOrder/TabsOrderUpdateParams.php index 75ff3d5b..76d312e1 100644 --- a/src/Notifications/TabsOrder/TabsOrderUpdateParams.php +++ b/src/Notifications/TabsOrder/TabsOrderUpdateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder; +namespace OnlyFansAPI\Notifications\TabsOrder; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Update the order of an account's notification tabs as displayed on the OnlyFans notifications page. * - * @see Onlyfansapi\Services\Notifications\TabsOrderService::update() + * @see OnlyFansAPI\Services\Notifications\TabsOrderService::update() * * @phpstan-type TabsOrderUpdateParamsShape = array{tabs: list} */ diff --git a/src/Notifications/TabsOrder/TabsOrderUpdateResponse.php b/src/Notifications/TabsOrder/TabsOrderUpdateResponse.php index fb6229a8..b4390d6d 100644 --- a/src/Notifications/TabsOrder/TabsOrderUpdateResponse.php +++ b/src/Notifications/TabsOrder/TabsOrderUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder; +namespace OnlyFansAPI\Notifications\TabsOrder; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\Data * * @phpstan-type TabsOrderUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/Data.php b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/Data.php index db78e64b..1fef377a 100644 --- a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/Data.php +++ b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta.php b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta.php index 9dd21c91..c3c85ea8 100644 --- a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta.php +++ b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Cache; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Credits; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Cache.php b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Cache.php index 14c2b7a9..6efbc808 100644 --- a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Cache.php +++ b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Credits.php b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Credits.php index 804bac39..6e00fd6f 100644 --- a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Credits.php +++ b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_RateLimits.php b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_RateLimits.php index 13e97ad6..5bcde003 100644 --- a/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_RateLimits.php +++ b/src/Notifications/TabsOrder/TabsOrderUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; +namespace OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Payouts/PayoutGetBalancesResponse.php b/src/Payouts/PayoutGetBalancesResponse.php index 78e04f89..a70da9bb 100644 --- a/src/Payouts/PayoutGetBalancesResponse.php +++ b/src/Payouts/PayoutGetBalancesResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Payouts\PayoutGetBalancesResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Payouts\PayoutGetBalancesResponse\Data * * @phpstan-type PayoutGetBalancesResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Payouts/PayoutGetBalancesResponse/Data.php b/src/Payouts/PayoutGetBalancesResponse/Data.php index f09b327f..54046487 100644 --- a/src/Payouts/PayoutGetBalancesResponse/Data.php +++ b/src/Payouts/PayoutGetBalancesResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetBalancesResponse; +namespace OnlyFansAPI\Payouts\PayoutGetBalancesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse\Data\WithdrawalPeriodOption; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse\Data\WithdrawalPeriodOption; /** - * @phpstan-import-type WithdrawalPeriodOptionShape from \Onlyfansapi\Payouts\PayoutGetBalancesResponse\Data\WithdrawalPeriodOption + * @phpstan-import-type WithdrawalPeriodOptionShape from \OnlyFansAPI\Payouts\PayoutGetBalancesResponse\Data\WithdrawalPeriodOption * * @phpstan-type DataShape = array{ * currency?: string|null, diff --git a/src/Payouts/PayoutGetBalancesResponse/Data/WithdrawalPeriodOption.php b/src/Payouts/PayoutGetBalancesResponse/Data/WithdrawalPeriodOption.php index 9fcb3e4e..d07bde46 100644 --- a/src/Payouts/PayoutGetBalancesResponse/Data/WithdrawalPeriodOption.php +++ b/src/Payouts/PayoutGetBalancesResponse/Data/WithdrawalPeriodOption.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetBalancesResponse\Data; +namespace OnlyFansAPI\Payouts\PayoutGetBalancesResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type WithdrawalPeriodOptionShape = array{ diff --git a/src/Payouts/PayoutGetBalancesResponse/_Meta.php b/src/Payouts/PayoutGetBalancesResponse/_Meta.php index 45cd4b35..407b8623 100644 --- a/src/Payouts/PayoutGetBalancesResponse/_Meta.php +++ b/src/Payouts/PayoutGetBalancesResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetBalancesResponse; +namespace OnlyFansAPI\Payouts\PayoutGetBalancesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta\_Cache; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta\_Credits; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta\_Cache; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta\_Credits; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Payouts/PayoutGetBalancesResponse/_Meta/_Cache.php b/src/Payouts/PayoutGetBalancesResponse/_Meta/_Cache.php index 02d8b164..492e0937 100644 --- a/src/Payouts/PayoutGetBalancesResponse/_Meta/_Cache.php +++ b/src/Payouts/PayoutGetBalancesResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Payouts/PayoutGetBalancesResponse/_Meta/_Credits.php b/src/Payouts/PayoutGetBalancesResponse/_Meta/_Credits.php index fb8f4050..1a359cdc 100644 --- a/src/Payouts/PayoutGetBalancesResponse/_Meta/_Credits.php +++ b/src/Payouts/PayoutGetBalancesResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Payouts/PayoutGetBalancesResponse/_Meta/_RateLimits.php b/src/Payouts/PayoutGetBalancesResponse/_Meta/_RateLimits.php index 9cff7ab3..72dfac99 100644 --- a/src/Payouts/PayoutGetBalancesResponse/_Meta/_RateLimits.php +++ b/src/Payouts/PayoutGetBalancesResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetBalancesResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetBalancesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse.php b/src/Payouts/PayoutGetEarningStatisticsResponse.php index 037373ed..a3a3385d 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data * * @phpstan-type PayoutGetEarningStatisticsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data.php index 276d39cc..64afc9a2 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_ * * @phpstan-type DataShape = array{list?: null|List_|ListShape} */ diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_.php index be66358d..4465a712 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; /** - * @phpstan-import-type MonthsShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months - * @phpstan-import-type TotalShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total + * @phpstan-import-type MonthsShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months + * @phpstan-import-type TotalShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total * * @phpstan-type ListShape = array{ * months?: null|Months|MonthsShape, total?: null|Total|TotalShape diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months.php index d13a5da4..4e944eed 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661; /** - * @phpstan-import-type _1735689661Shape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661 + * @phpstan-import-type _1735689661Shape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661 * * @phpstan-type MonthsShape = array{ - * _1735689661?: null|\Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661|_1735689661Shape, + * _1735689661?: null|\OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661|_1735689661Shape, * } */ final class Months implements BaseModel diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661.php index a60e2381..18a79102 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Subscribe; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Tip; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Subscribe; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Tip; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Subscribe - * @phpstan-import-type TipShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Tip + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Subscribe + * @phpstan-import-type TipShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661\Tip * * @phpstan-type _1735689661Shape = array{ * subscribes?: list|null, diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Subscribe.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Subscribe.php index ccd7dac9..d1c561a2 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Subscribe.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Tip.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Tip.php index a86506ef..aefb2138 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Tip.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Months/_1735689661/Tip.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Months\_1735689661; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TipShape = array{ diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total.php index d6a5ef1a..e4eb78dd 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\All; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\ChatMessages; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Post; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Subscribes; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Tips; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\All; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\ChatMessages; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Post; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Subscribes; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Tips; /** - * @phpstan-import-type AllShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\All - * @phpstan-import-type ChatMessagesShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\ChatMessages - * @phpstan-import-type PostShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Post - * @phpstan-import-type SubscribesShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Subscribes - * @phpstan-import-type TipsShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Tips + * @phpstan-import-type AllShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\All + * @phpstan-import-type ChatMessagesShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\ChatMessages + * @phpstan-import-type PostShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Post + * @phpstan-import-type SubscribesShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Subscribes + * @phpstan-import-type TipsShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total\Tips * * @phpstan-type TotalShape = array{ * all?: null|All|AllShape, diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/All.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/All.php index 14a56d2e..251957b0 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/All.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/All.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AllShape = array{totalGross?: float|null, totalNet?: float|null} diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/ChatMessages.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/ChatMessages.php index e8b42645..bfe9ba2c 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/ChatMessages.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/ChatMessages.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChatMessagesShape = array{ diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Post.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Post.php index 86e8b764..d11c0b5f 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Post.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Post.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PostShape = array{totalGross?: float|null, totalNet?: float|null} diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Subscribes.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Subscribes.php index a6e3aad5..7507bfa0 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Subscribes.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Subscribes.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribesShape = array{ diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Tips.php b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Tips.php index 3ee2430f..853dcf1f 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Tips.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/Data/List_/Total/Tips.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\Data\List_\Total; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TipsShape = array{totalGross?: float|null, totalNet?: float|null} diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta.php b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta.php index 80f61c42..ce88320c 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Cache; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Credits; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Cache; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Credits; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Cache.php b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Cache.php index 8f188338..c4d8471a 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Cache.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Credits.php b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Credits.php index 1430969e..609daab4 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Credits.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_RateLimits.php b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_RateLimits.php index 96174d77..86359170 100644 --- a/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_RateLimits.php +++ b/src/Payouts/PayoutGetEarningStatisticsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Payouts/PayoutGetEligibilityResponse.php b/src/Payouts/PayoutGetEligibilityResponse.php index 0ac529c3..d98a4795 100644 --- a/src/Payouts/PayoutGetEligibilityResponse.php +++ b/src/Payouts/PayoutGetEligibilityResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Payouts\PayoutGetEligibilityResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\Data * * @phpstan-type PayoutGetEligibilityResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Payouts/PayoutGetEligibilityResponse/Data.php b/src/Payouts/PayoutGetEligibilityResponse/Data.php index fd27f3a4..b284be4a 100644 --- a/src/Payouts/PayoutGetEligibilityResponse/Data.php +++ b/src/Payouts/PayoutGetEligibilityResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEligibilityResponse; +namespace OnlyFansAPI\Payouts\PayoutGetEligibilityResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Payouts/PayoutGetEligibilityResponse/_Meta.php b/src/Payouts/PayoutGetEligibilityResponse/_Meta.php index 98b238e8..31a981c0 100644 --- a/src/Payouts/PayoutGetEligibilityResponse/_Meta.php +++ b/src/Payouts/PayoutGetEligibilityResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEligibilityResponse; +namespace OnlyFansAPI\Payouts\PayoutGetEligibilityResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta\_Cache; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta\_Credits; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta\_Cache; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta\_Credits; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Cache.php b/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Cache.php index 97786274..ba2f0d02 100644 --- a/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Cache.php +++ b/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Credits.php b/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Credits.php index 97aba0c0..808911a8 100644 --- a/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Credits.php +++ b/src/Payouts/PayoutGetEligibilityResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Payouts/PayoutGetEligibilityResponse/_Meta/_RateLimits.php b/src/Payouts/PayoutGetEligibilityResponse/_Meta/_RateLimits.php index 5147ed57..8534768a 100644 --- a/src/Payouts/PayoutGetEligibilityResponse/_Meta/_RateLimits.php +++ b/src/Payouts/PayoutGetEligibilityResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutGetEligibilityResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutGetEligibilityResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Payouts/PayoutListRequestsParams.php b/src/Payouts/PayoutListRequestsParams.php index 95624ae4..56d40f47 100644 --- a/src/Payouts/PayoutListRequestsParams.php +++ b/src/Payouts/PayoutListRequestsParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List all payout requests for the account. * - * @see Onlyfansapi\Services\PayoutsService::listRequests() + * @see OnlyFansAPI\Services\PayoutsService::listRequests() * * @phpstan-type PayoutListRequestsParamsShape = array{ * limit?: string|null, offset?: string|null diff --git a/src/Payouts/PayoutListRequestsResponse.php b/src/Payouts/PayoutListRequestsResponse.php index bfc4aa32..9194f0ab 100644 --- a/src/Payouts/PayoutListRequestsResponse.php +++ b/src/Payouts/PayoutListRequestsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta; -use Onlyfansapi\Payouts\PayoutListRequestsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Payouts\PayoutListRequestsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Payouts\PayoutListRequestsResponse\Data * * @phpstan-type PayoutListRequestsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Payouts/PayoutListRequestsResponse/Data.php b/src/Payouts/PayoutListRequestsResponse/Data.php index b3bdb894..e7721131 100644 --- a/src/Payouts/PayoutListRequestsResponse/Data.php +++ b/src/Payouts/PayoutListRequestsResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutListRequestsResponse; +namespace OnlyFansAPI\Payouts\PayoutListRequestsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutListRequestsResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Payouts\PayoutListRequestsResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Payouts\PayoutListRequestsResponse\Data\List_ * * @phpstan-type DataShape = array{ * list?: list|null, marker?: int|null diff --git a/src/Payouts/PayoutListRequestsResponse/Data/List_.php b/src/Payouts/PayoutListRequestsResponse/Data/List_.php index 2c98b387..4aeceebb 100644 --- a/src/Payouts/PayoutListRequestsResponse/Data/List_.php +++ b/src/Payouts/PayoutListRequestsResponse/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutListRequestsResponse\Data; +namespace OnlyFansAPI\Payouts\PayoutListRequestsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{ diff --git a/src/Payouts/PayoutListRequestsResponse/_Meta.php b/src/Payouts/PayoutListRequestsResponse/_Meta.php index bb057358..6a92da42 100644 --- a/src/Payouts/PayoutListRequestsResponse/_Meta.php +++ b/src/Payouts/PayoutListRequestsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutListRequestsResponse; +namespace OnlyFansAPI\Payouts\PayoutListRequestsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta\_Cache; -use Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta\_Credits; -use Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta\_Cache; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta\_Credits; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Payouts/PayoutListRequestsResponse/_Meta/_Cache.php b/src/Payouts/PayoutListRequestsResponse/_Meta/_Cache.php index 93286e69..4af44e4f 100644 --- a/src/Payouts/PayoutListRequestsResponse/_Meta/_Cache.php +++ b/src/Payouts/PayoutListRequestsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Payouts/PayoutListRequestsResponse/_Meta/_Credits.php b/src/Payouts/PayoutListRequestsResponse/_Meta/_Credits.php index f55ae5a0..84a36701 100644 --- a/src/Payouts/PayoutListRequestsResponse/_Meta/_Credits.php +++ b/src/Payouts/PayoutListRequestsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Payouts/PayoutListRequestsResponse/_Meta/_RateLimits.php b/src/Payouts/PayoutListRequestsResponse/_Meta/_RateLimits.php index bcd90927..adbe2b40 100644 --- a/src/Payouts/PayoutListRequestsResponse/_Meta/_RateLimits.php +++ b/src/Payouts/PayoutListRequestsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutListRequestsResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutListRequestsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Payouts/PayoutRequestManualWithdrawalParams.php b/src/Payouts/PayoutRequestManualWithdrawalParams.php index 49cd9b87..accc96ea 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalParams.php +++ b/src/Payouts/PayoutRequestManualWithdrawalParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Request a payout withdrawal, if the frequency is set to manual. Refer to our `/payouts/balances` endpoint to retrieve the minimum and maximum withdrawal amounts. * - * @see Onlyfansapi\Services\PayoutsService::requestManualWithdrawal() + * @see OnlyFansAPI\Services\PayoutsService::requestManualWithdrawal() * * @phpstan-type PayoutRequestManualWithdrawalParamsShape = array{amount: int} */ diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse.php b/src/Payouts/PayoutRequestManualWithdrawalResponse.php index 3849e61e..e6079f79 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Concerns\SdkUnion; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; +use OnlyFansAPI\Core\Concerns\SdkUnion; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; /** - * @phpstan-import-type UnionMember0Shape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0 - * @phpstan-import-type UnionMember1Shape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1 + * @phpstan-import-type UnionMember0Shape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0 + * @phpstan-import-type UnionMember1Shape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1 * * @phpstan-type PayoutRequestManualWithdrawalResponseVariants = UnionMember0|UnionMember1 * @phpstan-type PayoutRequestManualWithdrawalResponseShape = PayoutRequestManualWithdrawalResponseVariants|UnionMember0Shape|UnionMember1Shape diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0.php index f1df83c1..a6ae9370 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data * * @phpstan-type UnionMember0Shape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data.php index 08d53a50..05d0b69c 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data\List_ * * @phpstan-type DataShape = array{list?: list|null} */ diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data/List_.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data/List_.php index 6812559c..982b41dd 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data/List_.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{rejectReason?: string|null, state?: string|null} diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta.php index a0f07ab2..d13dbe72 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Cache; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Credits; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Cache; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Credits; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Cache.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Cache.php index bd75ce15..fddd7815 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Cache.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Credits.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Credits.php index fef4d3fb..6d87233a 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Credits.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_RateLimits.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_RateLimits.php index 96449dd0..5a5ed6f8 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_RateLimits.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember0/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1.php index 0314de2f..c2af501b 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data * * @phpstan-type UnionMember1Shape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data.php index 133bd14d..0395e286 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data\List_ * * @phpstan-type DataShape = array{list?: list|null} */ diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data/List_.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data/List_.php index 9601d19b..cb22a2c4 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data/List_.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{rejectReason?: string|null, state?: string|null} diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta.php index 0b5529c6..a995e8c6 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Cache; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Credits; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Cache; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Credits; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Cache.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Cache.php index 9ba39efb..cb0f4079 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Cache.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Credits.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Credits.php index a59e543f..21d82780 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Credits.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_RateLimits.php b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_RateLimits.php index 88558bb3..7b4de554 100644 --- a/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_RateLimits.php +++ b/src/Payouts/PayoutRequestManualWithdrawalResponse/UnionMember1/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; +namespace OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Payouts/PayoutRetrieveEarningStatisticsParams.php b/src/Payouts/PayoutRetrieveEarningStatisticsParams.php index 642b678b..8ae92b71 100644 --- a/src/Payouts/PayoutRetrieveEarningStatisticsParams.php +++ b/src/Payouts/PayoutRetrieveEarningStatisticsParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get total and monthly time-series earning statistics for the account. * - * @see Onlyfansapi\Services\PayoutsService::retrieveEarningStatistics() + * @see OnlyFansAPI\Services\PayoutsService::retrieveEarningStatistics() * * @phpstan-type PayoutRetrieveEarningStatisticsParamsShape = array{ * endDate?: string|null, startDate?: string|null diff --git a/src/Payouts/PayoutUpdateFrequencyParams.php b/src/Payouts/PayoutUpdateFrequencyParams.php index 5f627db5..e4ad8929 100644 --- a/src/Payouts/PayoutUpdateFrequencyParams.php +++ b/src/Payouts/PayoutUpdateFrequencyParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyParams\Frequency; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyParams\Frequency; /** * Update the payout frequency for the account (Manual, Weekly or Monthly). * - * @see Onlyfansapi\Services\PayoutsService::updateFrequency() + * @see OnlyFansAPI\Services\PayoutsService::updateFrequency() * * @phpstan-type PayoutUpdateFrequencyParamsShape = array{ * frequency: Frequency|value-of diff --git a/src/Payouts/PayoutUpdateFrequencyParams/Frequency.php b/src/Payouts/PayoutUpdateFrequencyParams/Frequency.php index e9ad4921..b80bfdc8 100644 --- a/src/Payouts/PayoutUpdateFrequencyParams/Frequency.php +++ b/src/Payouts/PayoutUpdateFrequencyParams/Frequency.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutUpdateFrequencyParams; +namespace OnlyFansAPI\Payouts\PayoutUpdateFrequencyParams; /** * The new payout frequency. diff --git a/src/Payouts/PayoutUpdateFrequencyResponse.php b/src/Payouts/PayoutUpdateFrequencyResponse.php index 941c2973..e4610864 100644 --- a/src/Payouts/PayoutUpdateFrequencyResponse.php +++ b/src/Payouts/PayoutUpdateFrequencyResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts; +namespace OnlyFansAPI\Payouts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\Data * * @phpstan-type PayoutUpdateFrequencyResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Payouts/PayoutUpdateFrequencyResponse/Data.php b/src/Payouts/PayoutUpdateFrequencyResponse/Data.php index 1c9aab97..191d03e7 100644 --- a/src/Payouts/PayoutUpdateFrequencyResponse/Data.php +++ b/src/Payouts/PayoutUpdateFrequencyResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse; +namespace OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta.php b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta.php index 1a303eb9..f01634ce 100644 --- a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta.php +++ b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse; +namespace OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Cache; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Credits; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Cache; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Credits; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Cache.php b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Cache.php index 2f276af1..61f665ac 100644 --- a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Cache.php +++ b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Credits.php b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Credits.php index 1261b928..3291dd24 100644 --- a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Credits.php +++ b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_RateLimits.php b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_RateLimits.php index 8764bb89..be1e79c6 100644 --- a/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_RateLimits.php +++ b/src/Payouts/PayoutUpdateFrequencyResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse\_Meta; +namespace OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Comments/CommentCreateParams.php b/src/Posts/Comments/CommentCreateParams.php index 25ef42c7..676d5f4c 100644 --- a/src/Posts/Comments/CommentCreateParams.php +++ b/src/Posts/Comments/CommentCreateParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a comment on one of your posts. * - * @see Onlyfansapi\Services\Posts\CommentsService::create() + * @see OnlyFansAPI\Services\Posts\CommentsService::create() * * @phpstan-type CommentCreateParamsShape = array{ * account: string, text: string, answerTo?: int|null, giphyID?: string|null diff --git a/src/Posts/Comments/CommentDeleteParams.php b/src/Posts/Comments/CommentDeleteParams.php index 8421d6ca..8cfc17fc 100644 --- a/src/Posts/Comments/CommentDeleteParams.php +++ b/src/Posts/Comments/CommentDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a comment on one of your posts. * - * @see Onlyfansapi\Services\Posts\CommentsService::delete() + * @see OnlyFansAPI\Services\Posts\CommentsService::delete() * * @phpstan-type CommentDeleteParamsShape = array{account: string, postID: int} */ diff --git a/src/Posts/Comments/CommentDeleteResponse.php b/src/Posts/Comments/CommentDeleteResponse.php index b5454f72..804a05b5 100644 --- a/src/Posts/Comments/CommentDeleteResponse.php +++ b/src/Posts/Comments/CommentDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Comments\CommentDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Comments\CommentDeleteResponse\Data * * @phpstan-type CommentDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Comments/CommentDeleteResponse/Data.php b/src/Posts/Comments/CommentDeleteResponse/Data.php index 6ac8dad3..4dce2f88 100644 --- a/src/Posts/Comments/CommentDeleteResponse/Data.php +++ b/src/Posts/Comments/CommentDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentDeleteResponse; +namespace OnlyFansAPI\Posts\Comments\CommentDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Posts/Comments/CommentDeleteResponse/_Meta.php b/src/Posts/Comments/CommentDeleteResponse/_Meta.php index 5c0509c6..fee3c1d5 100644 --- a/src/Posts/Comments/CommentDeleteResponse/_Meta.php +++ b/src/Posts/Comments/CommentDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentDeleteResponse; +namespace OnlyFansAPI\Posts\Comments\CommentDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Comments/CommentDeleteResponse/_Meta/_Cache.php b/src/Posts/Comments/CommentDeleteResponse/_Meta/_Cache.php index f897607a..1c6e9ece 100644 --- a/src/Posts/Comments/CommentDeleteResponse/_Meta/_Cache.php +++ b/src/Posts/Comments/CommentDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Comments/CommentDeleteResponse/_Meta/_Credits.php b/src/Posts/Comments/CommentDeleteResponse/_Meta/_Credits.php index b16462c5..d999e1f4 100644 --- a/src/Posts/Comments/CommentDeleteResponse/_Meta/_Credits.php +++ b/src/Posts/Comments/CommentDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Comments/CommentDeleteResponse/_Meta/_RateLimits.php b/src/Posts/Comments/CommentDeleteResponse/_Meta/_RateLimits.php index 42c4fdf7..d716c50a 100644 --- a/src/Posts/Comments/CommentDeleteResponse/_Meta/_RateLimits.php +++ b/src/Posts/Comments/CommentDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentDeleteResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Comments/CommentLikeParams.php b/src/Posts/Comments/CommentLikeParams.php index 5d402e87..c28d2ccc 100644 --- a/src/Posts/Comments/CommentLikeParams.php +++ b/src/Posts/Comments/CommentLikeParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Like a comment on one of your posts. * - * @see Onlyfansapi\Services\Posts\CommentsService::like() + * @see OnlyFansAPI\Services\Posts\CommentsService::like() * * @phpstan-type CommentLikeParamsShape = array{account: string, postID: int} */ diff --git a/src/Posts/Comments/CommentLikeResponse.php b/src/Posts/Comments/CommentLikeResponse.php index f10d475a..8bf231f9 100644 --- a/src/Posts/Comments/CommentLikeResponse.php +++ b/src/Posts/Comments/CommentLikeResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta; -use Onlyfansapi\Posts\Comments\CommentLikeResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Comments\CommentLikeResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Comments\CommentLikeResponse\Data * * @phpstan-type CommentLikeResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Comments/CommentLikeResponse/Data.php b/src/Posts/Comments/CommentLikeResponse/Data.php index badf706b..c0897b8a 100644 --- a/src/Posts/Comments/CommentLikeResponse/Data.php +++ b/src/Posts/Comments/CommentLikeResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentLikeResponse; +namespace OnlyFansAPI\Posts\Comments\CommentLikeResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Posts/Comments/CommentLikeResponse/_Meta.php b/src/Posts/Comments/CommentLikeResponse/_Meta.php index d49beb77..8fac6f55 100644 --- a/src/Posts/Comments/CommentLikeResponse/_Meta.php +++ b/src/Posts/Comments/CommentLikeResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentLikeResponse; +namespace OnlyFansAPI\Posts\Comments\CommentLikeResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Comments/CommentLikeResponse/_Meta/_Cache.php b/src/Posts/Comments/CommentLikeResponse/_Meta/_Cache.php index 12da3354..771c6c66 100644 --- a/src/Posts/Comments/CommentLikeResponse/_Meta/_Cache.php +++ b/src/Posts/Comments/CommentLikeResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Comments/CommentLikeResponse/_Meta/_Credits.php b/src/Posts/Comments/CommentLikeResponse/_Meta/_Credits.php index 0975e642..4a501b77 100644 --- a/src/Posts/Comments/CommentLikeResponse/_Meta/_Credits.php +++ b/src/Posts/Comments/CommentLikeResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Comments/CommentLikeResponse/_Meta/_RateLimits.php b/src/Posts/Comments/CommentLikeResponse/_Meta/_RateLimits.php index 03234714..1e69b060 100644 --- a/src/Posts/Comments/CommentLikeResponse/_Meta/_RateLimits.php +++ b/src/Posts/Comments/CommentLikeResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentLikeResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentLikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Comments/CommentListParams.php b/src/Posts/Comments/CommentListParams.php index c1124886..45a29650 100644 --- a/src/Posts/Comments/CommentListParams.php +++ b/src/Posts/Comments/CommentListParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentListParams\Sort; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentListParams\Sort; /** * Get comments from one of your posts. * - * @see Onlyfansapi\Services\Posts\CommentsService::list() + * @see OnlyFansAPI\Services\Posts\CommentsService::list() * * @phpstan-type CommentListParamsShape = array{ * account: string, diff --git a/src/Posts/Comments/CommentListParams/Sort.php b/src/Posts/Comments/CommentListParams/Sort.php index d4046986..837df24e 100644 --- a/src/Posts/Comments/CommentListParams/Sort.php +++ b/src/Posts/Comments/CommentListParams/Sort.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListParams; +namespace OnlyFansAPI\Posts\Comments\CommentListParams; /** * Sort the returned comments (default = desc). diff --git a/src/Posts/Comments/CommentListResponse.php b/src/Posts/Comments/CommentListResponse.php index 5d385e66..a487f3e8 100644 --- a/src/Posts/Comments/CommentListResponse.php +++ b/src/Posts/Comments/CommentListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentListResponse\_Meta; -use Onlyfansapi\Posts\Comments\CommentListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta; +use OnlyFansAPI\Posts\Comments\CommentListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Comments\CommentListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Comments\CommentListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Comments\CommentListResponse\Data * * @phpstan-type CommentListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Comments/CommentListResponse/Data.php b/src/Posts/Comments/CommentListResponse/Data.php index 448da9cb..5aa1f86b 100644 --- a/src/Posts/Comments/CommentListResponse/Data.php +++ b/src/Posts/Comments/CommentListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListResponse; +namespace OnlyFansAPI\Posts\Comments\CommentListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Posts\Comments\CommentListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Posts\Comments\CommentListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null, nextOffset?: int|null diff --git a/src/Posts/Comments/CommentListResponse/Data/List_.php b/src/Posts/Comments/CommentListResponse/Data/List_.php index 5875b603..3f143324 100644 --- a/src/Posts/Comments/CommentListResponse/Data/List_.php +++ b/src/Posts/Comments/CommentListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListResponse\Data; +namespace OnlyFansAPI\Posts\Comments\CommentListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentListResponse\Data\List_\Author; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentListResponse\Data\List_\Author; /** - * @phpstan-import-type AuthorShape from \Onlyfansapi\Posts\Comments\CommentListResponse\Data\List_\Author + * @phpstan-import-type AuthorShape from \OnlyFansAPI\Posts\Comments\CommentListResponse\Data\List_\Author * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Posts/Comments/CommentListResponse/Data/List_/Author.php b/src/Posts/Comments/CommentListResponse/Data/List_/Author.php index 9f8ce765..f2e22389 100644 --- a/src/Posts/Comments/CommentListResponse/Data/List_/Author.php +++ b/src/Posts/Comments/CommentListResponse/Data/List_/Author.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListResponse\Data\List_; +namespace OnlyFansAPI\Posts\Comments\CommentListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AuthorShape = array{id?: int|null, _view?: string|null} diff --git a/src/Posts/Comments/CommentListResponse/_Meta.php b/src/Posts/Comments/CommentListResponse/_Meta.php index cfe3950c..69496c7f 100644 --- a/src/Posts/Comments/CommentListResponse/_Meta.php +++ b/src/Posts/Comments/CommentListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListResponse; +namespace OnlyFansAPI\Posts\Comments\CommentListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentListResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Comments\CommentListResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Comments\CommentListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Comments\CommentListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Comments\CommentListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Comments\CommentListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Comments/CommentListResponse/_Meta/_Cache.php b/src/Posts/Comments/CommentListResponse/_Meta/_Cache.php index 514cd615..26624b41 100644 --- a/src/Posts/Comments/CommentListResponse/_Meta/_Cache.php +++ b/src/Posts/Comments/CommentListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Comments/CommentListResponse/_Meta/_Credits.php b/src/Posts/Comments/CommentListResponse/_Meta/_Credits.php index 3a45f75a..4c4d077a 100644 --- a/src/Posts/Comments/CommentListResponse/_Meta/_Credits.php +++ b/src/Posts/Comments/CommentListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Comments/CommentListResponse/_Meta/_RateLimits.php b/src/Posts/Comments/CommentListResponse/_Meta/_RateLimits.php index e6acb64b..0fad19cc 100644 --- a/src/Posts/Comments/CommentListResponse/_Meta/_RateLimits.php +++ b/src/Posts/Comments/CommentListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentListResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Comments/CommentNewResponse.php b/src/Posts/Comments/CommentNewResponse.php index fec8d2c9..036c2869 100644 --- a/src/Posts/Comments/CommentNewResponse.php +++ b/src/Posts/Comments/CommentNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta; -use Onlyfansapi\Posts\Comments\CommentNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\Data * * @phpstan-type CommentNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Comments/CommentNewResponse/Data.php b/src/Posts/Comments/CommentNewResponse/Data.php index 4338075e..f22268af 100644 --- a/src/Posts/Comments/CommentNewResponse/Data.php +++ b/src/Posts/Comments/CommentNewResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author; /** - * @phpstan-import-type AuthorShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author + * @phpstan-import-type AuthorShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Posts/Comments/CommentNewResponse/Data/Author.php b/src/Posts/Comments/CommentNewResponse/Data/Author.php index 78c0f247..5f96203f 100644 --- a/src/Posts/Comments/CommentNewResponse/Data/Author.php +++ b/src/Posts/Comments/CommentNewResponse/Data/Author.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse\Data; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author\AvatarThumbs; -use Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author\HeaderSize; -use Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author\HeaderThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author\AvatarThumbs; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author\HeaderSize; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author\HeaderThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author\HeaderThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author\HeaderThumbs * * @phpstan-type AuthorShape = array{ * id?: int|null, diff --git a/src/Posts/Comments/CommentNewResponse/Data/Author/AvatarThumbs.php b/src/Posts/Comments/CommentNewResponse/Data/Author/AvatarThumbs.php index 8c6c4bfd..52130abe 100644 --- a/src/Posts/Comments/CommentNewResponse/Data/Author/AvatarThumbs.php +++ b/src/Posts/Comments/CommentNewResponse/Data/Author/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderSize.php b/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderSize.php index 571b2b1a..b4a9a572 100644 --- a/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderSize.php +++ b/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderThumbs.php b/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderThumbs.php index cdb13f2f..8d8ca8a2 100644 --- a/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderThumbs.php +++ b/src/Posts/Comments/CommentNewResponse/Data/Author/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse\Data\Author; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse\Data\Author; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Posts/Comments/CommentNewResponse/_Meta.php b/src/Posts/Comments/CommentNewResponse/_Meta.php index 9b86123f..f4585c12 100644 --- a/src/Posts/Comments/CommentNewResponse/_Meta.php +++ b/src/Posts/Comments/CommentNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Comments/CommentNewResponse/_Meta/_Cache.php b/src/Posts/Comments/CommentNewResponse/_Meta/_Cache.php index a8e743ac..e4b86ddb 100644 --- a/src/Posts/Comments/CommentNewResponse/_Meta/_Cache.php +++ b/src/Posts/Comments/CommentNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Comments/CommentNewResponse/_Meta/_Credits.php b/src/Posts/Comments/CommentNewResponse/_Meta/_Credits.php index da4e91cf..242e1229 100644 --- a/src/Posts/Comments/CommentNewResponse/_Meta/_Credits.php +++ b/src/Posts/Comments/CommentNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Comments/CommentNewResponse/_Meta/_RateLimits.php b/src/Posts/Comments/CommentNewResponse/_Meta/_RateLimits.php index a765bd1e..7e67a669 100644 --- a/src/Posts/Comments/CommentNewResponse/_Meta/_RateLimits.php +++ b/src/Posts/Comments/CommentNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentNewResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Comments/CommentPinParams.php b/src/Posts/Comments/CommentPinParams.php index ebcf0624..5fc6a0d1 100644 --- a/src/Posts/Comments/CommentPinParams.php +++ b/src/Posts/Comments/CommentPinParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Pin a comment on one of your posts. * - * @see Onlyfansapi\Services\Posts\CommentsService::pin() + * @see OnlyFansAPI\Services\Posts\CommentsService::pin() * * @phpstan-type CommentPinParamsShape = array{account: string, postID: int} */ diff --git a/src/Posts/Comments/CommentPinResponse.php b/src/Posts/Comments/CommentPinResponse.php index 1fe84c4d..fcf89141 100644 --- a/src/Posts/Comments/CommentPinResponse.php +++ b/src/Posts/Comments/CommentPinResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta; -use Onlyfansapi\Posts\Comments\CommentPinResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta; +use OnlyFansAPI\Posts\Comments\CommentPinResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Comments\CommentPinResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Comments\CommentPinResponse\Data * * @phpstan-type CommentPinResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Comments/CommentPinResponse/Data.php b/src/Posts/Comments/CommentPinResponse/Data.php index 1daaa952..16caad05 100644 --- a/src/Posts/Comments/CommentPinResponse/Data.php +++ b/src/Posts/Comments/CommentPinResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentPinResponse; +namespace OnlyFansAPI\Posts\Comments\CommentPinResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Posts/Comments/CommentPinResponse/_Meta.php b/src/Posts/Comments/CommentPinResponse/_Meta.php index 2cd33eb1..e8aca28f 100644 --- a/src/Posts/Comments/CommentPinResponse/_Meta.php +++ b/src/Posts/Comments/CommentPinResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentPinResponse; +namespace OnlyFansAPI\Posts\Comments\CommentPinResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Comments/CommentPinResponse/_Meta/_Cache.php b/src/Posts/Comments/CommentPinResponse/_Meta/_Cache.php index f5ea017d..d2b31485 100644 --- a/src/Posts/Comments/CommentPinResponse/_Meta/_Cache.php +++ b/src/Posts/Comments/CommentPinResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Comments/CommentPinResponse/_Meta/_Credits.php b/src/Posts/Comments/CommentPinResponse/_Meta/_Credits.php index 7be4192b..288e5a2f 100644 --- a/src/Posts/Comments/CommentPinResponse/_Meta/_Credits.php +++ b/src/Posts/Comments/CommentPinResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Comments/CommentPinResponse/_Meta/_RateLimits.php b/src/Posts/Comments/CommentPinResponse/_Meta/_RateLimits.php index b5ed8bb3..73cceac3 100644 --- a/src/Posts/Comments/CommentPinResponse/_Meta/_RateLimits.php +++ b/src/Posts/Comments/CommentPinResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentPinResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentPinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Comments/CommentUnlikeParams.php b/src/Posts/Comments/CommentUnlikeParams.php index c27c98f5..4d5d5048 100644 --- a/src/Posts/Comments/CommentUnlikeParams.php +++ b/src/Posts/Comments/CommentUnlikeParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unlike a comment on one of your posts. * - * @see Onlyfansapi\Services\Posts\CommentsService::unlike() + * @see OnlyFansAPI\Services\Posts\CommentsService::unlike() * * @phpstan-type CommentUnlikeParamsShape = array{account: string, postID: int} */ diff --git a/src/Posts/Comments/CommentUnlikeResponse.php b/src/Posts/Comments/CommentUnlikeResponse.php index d3c49924..148fe35f 100644 --- a/src/Posts/Comments/CommentUnlikeResponse.php +++ b/src/Posts/Comments/CommentUnlikeResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Comments\CommentUnlikeResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\Data * * @phpstan-type CommentUnlikeResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Comments/CommentUnlikeResponse/Data.php b/src/Posts/Comments/CommentUnlikeResponse/Data.php index fa1bb680..8999e019 100644 --- a/src/Posts/Comments/CommentUnlikeResponse/Data.php +++ b/src/Posts/Comments/CommentUnlikeResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnlikeResponse; +namespace OnlyFansAPI\Posts\Comments\CommentUnlikeResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Posts/Comments/CommentUnlikeResponse/_Meta.php b/src/Posts/Comments/CommentUnlikeResponse/_Meta.php index 7f3ba18f..7024bb98 100644 --- a/src/Posts/Comments/CommentUnlikeResponse/_Meta.php +++ b/src/Posts/Comments/CommentUnlikeResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnlikeResponse; +namespace OnlyFansAPI\Posts\Comments\CommentUnlikeResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Cache.php b/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Cache.php index 7f85bd5b..751638ed 100644 --- a/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Cache.php +++ b/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Credits.php b/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Credits.php index bfb10a69..07dac920 100644 --- a/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Credits.php +++ b/src/Posts/Comments/CommentUnlikeResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Comments/CommentUnlikeResponse/_Meta/_RateLimits.php b/src/Posts/Comments/CommentUnlikeResponse/_Meta/_RateLimits.php index 1f11653a..b85eac4d 100644 --- a/src/Posts/Comments/CommentUnlikeResponse/_Meta/_RateLimits.php +++ b/src/Posts/Comments/CommentUnlikeResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnlikeResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentUnlikeResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Comments/CommentUnpinParams.php b/src/Posts/Comments/CommentUnpinParams.php index 91da59a0..85c87fde 100644 --- a/src/Posts/Comments/CommentUnpinParams.php +++ b/src/Posts/Comments/CommentUnpinParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unpin a comment from one of your posts. * - * @see Onlyfansapi\Services\Posts\CommentsService::unpin() + * @see OnlyFansAPI\Services\Posts\CommentsService::unpin() * * @phpstan-type CommentUnpinParamsShape = array{account: string, postID: int} */ diff --git a/src/Posts/Comments/CommentUnpinResponse.php b/src/Posts/Comments/CommentUnpinResponse.php index 74e3ff2b..9eb271fe 100644 --- a/src/Posts/Comments/CommentUnpinResponse.php +++ b/src/Posts/Comments/CommentUnpinResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments; +namespace OnlyFansAPI\Posts\Comments; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Comments\CommentUnpinResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Comments\CommentUnpinResponse\Data * * @phpstan-type CommentUnpinResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Comments/CommentUnpinResponse/Data.php b/src/Posts/Comments/CommentUnpinResponse/Data.php index dbb12219..d5ff3838 100644 --- a/src/Posts/Comments/CommentUnpinResponse/Data.php +++ b/src/Posts/Comments/CommentUnpinResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnpinResponse; +namespace OnlyFansAPI\Posts\Comments\CommentUnpinResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Posts/Comments/CommentUnpinResponse/_Meta.php b/src/Posts/Comments/CommentUnpinResponse/_Meta.php index f129ba05..08af47f1 100644 --- a/src/Posts/Comments/CommentUnpinResponse/_Meta.php +++ b/src/Posts/Comments/CommentUnpinResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnpinResponse; +namespace OnlyFansAPI\Posts\Comments\CommentUnpinResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Comments/CommentUnpinResponse/_Meta/_Cache.php b/src/Posts/Comments/CommentUnpinResponse/_Meta/_Cache.php index 10dec064..ebb63bf6 100644 --- a/src/Posts/Comments/CommentUnpinResponse/_Meta/_Cache.php +++ b/src/Posts/Comments/CommentUnpinResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Comments/CommentUnpinResponse/_Meta/_Credits.php b/src/Posts/Comments/CommentUnpinResponse/_Meta/_Credits.php index 4db5cc45..cc349c1a 100644 --- a/src/Posts/Comments/CommentUnpinResponse/_Meta/_Credits.php +++ b/src/Posts/Comments/CommentUnpinResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Comments/CommentUnpinResponse/_Meta/_RateLimits.php b/src/Posts/Comments/CommentUnpinResponse/_Meta/_RateLimits.php index f1bc6063..7c94017d 100644 --- a/src/Posts/Comments/CommentUnpinResponse/_Meta/_RateLimits.php +++ b/src/Posts/Comments/CommentUnpinResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Comments\CommentUnpinResponse\_Meta; +namespace OnlyFansAPI\Posts\Comments\CommentUnpinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Labels/LabelCreateParams.php b/src/Posts/Labels/LabelCreateParams.php index 46967a49..5fc10eaf 100644 --- a/src/Posts/Labels/LabelCreateParams.php +++ b/src/Posts/Labels/LabelCreateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels; +namespace OnlyFansAPI\Posts\Labels; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a new post label. * - * @see Onlyfansapi\Services\Posts\LabelsService::create() + * @see OnlyFansAPI\Services\Posts\LabelsService::create() * * @phpstan-type LabelCreateParamsShape = array{name: string} */ diff --git a/src/Posts/Labels/LabelListParams.php b/src/Posts/Labels/LabelListParams.php index a7d18f3a..f92a0776 100644 --- a/src/Posts/Labels/LabelListParams.php +++ b/src/Posts/Labels/LabelListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels; +namespace OnlyFansAPI\Posts\Labels; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List the labels that you can use to organize your posts. * - * @see Onlyfansapi\Services\Posts\LabelsService::list() + * @see OnlyFansAPI\Services\Posts\LabelsService::list() * * @phpstan-type LabelListParamsShape = array{ * limit?: string|null, offset?: string|null diff --git a/src/Posts/Labels/LabelListResponse.php b/src/Posts/Labels/LabelListResponse.php index de55f5a1..3e1490aa 100644 --- a/src/Posts/Labels/LabelListResponse.php +++ b/src/Posts/Labels/LabelListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels; +namespace OnlyFansAPI\Posts\Labels; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Labels\LabelListResponse\_Meta; -use Onlyfansapi\Posts\Labels\LabelListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta; +use OnlyFansAPI\Posts\Labels\LabelListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Labels\LabelListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Labels\LabelListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Labels\LabelListResponse\Data * * @phpstan-type LabelListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Labels/LabelListResponse/Data.php b/src/Posts/Labels/LabelListResponse/Data.php index 80033822..e4a45c4d 100644 --- a/src/Posts/Labels/LabelListResponse/Data.php +++ b/src/Posts/Labels/LabelListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelListResponse; +namespace OnlyFansAPI\Posts\Labels\LabelListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Labels\LabelListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Labels\LabelListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Posts\Labels\LabelListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Posts\Labels\LabelListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hashSort?: string|null, diff --git a/src/Posts/Labels/LabelListResponse/Data/List_.php b/src/Posts/Labels/LabelListResponse/Data/List_.php index 121bc19b..8f995807 100644 --- a/src/Posts/Labels/LabelListResponse/Data/List_.php +++ b/src/Posts/Labels/LabelListResponse/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelListResponse\Data; +namespace OnlyFansAPI\Posts\Labels\LabelListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{ diff --git a/src/Posts/Labels/LabelListResponse/_Meta.php b/src/Posts/Labels/LabelListResponse/_Meta.php index d2f64e37..5ca99299 100644 --- a/src/Posts/Labels/LabelListResponse/_Meta.php +++ b/src/Posts/Labels/LabelListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelListResponse; +namespace OnlyFansAPI\Posts\Labels\LabelListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Labels\LabelListResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Labels\LabelListResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Labels\LabelListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Labels\LabelListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Labels\LabelListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Labels\LabelListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Labels/LabelListResponse/_Meta/_Cache.php b/src/Posts/Labels/LabelListResponse/_Meta/_Cache.php index b4abaa07..2da20cb7 100644 --- a/src/Posts/Labels/LabelListResponse/_Meta/_Cache.php +++ b/src/Posts/Labels/LabelListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelListResponse\_Meta; +namespace OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Labels/LabelListResponse/_Meta/_Credits.php b/src/Posts/Labels/LabelListResponse/_Meta/_Credits.php index 6c52725f..5616ab34 100644 --- a/src/Posts/Labels/LabelListResponse/_Meta/_Credits.php +++ b/src/Posts/Labels/LabelListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelListResponse\_Meta; +namespace OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Labels/LabelListResponse/_Meta/_RateLimits.php b/src/Posts/Labels/LabelListResponse/_Meta/_RateLimits.php index d5b88975..5c5a3ff8 100644 --- a/src/Posts/Labels/LabelListResponse/_Meta/_RateLimits.php +++ b/src/Posts/Labels/LabelListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelListResponse\_Meta; +namespace OnlyFansAPI\Posts\Labels\LabelListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/Labels/LabelNewResponse.php b/src/Posts/Labels/LabelNewResponse.php index 07dd206e..c5368803 100644 --- a/src/Posts/Labels/LabelNewResponse.php +++ b/src/Posts/Labels/LabelNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels; +namespace OnlyFansAPI\Posts\Labels; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta; -use Onlyfansapi\Posts\Labels\LabelNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta; +use OnlyFansAPI\Posts\Labels\LabelNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\Labels\LabelNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\Labels\LabelNewResponse\Data * * @phpstan-type LabelNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/Labels/LabelNewResponse/Data.php b/src/Posts/Labels/LabelNewResponse/Data.php index be691f4e..63167eb3 100644 --- a/src/Posts/Labels/LabelNewResponse/Data.php +++ b/src/Posts/Labels/LabelNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelNewResponse; +namespace OnlyFansAPI\Posts\Labels\LabelNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Posts/Labels/LabelNewResponse/_Meta.php b/src/Posts/Labels/LabelNewResponse/_Meta.php index 3eb5df0e..6444af41 100644 --- a/src/Posts/Labels/LabelNewResponse/_Meta.php +++ b/src/Posts/Labels/LabelNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelNewResponse; +namespace OnlyFansAPI\Posts\Labels\LabelNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta\_Cache; -use Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta\_Credits; -use Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/Labels/LabelNewResponse/_Meta/_Cache.php b/src/Posts/Labels/LabelNewResponse/_Meta/_Cache.php index ebf68889..af0e8988 100644 --- a/src/Posts/Labels/LabelNewResponse/_Meta/_Cache.php +++ b/src/Posts/Labels/LabelNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta; +namespace OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/Labels/LabelNewResponse/_Meta/_Credits.php b/src/Posts/Labels/LabelNewResponse/_Meta/_Credits.php index 22276a96..07552634 100644 --- a/src/Posts/Labels/LabelNewResponse/_Meta/_Credits.php +++ b/src/Posts/Labels/LabelNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta; +namespace OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/Labels/LabelNewResponse/_Meta/_RateLimits.php b/src/Posts/Labels/LabelNewResponse/_Meta/_RateLimits.php index b1b0aefe..fcbbb6ac 100644 --- a/src/Posts/Labels/LabelNewResponse/_Meta/_RateLimits.php +++ b/src/Posts/Labels/LabelNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\Labels\LabelNewResponse\_Meta; +namespace OnlyFansAPI\Posts\Labels\LabelNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/PostArchiveParams.php b/src/Posts/PostArchiveParams.php index 30d55ce8..4a246334 100644 --- a/src/Posts/PostArchiveParams.php +++ b/src/Posts/PostArchiveParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts; +namespace OnlyFansAPI\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Archive a post from your account. Also can be used to move posts between the Regular and Private Archive. * - * @see Onlyfansapi\Services\PostsService::archive() + * @see OnlyFansAPI\Services\PostsService::archive() * * @phpstan-type PostArchiveParamsShape = array{ * account: string, privateArchive?: bool|null diff --git a/src/Posts/PostArchiveResponse.php b/src/Posts/PostArchiveResponse.php index d5e87bc2..e231827d 100644 --- a/src/Posts/PostArchiveResponse.php +++ b/src/Posts/PostArchiveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts; +namespace OnlyFansAPI\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostArchiveResponse\_Meta; -use Onlyfansapi\Posts\PostArchiveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostArchiveResponse\_Meta; +use OnlyFansAPI\Posts\PostArchiveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\PostArchiveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\PostArchiveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\PostArchiveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\PostArchiveResponse\Data * * @phpstan-type PostArchiveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/PostArchiveResponse/Data.php b/src/Posts/PostArchiveResponse/Data.php index 518adfdb..3a7a6c4d 100644 --- a/src/Posts/PostArchiveResponse/Data.php +++ b/src/Posts/PostArchiveResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostArchiveResponse; +namespace OnlyFansAPI\Posts\PostArchiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostArchiveResponse\Data\Counters; -use Onlyfansapi\Posts\PostArchiveResponse\Data\LabelState; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostArchiveResponse\Data\Counters; +use OnlyFansAPI\Posts\PostArchiveResponse\Data\LabelState; /** - * @phpstan-import-type CountersShape from \Onlyfansapi\Posts\PostArchiveResponse\Data\Counters - * @phpstan-import-type LabelStateShape from \Onlyfansapi\Posts\PostArchiveResponse\Data\LabelState + * @phpstan-import-type CountersShape from \OnlyFansAPI\Posts\PostArchiveResponse\Data\Counters + * @phpstan-import-type LabelStateShape from \OnlyFansAPI\Posts\PostArchiveResponse\Data\LabelState * * @phpstan-type DataShape = array{ * counters?: null|Counters|CountersShape, diff --git a/src/Posts/PostArchiveResponse/Data/Counters.php b/src/Posts/PostArchiveResponse/Data/Counters.php index f5801608..7de9f593 100644 --- a/src/Posts/PostArchiveResponse/Data/Counters.php +++ b/src/Posts/PostArchiveResponse/Data/Counters.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostArchiveResponse\Data; +namespace OnlyFansAPI\Posts\PostArchiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CountersShape = array{ diff --git a/src/Posts/PostArchiveResponse/Data/LabelState.php b/src/Posts/PostArchiveResponse/Data/LabelState.php index c9f65c2c..264ad36f 100644 --- a/src/Posts/PostArchiveResponse/Data/LabelState.php +++ b/src/Posts/PostArchiveResponse/Data/LabelState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostArchiveResponse\Data; +namespace OnlyFansAPI\Posts\PostArchiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelStateShape = array{ diff --git a/src/Posts/PostArchiveResponse/_Meta.php b/src/Posts/PostArchiveResponse/_Meta.php index 22688e7e..2708f77c 100644 --- a/src/Posts/PostArchiveResponse/_Meta.php +++ b/src/Posts/PostArchiveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostArchiveResponse; +namespace OnlyFansAPI\Posts\PostArchiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostArchiveResponse\_Meta\_Cache; -use Onlyfansapi\Posts\PostArchiveResponse\_Meta\_Credits; -use Onlyfansapi\Posts\PostArchiveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostArchiveResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\PostArchiveResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\PostArchiveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\PostArchiveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\PostArchiveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\PostArchiveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\PostArchiveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\PostArchiveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\PostArchiveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/PostArchiveResponse/_Meta/_Cache.php b/src/Posts/PostArchiveResponse/_Meta/_Cache.php index 43073e92..a9ccb10f 100644 --- a/src/Posts/PostArchiveResponse/_Meta/_Cache.php +++ b/src/Posts/PostArchiveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostArchiveResponse\_Meta; +namespace OnlyFansAPI\Posts\PostArchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/PostArchiveResponse/_Meta/_Credits.php b/src/Posts/PostArchiveResponse/_Meta/_Credits.php index 80eccfcd..cad42cbe 100644 --- a/src/Posts/PostArchiveResponse/_Meta/_Credits.php +++ b/src/Posts/PostArchiveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostArchiveResponse\_Meta; +namespace OnlyFansAPI\Posts\PostArchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/PostArchiveResponse/_Meta/_RateLimits.php b/src/Posts/PostArchiveResponse/_Meta/_RateLimits.php index d764dc54..3dc19ada 100644 --- a/src/Posts/PostArchiveResponse/_Meta/_RateLimits.php +++ b/src/Posts/PostArchiveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostArchiveResponse\_Meta; +namespace OnlyFansAPI\Posts\PostArchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/PostCreateParams.php b/src/Posts/PostCreateParams.php index b8dba009..b519e302 100644 --- a/src/Posts/PostCreateParams.php +++ b/src/Posts/PostCreateParams.php @@ -2,22 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts; +namespace OnlyFansAPI\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostCreateParams\VotingType; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostCreateParams\BlockBannedWords; +use OnlyFansAPI\Posts\PostCreateParams\VotingType; /** * Compose and send a new post to your OnlyFans account. * - * @see Onlyfansapi\Services\PostsService::create() + * @see OnlyFansAPI\Services\PostsService::create() * * @phpstan-type PostCreateParamsShape = array{ * text: string, + * blockBannedWords?: null|BlockBannedWords|value-of, * expireDays?: int|null, * fundRaisingTargetAmount?: int|null, * fundRaisingTipsPresets?: list|null, @@ -45,6 +47,14 @@ final class PostCreateParams implements BaseModel #[Required] public string $text; + /** + * Screen `text` for OnlyFans banned words and block the post if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @var value-of|null $blockBannedWords + */ + #[Optional(enum: BlockBannedWords::class)] + public ?string $blockBannedWords; + /** * Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. */ @@ -157,6 +167,7 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param BlockBannedWords|value-of|null $blockBannedWords * @param list|null $fundRaisingTipsPresets * @param list|null $mediaFiles * @param list|null $previews @@ -165,6 +176,7 @@ public function __construct() */ public static function with( string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?int $expireDays = null, ?int $fundRaisingTargetAmount = null, ?array $fundRaisingTipsPresets = null, @@ -183,6 +195,7 @@ public static function with( $self['text'] = $text; + null !== $blockBannedWords && $self['blockBannedWords'] = $blockBannedWords; null !== $expireDays && $self['expireDays'] = $expireDays; null !== $fundRaisingTargetAmount && $self['fundRaisingTargetAmount'] = $fundRaisingTargetAmount; null !== $fundRaisingTipsPresets && $self['fundRaisingTipsPresets'] = $fundRaisingTipsPresets; @@ -211,6 +224,20 @@ public function withText(string $text): self return $self; } + /** + * Screen `text` for OnlyFans banned words and block the post if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @param BlockBannedWords|value-of $blockBannedWords + */ + public function withBlockBannedWords( + BlockBannedWords|string $blockBannedWords + ): self { + $self = clone $this; + $self['blockBannedWords'] = $blockBannedWords; + + return $self; + } + /** * Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. */ diff --git a/src/Posts/PostCreateParams/BlockBannedWords.php b/src/Posts/PostCreateParams/BlockBannedWords.php new file mode 100644 index 00000000..c9ca0167 --- /dev/null +++ b/src/Posts/PostCreateParams/BlockBannedWords.php @@ -0,0 +1,17 @@ +|null, diff --git a/src/Posts/PostStatsResponse/Data/CommentChart.php b/src/Posts/PostStatsResponse/Data/CommentChart.php index 612bd971..85a44cb9 100644 --- a/src/Posts/PostStatsResponse/Data/CommentChart.php +++ b/src/Posts/PostStatsResponse/Data/CommentChart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\Data; +namespace OnlyFansAPI\Posts\PostStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CommentChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Posts/PostStatsResponse/Data/LikeChart.php b/src/Posts/PostStatsResponse/Data/LikeChart.php index 4c40e8e3..74710de5 100644 --- a/src/Posts/PostStatsResponse/Data/LikeChart.php +++ b/src/Posts/PostStatsResponse/Data/LikeChart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\Data; +namespace OnlyFansAPI\Posts\PostStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LikeChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Posts/PostStatsResponse/Data/LookChart.php b/src/Posts/PostStatsResponse/Data/LookChart.php index 3e3fc96e..bc3afb4a 100644 --- a/src/Posts/PostStatsResponse/Data/LookChart.php +++ b/src/Posts/PostStatsResponse/Data/LookChart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\Data; +namespace OnlyFansAPI\Posts\PostStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LookChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Posts/PostStatsResponse/Data/PurchasesChart.php b/src/Posts/PostStatsResponse/Data/PurchasesChart.php index cbb0af09..6a1aa72a 100644 --- a/src/Posts/PostStatsResponse/Data/PurchasesChart.php +++ b/src/Posts/PostStatsResponse/Data/PurchasesChart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\Data; +namespace OnlyFansAPI\Posts\PostStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PurchasesChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Posts/PostStatsResponse/Data/TipChart.php b/src/Posts/PostStatsResponse/Data/TipChart.php index e18bb74f..08be6c6f 100644 --- a/src/Posts/PostStatsResponse/Data/TipChart.php +++ b/src/Posts/PostStatsResponse/Data/TipChart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\Data; +namespace OnlyFansAPI\Posts\PostStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TipChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Posts/PostStatsResponse/Data/TipSumChart.php b/src/Posts/PostStatsResponse/Data/TipSumChart.php index 9bab11f1..d1187c46 100644 --- a/src/Posts/PostStatsResponse/Data/TipSumChart.php +++ b/src/Posts/PostStatsResponse/Data/TipSumChart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\Data; +namespace OnlyFansAPI\Posts\PostStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TipSumChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Posts/PostStatsResponse/Data/UniqueLookChart.php b/src/Posts/PostStatsResponse/Data/UniqueLookChart.php index 8bb7a5bd..4137106e 100644 --- a/src/Posts/PostStatsResponse/Data/UniqueLookChart.php +++ b/src/Posts/PostStatsResponse/Data/UniqueLookChart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\Data; +namespace OnlyFansAPI\Posts\PostStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type UniqueLookChartShape = array{count?: int|null, date?: string|null} diff --git a/src/Posts/PostStatsResponse/_Meta.php b/src/Posts/PostStatsResponse/_Meta.php index 483912c7..6f261df2 100644 --- a/src/Posts/PostStatsResponse/_Meta.php +++ b/src/Posts/PostStatsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse; +namespace OnlyFansAPI\Posts\PostStatsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostStatsResponse\_Meta\_Cache; -use Onlyfansapi\Posts\PostStatsResponse\_Meta\_Credits; -use Onlyfansapi\Posts\PostStatsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostStatsResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\PostStatsResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\PostStatsResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\PostStatsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\PostStatsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\PostStatsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\PostStatsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\PostStatsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\PostStatsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/PostStatsResponse/_Meta/_Cache.php b/src/Posts/PostStatsResponse/_Meta/_Cache.php index 33b2ebd7..71adcc17 100644 --- a/src/Posts/PostStatsResponse/_Meta/_Cache.php +++ b/src/Posts/PostStatsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\_Meta; +namespace OnlyFansAPI\Posts\PostStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/PostStatsResponse/_Meta/_Credits.php b/src/Posts/PostStatsResponse/_Meta/_Credits.php index 493a1a28..57624dd1 100644 --- a/src/Posts/PostStatsResponse/_Meta/_Credits.php +++ b/src/Posts/PostStatsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\_Meta; +namespace OnlyFansAPI\Posts\PostStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/PostStatsResponse/_Meta/_RateLimits.php b/src/Posts/PostStatsResponse/_Meta/_RateLimits.php index b24c9035..e4e42268 100644 --- a/src/Posts/PostStatsResponse/_Meta/_RateLimits.php +++ b/src/Posts/PostStatsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostStatsResponse\_Meta; +namespace OnlyFansAPI\Posts\PostStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/PostUnarchiveParams.php b/src/Posts/PostUnarchiveParams.php index a7c47f7e..6e4eb243 100644 --- a/src/Posts/PostUnarchiveParams.php +++ b/src/Posts/PostUnarchiveParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts; +namespace OnlyFansAPI\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unarchive a post from your account. * - * @see Onlyfansapi\Services\PostsService::unarchive() + * @see OnlyFansAPI\Services\PostsService::unarchive() * * @phpstan-type PostUnarchiveParamsShape = array{ * account: string, privateArchive?: bool|null diff --git a/src/Posts/PostUnarchiveResponse.php b/src/Posts/PostUnarchiveResponse.php index 9ef23c5d..cde2640c 100644 --- a/src/Posts/PostUnarchiveResponse.php +++ b/src/Posts/PostUnarchiveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts; +namespace OnlyFansAPI\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostUnarchiveResponse\_Meta; -use Onlyfansapi\Posts\PostUnarchiveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta; +use OnlyFansAPI\Posts\PostUnarchiveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Posts\PostUnarchiveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Posts\PostUnarchiveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Posts\PostUnarchiveResponse\Data * * @phpstan-type PostUnarchiveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Posts/PostUnarchiveResponse/Data.php b/src/Posts/PostUnarchiveResponse/Data.php index fdfccdb6..6c3d9eb1 100644 --- a/src/Posts/PostUnarchiveResponse/Data.php +++ b/src/Posts/PostUnarchiveResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostUnarchiveResponse; +namespace OnlyFansAPI\Posts\PostUnarchiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostUnarchiveResponse\Data\Counters; -use Onlyfansapi\Posts\PostUnarchiveResponse\Data\LabelState; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostUnarchiveResponse\Data\Counters; +use OnlyFansAPI\Posts\PostUnarchiveResponse\Data\LabelState; /** - * @phpstan-import-type CountersShape from \Onlyfansapi\Posts\PostUnarchiveResponse\Data\Counters - * @phpstan-import-type LabelStateShape from \Onlyfansapi\Posts\PostUnarchiveResponse\Data\LabelState + * @phpstan-import-type CountersShape from \OnlyFansAPI\Posts\PostUnarchiveResponse\Data\Counters + * @phpstan-import-type LabelStateShape from \OnlyFansAPI\Posts\PostUnarchiveResponse\Data\LabelState * * @phpstan-type DataShape = array{ * counters?: null|Counters|CountersShape, diff --git a/src/Posts/PostUnarchiveResponse/Data/Counters.php b/src/Posts/PostUnarchiveResponse/Data/Counters.php index a8ee957f..408a0a0f 100644 --- a/src/Posts/PostUnarchiveResponse/Data/Counters.php +++ b/src/Posts/PostUnarchiveResponse/Data/Counters.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostUnarchiveResponse\Data; +namespace OnlyFansAPI\Posts\PostUnarchiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CountersShape = array{ diff --git a/src/Posts/PostUnarchiveResponse/Data/LabelState.php b/src/Posts/PostUnarchiveResponse/Data/LabelState.php index de5dca3a..a1a5a99e 100644 --- a/src/Posts/PostUnarchiveResponse/Data/LabelState.php +++ b/src/Posts/PostUnarchiveResponse/Data/LabelState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostUnarchiveResponse\Data; +namespace OnlyFansAPI\Posts\PostUnarchiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LabelStateShape = array{ diff --git a/src/Posts/PostUnarchiveResponse/_Meta.php b/src/Posts/PostUnarchiveResponse/_Meta.php index 09dfcda2..35051b0c 100644 --- a/src/Posts/PostUnarchiveResponse/_Meta.php +++ b/src/Posts/PostUnarchiveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostUnarchiveResponse; +namespace OnlyFansAPI\Posts\PostUnarchiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostUnarchiveResponse\_Meta\_Cache; -use Onlyfansapi\Posts\PostUnarchiveResponse\_Meta\_Credits; -use Onlyfansapi\Posts\PostUnarchiveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta\_Cache; +use OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta\_Credits; +use OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Posts\PostUnarchiveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Posts\PostUnarchiveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Posts\PostUnarchiveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Posts/PostUnarchiveResponse/_Meta/_Cache.php b/src/Posts/PostUnarchiveResponse/_Meta/_Cache.php index f388df90..5a8cc07a 100644 --- a/src/Posts/PostUnarchiveResponse/_Meta/_Cache.php +++ b/src/Posts/PostUnarchiveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostUnarchiveResponse\_Meta; +namespace OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Posts/PostUnarchiveResponse/_Meta/_Credits.php b/src/Posts/PostUnarchiveResponse/_Meta/_Credits.php index 535b18cb..52af0432 100644 --- a/src/Posts/PostUnarchiveResponse/_Meta/_Credits.php +++ b/src/Posts/PostUnarchiveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostUnarchiveResponse\_Meta; +namespace OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Posts/PostUnarchiveResponse/_Meta/_RateLimits.php b/src/Posts/PostUnarchiveResponse/_Meta/_RateLimits.php index 3e0e6e66..f4bcdbdc 100644 --- a/src/Posts/PostUnarchiveResponse/_Meta/_RateLimits.php +++ b/src/Posts/PostUnarchiveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts\PostUnarchiveResponse\_Meta; +namespace OnlyFansAPI\Posts\PostUnarchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Posts/PostUpdateParams.php b/src/Posts/PostUpdateParams.php index 387d1072..f6f03ab5 100644 --- a/src/Posts/PostUpdateParams.php +++ b/src/Posts/PostUpdateParams.php @@ -2,23 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Posts; +namespace OnlyFansAPI\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Posts\PostUpdateParams\VotingType; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Posts\PostUpdateParams\BlockBannedWords; +use OnlyFansAPI\Posts\PostUpdateParams\VotingType; /** * Update a posted, queued, or "saved for later" post. * - * @see Onlyfansapi\Services\PostsService::update() + * @see OnlyFansAPI\Services\PostsService::update() * * @phpstan-type PostUpdateParamsShape = array{ * account: string, * text: string, + * blockBannedWords?: null|BlockBannedWords|value-of, * expireDays?: int|null, * fundRaisingTargetAmount?: int|null, * fundRaisingTipsPresets?: list|null, @@ -49,6 +51,14 @@ final class PostUpdateParams implements BaseModel #[Required] public string $text; + /** + * Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @var value-of|null $blockBannedWords + */ + #[Optional(enum: BlockBannedWords::class)] + public ?string $blockBannedWords; + /** * Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. */ @@ -157,6 +167,7 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param BlockBannedWords|value-of|null $blockBannedWords * @param list|null $fundRaisingTipsPresets * @param list|null $votingOptions * @param VotingType|value-of|null $votingType @@ -164,6 +175,7 @@ public function __construct() public static function with( string $account, string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?int $expireDays = null, ?int $fundRaisingTargetAmount = null, ?array $fundRaisingTipsPresets = null, @@ -183,6 +195,7 @@ public static function with( $self['account'] = $account; $self['text'] = $text; + null !== $blockBannedWords && $self['blockBannedWords'] = $blockBannedWords; null !== $expireDays && $self['expireDays'] = $expireDays; null !== $fundRaisingTargetAmount && $self['fundRaisingTargetAmount'] = $fundRaisingTargetAmount; null !== $fundRaisingTipsPresets && $self['fundRaisingTipsPresets'] = $fundRaisingTipsPresets; @@ -219,6 +232,20 @@ public function withText(string $text): self return $self; } + /** + * Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. + * + * @param BlockBannedWords|value-of $blockBannedWords + */ + public function withBlockBannedWords( + BlockBannedWords|string $blockBannedWords + ): self { + $self = clone $this; + $self['blockBannedWords'] = $blockBannedWords; + + return $self; + } + /** * Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. */ diff --git a/src/Posts/PostUpdateParams/BlockBannedWords.php b/src/Posts/PostUpdateParams/BlockBannedWords.php new file mode 100644 index 00000000..4684bb34 --- /dev/null +++ b/src/Posts/PostUpdateParams/BlockBannedWords.php @@ -0,0 +1,17 @@ +|null diff --git a/src/Promotions/PromotionListResponse/Data/Item.php b/src/Promotions/PromotionListResponse/Data/Item.php index 6b15456e..8370714d 100644 --- a/src/Promotions/PromotionListResponse/Data/Item.php +++ b/src/Promotions/PromotionListResponse/Data/Item.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionListResponse\Data; +namespace OnlyFansAPI\Promotions\PromotionListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ItemShape = array{ diff --git a/src/Promotions/PromotionListResponse/_Meta.php b/src/Promotions/PromotionListResponse/_Meta.php index bee5140b..8f9f4734 100644 --- a/src/Promotions/PromotionListResponse/_Meta.php +++ b/src/Promotions/PromotionListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionListResponse; +namespace OnlyFansAPI\Promotions\PromotionListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Promotions\PromotionListResponse\_Meta\_Cache; -use Onlyfansapi\Promotions\PromotionListResponse\_Meta\_Credits; -use Onlyfansapi\Promotions\PromotionListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Promotions\PromotionListResponse\_Meta\_Cache; +use OnlyFansAPI\Promotions\PromotionListResponse\_Meta\_Credits; +use OnlyFansAPI\Promotions\PromotionListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Promotions\PromotionListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Promotions\PromotionListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Promotions\PromotionListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Promotions\PromotionListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Promotions\PromotionListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Promotions\PromotionListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Promotions/PromotionListResponse/_Meta/_Cache.php b/src/Promotions/PromotionListResponse/_Meta/_Cache.php index 0f1e1ac2..b04b5125 100644 --- a/src/Promotions/PromotionListResponse/_Meta/_Cache.php +++ b/src/Promotions/PromotionListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionListResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Promotions/PromotionListResponse/_Meta/_Credits.php b/src/Promotions/PromotionListResponse/_Meta/_Credits.php index 493b74ab..d262c501 100644 --- a/src/Promotions/PromotionListResponse/_Meta/_Credits.php +++ b/src/Promotions/PromotionListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionListResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Promotions/PromotionListResponse/_Meta/_RateLimits.php b/src/Promotions/PromotionListResponse/_Meta/_RateLimits.php index 09eb4cd3..17623afb 100644 --- a/src/Promotions/PromotionListResponse/_Meta/_RateLimits.php +++ b/src/Promotions/PromotionListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionListResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Promotions/PromotionNewResponse.php b/src/Promotions/PromotionNewResponse.php index c3a9aa48..c7222aaa 100644 --- a/src/Promotions/PromotionNewResponse.php +++ b/src/Promotions/PromotionNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions; +namespace OnlyFansAPI\Promotions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Promotions\PromotionNewResponse\_Meta; -use Onlyfansapi\Promotions\PromotionNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Promotions\PromotionNewResponse\_Meta; +use OnlyFansAPI\Promotions\PromotionNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Promotions\PromotionNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Promotions\PromotionNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Promotions\PromotionNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Promotions\PromotionNewResponse\Data * * @phpstan-type PromotionNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Promotions/PromotionNewResponse/Data.php b/src/Promotions/PromotionNewResponse/Data.php index 8225227f..ebb5d2b7 100644 --- a/src/Promotions/PromotionNewResponse/Data.php +++ b/src/Promotions/PromotionNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionNewResponse; +namespace OnlyFansAPI\Promotions\PromotionNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Promotions/PromotionNewResponse/_Meta.php b/src/Promotions/PromotionNewResponse/_Meta.php index 91bd220a..c7ea2b4e 100644 --- a/src/Promotions/PromotionNewResponse/_Meta.php +++ b/src/Promotions/PromotionNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionNewResponse; +namespace OnlyFansAPI\Promotions\PromotionNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Promotions\PromotionNewResponse\_Meta\_Cache; -use Onlyfansapi\Promotions\PromotionNewResponse\_Meta\_Credits; -use Onlyfansapi\Promotions\PromotionNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Promotions\PromotionNewResponse\_Meta\_Cache; +use OnlyFansAPI\Promotions\PromotionNewResponse\_Meta\_Credits; +use OnlyFansAPI\Promotions\PromotionNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Promotions\PromotionNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Promotions\PromotionNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Promotions\PromotionNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Promotions\PromotionNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Promotions\PromotionNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Promotions\PromotionNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Promotions/PromotionNewResponse/_Meta/_Cache.php b/src/Promotions/PromotionNewResponse/_Meta/_Cache.php index 2501b2f5..6bdfba50 100644 --- a/src/Promotions/PromotionNewResponse/_Meta/_Cache.php +++ b/src/Promotions/PromotionNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionNewResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Promotions/PromotionNewResponse/_Meta/_Credits.php b/src/Promotions/PromotionNewResponse/_Meta/_Credits.php index 3132b4f7..730662d2 100644 --- a/src/Promotions/PromotionNewResponse/_Meta/_Credits.php +++ b/src/Promotions/PromotionNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionNewResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Promotions/PromotionNewResponse/_Meta/_RateLimits.php b/src/Promotions/PromotionNewResponse/_Meta/_RateLimits.php index a7d921be..e190a2f0 100644 --- a/src/Promotions/PromotionNewResponse/_Meta/_RateLimits.php +++ b/src/Promotions/PromotionNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionNewResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Promotions/PromotionStopParams.php b/src/Promotions/PromotionStopParams.php index 3f40de72..b713e998 100644 --- a/src/Promotions/PromotionStopParams.php +++ b/src/Promotions/PromotionStopParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions; +namespace OnlyFansAPI\Promotions; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Stop an active promotion for the account. * - * @see Onlyfansapi\Services\PromotionsService::stop() + * @see OnlyFansAPI\Services\PromotionsService::stop() * * @phpstan-type PromotionStopParamsShape = array{account: string} */ diff --git a/src/Promotions/PromotionStopResponse.php b/src/Promotions/PromotionStopResponse.php index 6b367970..f9c9cf49 100644 --- a/src/Promotions/PromotionStopResponse.php +++ b/src/Promotions/PromotionStopResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions; +namespace OnlyFansAPI\Promotions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Promotions\PromotionStopResponse\_Meta; -use Onlyfansapi\Promotions\PromotionStopResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Promotions\PromotionStopResponse\_Meta; +use OnlyFansAPI\Promotions\PromotionStopResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Promotions\PromotionStopResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Promotions\PromotionStopResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Promotions\PromotionStopResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Promotions\PromotionStopResponse\Data * * @phpstan-type PromotionStopResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Promotions/PromotionStopResponse/Data.php b/src/Promotions/PromotionStopResponse/Data.php index d03883a1..b772985b 100644 --- a/src/Promotions/PromotionStopResponse/Data.php +++ b/src/Promotions/PromotionStopResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionStopResponse; +namespace OnlyFansAPI\Promotions\PromotionStopResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Promotions/PromotionStopResponse/_Meta.php b/src/Promotions/PromotionStopResponse/_Meta.php index c8a02242..707ab2ca 100644 --- a/src/Promotions/PromotionStopResponse/_Meta.php +++ b/src/Promotions/PromotionStopResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionStopResponse; +namespace OnlyFansAPI\Promotions\PromotionStopResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Promotions\PromotionStopResponse\_Meta\_Cache; -use Onlyfansapi\Promotions\PromotionStopResponse\_Meta\_Credits; -use Onlyfansapi\Promotions\PromotionStopResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Promotions\PromotionStopResponse\_Meta\_Cache; +use OnlyFansAPI\Promotions\PromotionStopResponse\_Meta\_Credits; +use OnlyFansAPI\Promotions\PromotionStopResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Promotions\PromotionStopResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Promotions\PromotionStopResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Promotions\PromotionStopResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Promotions\PromotionStopResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Promotions\PromotionStopResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Promotions\PromotionStopResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Promotions/PromotionStopResponse/_Meta/_Cache.php b/src/Promotions/PromotionStopResponse/_Meta/_Cache.php index 6e9dd50a..9e4418b4 100644 --- a/src/Promotions/PromotionStopResponse/_Meta/_Cache.php +++ b/src/Promotions/PromotionStopResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionStopResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionStopResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Promotions/PromotionStopResponse/_Meta/_Credits.php b/src/Promotions/PromotionStopResponse/_Meta/_Credits.php index 03a94cf1..bf2abae0 100644 --- a/src/Promotions/PromotionStopResponse/_Meta/_Credits.php +++ b/src/Promotions/PromotionStopResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionStopResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionStopResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Promotions/PromotionStopResponse/_Meta/_RateLimits.php b/src/Promotions/PromotionStopResponse/_Meta/_RateLimits.php index 187b5b65..4240b85e 100644 --- a/src/Promotions/PromotionStopResponse/_Meta/_RateLimits.php +++ b/src/Promotions/PromotionStopResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Promotions\PromotionStopResponse\_Meta; +namespace OnlyFansAPI\Promotions\PromotionStopResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Queue/QueueCountParams.php b/src/Queue/QueueCountParams.php index a7255065..96f8935f 100644 --- a/src/Queue/QueueCountParams.php +++ b/src/Queue/QueueCountParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue; +namespace OnlyFansAPI\Queue; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Count posts and messages in the queue. * - * @see Onlyfansapi\Services\QueueService::count() + * @see OnlyFansAPI\Services\QueueService::count() * * @phpstan-type QueueCountParamsShape = array{ * publishDateEnd: string, publishDateStart: string, timezone: string diff --git a/src/Queue/QueueCountResponse.php b/src/Queue/QueueCountResponse.php index d7855c95..5396cc31 100644 --- a/src/Queue/QueueCountResponse.php +++ b/src/Queue/QueueCountResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue; +namespace OnlyFansAPI\Queue; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueueCountResponse\_Meta; -use Onlyfansapi\Queue\QueueCountResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueueCountResponse\_Meta; +use OnlyFansAPI\Queue\QueueCountResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Queue\QueueCountResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Queue\QueueCountResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Queue\QueueCountResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Queue\QueueCountResponse\Data * * @phpstan-type QueueCountResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Queue/QueueCountResponse/Data.php b/src/Queue/QueueCountResponse/Data.php index feaa3b14..2210d927 100644 --- a/src/Queue/QueueCountResponse/Data.php +++ b/src/Queue/QueueCountResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse; +namespace OnlyFansAPI\Queue\QueueCountResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueueCountResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueueCountResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Queue\QueueCountResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Queue\QueueCountResponse\Data\List_ * * @phpstan-type DataShape = array{ * list?: null|List_|ListShape, syncInProcess?: bool|null diff --git a/src/Queue/QueueCountResponse/Data/List_.php b/src/Queue/QueueCountResponse/Data/List_.php index 68bcd2b6..74809335 100644 --- a/src/Queue/QueueCountResponse/Data/List_.php +++ b/src/Queue/QueueCountResponse/Data/List_.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse\Data; +namespace OnlyFansAPI\Queue\QueueCountResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueueCountResponse\Data\List_\_2025_01_01; -use Onlyfansapi\Queue\QueueCountResponse\Data\List_\_2025_01_02; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueueCountResponse\Data\List_\_2025_01_01; +use OnlyFansAPI\Queue\QueueCountResponse\Data\List_\_2025_01_02; /** - * @phpstan-import-type _2025_01_01Shape from \Onlyfansapi\Queue\QueueCountResponse\Data\List_\_2025_01_01 - * @phpstan-import-type _2025_01_02Shape from \Onlyfansapi\Queue\QueueCountResponse\Data\List_\_2025_01_02 + * @phpstan-import-type _2025_01_01Shape from \OnlyFansAPI\Queue\QueueCountResponse\Data\List_\_2025_01_01 + * @phpstan-import-type _2025_01_02Shape from \OnlyFansAPI\Queue\QueueCountResponse\Data\List_\_2025_01_02 * * @phpstan-type ListShape = array{ - * _2025_01_01?: null|\Onlyfansapi\Queue\QueueCountResponse\Data\List_\_2025_01_01|_2025_01_01Shape, - * _2025_01_02?: null|\Onlyfansapi\Queue\QueueCountResponse\Data\List_\_2025_01_02|_2025_01_02Shape, + * _2025_01_01?: null|\OnlyFansAPI\Queue\QueueCountResponse\Data\List_\_2025_01_01|_2025_01_01Shape, + * _2025_01_02?: null|\OnlyFansAPI\Queue\QueueCountResponse\Data\List_\_2025_01_02|_2025_01_02Shape, * } */ final class List_ implements BaseModel diff --git a/src/Queue/QueueCountResponse/Data/List_/_2025_01_01.php b/src/Queue/QueueCountResponse/Data/List_/_2025_01_01.php index 240bfa55..6baf02e5 100644 --- a/src/Queue/QueueCountResponse/Data/List_/_2025_01_01.php +++ b/src/Queue/QueueCountResponse/Data/List_/_2025_01_01.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse\Data\List_; +namespace OnlyFansAPI\Queue\QueueCountResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _2025_01_01Shape = array{post?: int|null} diff --git a/src/Queue/QueueCountResponse/Data/List_/_2025_01_02.php b/src/Queue/QueueCountResponse/Data/List_/_2025_01_02.php index 540d96d6..9fe2c7bb 100644 --- a/src/Queue/QueueCountResponse/Data/List_/_2025_01_02.php +++ b/src/Queue/QueueCountResponse/Data/List_/_2025_01_02.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse\Data\List_; +namespace OnlyFansAPI\Queue\QueueCountResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _2025_01_02Shape = array{chat?: int|null, post?: int|null} diff --git a/src/Queue/QueueCountResponse/_Meta.php b/src/Queue/QueueCountResponse/_Meta.php index 7ef7a664..7a569b84 100644 --- a/src/Queue/QueueCountResponse/_Meta.php +++ b/src/Queue/QueueCountResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse; +namespace OnlyFansAPI\Queue\QueueCountResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueueCountResponse\_Meta\_Cache; -use Onlyfansapi\Queue\QueueCountResponse\_Meta\_Credits; -use Onlyfansapi\Queue\QueueCountResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueueCountResponse\_Meta\_Cache; +use OnlyFansAPI\Queue\QueueCountResponse\_Meta\_Credits; +use OnlyFansAPI\Queue\QueueCountResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Queue\QueueCountResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Queue\QueueCountResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Queue\QueueCountResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Queue\QueueCountResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Queue\QueueCountResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Queue\QueueCountResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Queue/QueueCountResponse/_Meta/_Cache.php b/src/Queue/QueueCountResponse/_Meta/_Cache.php index 2ab4731c..62d19d9b 100644 --- a/src/Queue/QueueCountResponse/_Meta/_Cache.php +++ b/src/Queue/QueueCountResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse\_Meta; +namespace OnlyFansAPI\Queue\QueueCountResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Queue/QueueCountResponse/_Meta/_Credits.php b/src/Queue/QueueCountResponse/_Meta/_Credits.php index 50776190..1f3c1ff9 100644 --- a/src/Queue/QueueCountResponse/_Meta/_Credits.php +++ b/src/Queue/QueueCountResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse\_Meta; +namespace OnlyFansAPI\Queue\QueueCountResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Queue/QueueCountResponse/_Meta/_RateLimits.php b/src/Queue/QueueCountResponse/_Meta/_RateLimits.php index e13e8f6f..48b2511b 100644 --- a/src/Queue/QueueCountResponse/_Meta/_RateLimits.php +++ b/src/Queue/QueueCountResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueCountResponse\_Meta; +namespace OnlyFansAPI\Queue\QueueCountResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Queue/QueueListParams.php b/src/Queue/QueueListParams.php index a974b6d3..271a932e 100644 --- a/src/Queue/QueueListParams.php +++ b/src/Queue/QueueListParams.php @@ -2,20 +2,26 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue; +namespace OnlyFansAPI\Queue; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueueListParams\Type; /** - * List posts and messages in the queue. + * List scheduled posts and mass messages for a date range. Use the type filter to return only posts, messages, or both. * - * @see Onlyfansapi\Services\QueueService::list() + * @see OnlyFansAPI\Services\QueueService::list() * * @phpstan-type QueueListParamsShape = array{ - * limit: int, publishDateEnd: string, publishDateStart: string, timezone: string + * publishDateEnd: string, + * publishDateStart: string, + * timezone: string, + * limit?: int|null, + * type?: list>|null, * } */ final class QueueListParams implements BaseModel @@ -25,44 +31,45 @@ final class QueueListParams implements BaseModel use SdkParams; /** - * Maximum number of queue items to return (default = 20). - */ - #[Required] - public int $limit; - - /** - * Latest publish date to return. + * Latest publish date to return. Must be a valid date. Must be a valid date. Must be a date after or equal to publishDateStart. */ #[Required] public string $publishDateEnd; /** - * Earliest publish date to return (must be at least today). + * Earliest publish date to return (must be at least today). Must be a valid date. Must be a valid date. Must be a date after or equal to today. */ #[Required] public string $publishDateStart; /** - * Time timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php). + * Timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php). Must be a valid time zone, such as Africa/Accra. */ #[Required] public string $timezone; + /** + * Maximum number of queue items to return (default 20). Must be at least 1. Must not be greater than 100. + */ + #[Optional] + public ?int $limit; + + /** @var list>|null $type */ + #[Optional(list: Type::class)] + public ?array $type; + /** * `new QueueListParams()` is missing required properties by the API. * * To enforce required parameters use * ``` - * QueueListParams::with( - * limit: ..., publishDateEnd: ..., publishDateStart: ..., timezone: ... - * ) + * QueueListParams::with(publishDateEnd: ..., publishDateStart: ..., timezone: ...) * ``` * * Otherwise ensure the following setters are called * * ``` * (new QueueListParams) - * ->withLimit(...) * ->withPublishDateEnd(...) * ->withPublishDateStart(...) * ->withTimezone(...) @@ -77,63 +84,79 @@ public function __construct() * Construct an instance from the required parameters. * * You must use named parameters to construct any parameters with a default value. + * + * @param list>|null $type */ public static function with( - int $limit, string $publishDateEnd, string $publishDateStart, string $timezone, + ?int $limit = null, + ?array $type = null, ): self { $self = new self; - $self['limit'] = $limit; $self['publishDateEnd'] = $publishDateEnd; $self['publishDateStart'] = $publishDateStart; $self['timezone'] = $timezone; + null !== $limit && $self['limit'] = $limit; + null !== $type && $self['type'] = $type; + return $self; } /** - * Maximum number of queue items to return (default = 20). + * Latest publish date to return. Must be a valid date. Must be a valid date. Must be a date after or equal to publishDateStart. */ - public function withLimit(int $limit): self + public function withPublishDateEnd(string $publishDateEnd): self { $self = clone $this; - $self['limit'] = $limit; + $self['publishDateEnd'] = $publishDateEnd; return $self; } /** - * Latest publish date to return. + * Earliest publish date to return (must be at least today). Must be a valid date. Must be a valid date. Must be a date after or equal to today. */ - public function withPublishDateEnd(string $publishDateEnd): self + public function withPublishDateStart(string $publishDateStart): self { $self = clone $this; - $self['publishDateEnd'] = $publishDateEnd; + $self['publishDateStart'] = $publishDateStart; return $self; } /** - * Earliest publish date to return (must be at least today). + * Timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php). Must be a valid time zone, such as Africa/Accra. */ - public function withPublishDateStart(string $publishDateStart): self + public function withTimezone(string $timezone): self { $self = clone $this; - $self['publishDateStart'] = $publishDateStart; + $self['timezone'] = $timezone; return $self; } /** - * Time timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php). + * Maximum number of queue items to return (default 20). Must be at least 1. Must not be greater than 100. */ - public function withTimezone(string $timezone): self + public function withLimit(int $limit): self { $self = clone $this; - $self['timezone'] = $timezone; + $self['limit'] = $limit; + + return $self; + } + + /** + * @param list> $type + */ + public function withType(array $type): self + { + $self = clone $this; + $self['type'] = $type; return $self; } diff --git a/src/Queue/QueueListParams/Type.php b/src/Queue/QueueListParams/Type.php new file mode 100644 index 00000000..90f3c3ba --- /dev/null +++ b/src/Queue/QueueListParams/Type.php @@ -0,0 +1,12 @@ +|null, syncInProcess?: bool|null diff --git a/src/Queue/QueueListResponse/Data/List_.php b/src/Queue/QueueListResponse/Data/List_.php index 35b3ba03..4fd0af4d 100644 --- a/src/Queue/QueueListResponse/Data/List_.php +++ b/src/Queue/QueueListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueListResponse\Data; +namespace OnlyFansAPI\Queue\QueueListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueueListResponse\Data\List_\Entity; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueueListResponse\Data\List_\Entity; /** - * @phpstan-import-type EntityShape from \Onlyfansapi\Queue\QueueListResponse\Data\List_\Entity + * @phpstan-import-type EntityShape from \OnlyFansAPI\Queue\QueueListResponse\Data\List_\Entity * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Queue/QueueListResponse/Data/List_/Entity.php b/src/Queue/QueueListResponse/Data/List_/Entity.php index fe8303ff..7abd1887 100644 --- a/src/Queue/QueueListResponse/Data/List_/Entity.php +++ b/src/Queue/QueueListResponse/Data/List_/Entity.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueListResponse\Data\List_; +namespace OnlyFansAPI\Queue\QueueListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EntityShape = array{ diff --git a/src/Queue/QueueListResponse/_Meta.php b/src/Queue/QueueListResponse/_Meta.php index 7552f265..41bfd288 100644 --- a/src/Queue/QueueListResponse/_Meta.php +++ b/src/Queue/QueueListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueListResponse; +namespace OnlyFansAPI\Queue\QueueListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueueListResponse\_Meta\_Cache; -use Onlyfansapi\Queue\QueueListResponse\_Meta\_Credits; -use Onlyfansapi\Queue\QueueListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueueListResponse\_Meta\_Cache; +use OnlyFansAPI\Queue\QueueListResponse\_Meta\_Credits; +use OnlyFansAPI\Queue\QueueListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Queue\QueueListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Queue\QueueListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Queue\QueueListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Queue\QueueListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Queue\QueueListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Queue\QueueListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Queue/QueueListResponse/_Meta/_Cache.php b/src/Queue/QueueListResponse/_Meta/_Cache.php index 2d05357d..06f35950 100644 --- a/src/Queue/QueueListResponse/_Meta/_Cache.php +++ b/src/Queue/QueueListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueListResponse\_Meta; +namespace OnlyFansAPI\Queue\QueueListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Queue/QueueListResponse/_Meta/_Credits.php b/src/Queue/QueueListResponse/_Meta/_Credits.php index 7f1f1d83..a016374b 100644 --- a/src/Queue/QueueListResponse/_Meta/_Credits.php +++ b/src/Queue/QueueListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueListResponse\_Meta; +namespace OnlyFansAPI\Queue\QueueListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Queue/QueueListResponse/_Meta/_RateLimits.php b/src/Queue/QueueListResponse/_Meta/_RateLimits.php index bda0f449..685167cd 100644 --- a/src/Queue/QueueListResponse/_Meta/_RateLimits.php +++ b/src/Queue/QueueListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueueListResponse\_Meta; +namespace OnlyFansAPI\Queue\QueueListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Queue/QueuePublishParams.php b/src/Queue/QueuePublishParams.php index 5525ff24..b8c04939 100644 --- a/src/Queue/QueuePublishParams.php +++ b/src/Queue/QueuePublishParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue; +namespace OnlyFansAPI\Queue; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Publish a queue item or "saved for later" item (post or mass message). This means that the item will be sent immediately, regardless of its scheduled date. * - * @see Onlyfansapi\Services\QueueService::publish() + * @see OnlyFansAPI\Services\QueueService::publish() * * @phpstan-type QueuePublishParamsShape = array{account: string} */ diff --git a/src/Queue/QueuePublishResponse.php b/src/Queue/QueuePublishResponse.php index 04d7034a..9a186ca6 100644 --- a/src/Queue/QueuePublishResponse.php +++ b/src/Queue/QueuePublishResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue; +namespace OnlyFansAPI\Queue; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueuePublishResponse\_Meta; -use Onlyfansapi\Queue\QueuePublishResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueuePublishResponse\_Meta; +use OnlyFansAPI\Queue\QueuePublishResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Queue\QueuePublishResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Queue\QueuePublishResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Queue\QueuePublishResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Queue\QueuePublishResponse\Data * * @phpstan-type QueuePublishResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Queue/QueuePublishResponse/Data.php b/src/Queue/QueuePublishResponse/Data.php index 027356e2..e6901056 100644 --- a/src/Queue/QueuePublishResponse/Data.php +++ b/src/Queue/QueuePublishResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueuePublishResponse; +namespace OnlyFansAPI\Queue\QueuePublishResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Queue/QueuePublishResponse/_Meta.php b/src/Queue/QueuePublishResponse/_Meta.php index afb761ed..58d7a9fe 100644 --- a/src/Queue/QueuePublishResponse/_Meta.php +++ b/src/Queue/QueuePublishResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueuePublishResponse; +namespace OnlyFansAPI\Queue\QueuePublishResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Queue\QueuePublishResponse\_Meta\_Cache; -use Onlyfansapi\Queue\QueuePublishResponse\_Meta\_Credits; -use Onlyfansapi\Queue\QueuePublishResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Queue\QueuePublishResponse\_Meta\_Cache; +use OnlyFansAPI\Queue\QueuePublishResponse\_Meta\_Credits; +use OnlyFansAPI\Queue\QueuePublishResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Queue\QueuePublishResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Queue\QueuePublishResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Queue\QueuePublishResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Queue\QueuePublishResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Queue\QueuePublishResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Queue\QueuePublishResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Queue/QueuePublishResponse/_Meta/_Cache.php b/src/Queue/QueuePublishResponse/_Meta/_Cache.php index e5a58296..2a251277 100644 --- a/src/Queue/QueuePublishResponse/_Meta/_Cache.php +++ b/src/Queue/QueuePublishResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueuePublishResponse\_Meta; +namespace OnlyFansAPI\Queue\QueuePublishResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Queue/QueuePublishResponse/_Meta/_Credits.php b/src/Queue/QueuePublishResponse/_Meta/_Credits.php index 3768f2ef..5dd12b34 100644 --- a/src/Queue/QueuePublishResponse/_Meta/_Credits.php +++ b/src/Queue/QueuePublishResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueuePublishResponse\_Meta; +namespace OnlyFansAPI\Queue\QueuePublishResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Queue/QueuePublishResponse/_Meta/_RateLimits.php b/src/Queue/QueuePublishResponse/_Meta/_RateLimits.php index 91d1fa08..eb155826 100644 --- a/src/Queue/QueuePublishResponse/_Meta/_RateLimits.php +++ b/src/Queue/QueuePublishResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Queue\QueuePublishResponse\_Meta; +namespace OnlyFansAPI\Queue\QueuePublishResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/ReleaseForms/ReleaseFormCreateInvitationLinkParams.php b/src/ReleaseForms/ReleaseFormCreateInvitationLinkParams.php index 3293e37b..35a5d27c 100644 --- a/src/ReleaseForms/ReleaseFormCreateInvitationLinkParams.php +++ b/src/ReleaseForms/ReleaseFormCreateInvitationLinkParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms; +namespace OnlyFansAPI\ReleaseForms; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a new invitation link for release forms. * - * @see Onlyfansapi\Services\ReleaseFormsService::createInvitationLink() + * @see OnlyFansAPI\Services\ReleaseFormsService::createInvitationLink() * * @phpstan-type ReleaseFormCreateInvitationLinkParamsShape = array{name: string} */ diff --git a/src/ReleaseForms/ReleaseFormCreateReleaseFormParams.php b/src/ReleaseForms/ReleaseFormCreateReleaseFormParams.php index 1d320cf0..8e646b88 100644 --- a/src/ReleaseForms/ReleaseFormCreateReleaseFormParams.php +++ b/src/ReleaseForms/ReleaseFormCreateReleaseFormParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms; +namespace OnlyFansAPI\ReleaseForms; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a new release form link. * - * @see Onlyfansapi\Services\ReleaseFormsService::createReleaseForm() + * @see OnlyFansAPI\Services\ReleaseFormsService::createReleaseForm() * * @phpstan-type ReleaseFormCreateReleaseFormParamsShape = array{name: string} */ diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersParams.php b/src/ReleaseForms/ReleaseFormListTaggableUsersParams.php index c607be38..bc78aac1 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersParams.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms; +namespace OnlyFansAPI\ReleaseForms; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; /** - * Get a paginated list of users that can be tagged in release forms. These are verified creators who have signed release forms to appear in your content. Use `offset` and `limit` for pagination. + * Get a paginated list of users that can be tagged in release forms. These are verified creators who have signed release forms to appear in your content. Use `offset` and `limit` for pagination, following `_pagination.next_page` until it is `null`. * - * @see Onlyfansapi\Services\ReleaseFormsService::listTaggableUsers() + * @see OnlyFansAPI\Services\ReleaseFormsService::listTaggableUsers() * * @phpstan-type ReleaseFormListTaggableUsersParamsShape = array{ * filter?: null|Filter|value-of, diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Filter.php b/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Filter.php index dc534279..849b364d 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Filter.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Filter.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams; /** * Filter users by type: `all` or `pending`. diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Sort.php b/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Sort.php index faf1c296..5c2df183 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Sort.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersParams/Sort.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams; /** * Sort field: `date` or `name`. diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersParams/SortDirection.php b/src/ReleaseForms/ReleaseFormListTaggableUsersParams/SortDirection.php index 94a9ec28..fa85b86e 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersParams/SortDirection.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersParams/SortDirection.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams; /** * Sort direction: `desc` or `asc`. diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse.php index 5705e312..47f3c3da 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms; +namespace OnlyFansAPI\ReleaseForms; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Pagination; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Pagination; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data * * @phpstan-type ReleaseFormListTaggableUsersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data.php index 282186ae..d883ce22 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data.php @@ -2,28 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item; /** - * @phpstan-import-type ItemShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item + * @phpstan-import-type ItemShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item * - * @phpstan-type DataShape = array{ - * hasMore?: bool|null, items?: list|null - * } + * @phpstan-type DataShape = array{items?: list|null} */ final class Data implements BaseModel { /** @use SdkModel */ use SdkModel; - #[Optional] - public ?bool $hasMore; - /** @var list|null $items */ #[Optional(list: Item::class)] public ?array $items; @@ -40,24 +35,15 @@ public function __construct() * * @param list|null $items */ - public static function with(?bool $hasMore = null, ?array $items = null): self + public static function with(?array $items = null): self { $self = new self; - null !== $hasMore && $self['hasMore'] = $hasMore; null !== $items && $self['items'] = $items; return $self; } - public function withHasMore(bool $hasMore): self - { - $self = clone $this; - $self['hasMore'] = $hasMore; - - return $self; - } - /** * @param list $items */ diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item.php index 248ba23b..e7197fb9 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User + * @phpstan-import-type UserShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User * * @phpstan-type ItemShape = array{ * id?: int|null, diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User.php index 8e3fcc3f..ece38eca 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User\AvatarThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User\AvatarThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User\AvatarThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User\AvatarThumbs * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User/AvatarThumbs.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User/AvatarThumbs.php index 07035a55..8f2ae41a 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User/AvatarThumbs.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/Data/Item/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\Data\Item\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta.php index 2d28d442..d45369b2 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Cache; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Credits; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Cache; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Credits; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Cache.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Cache.php index 5e666360..d4132f1d 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Cache.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Credits.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Credits.php index 4e27e3e6..ba17daba 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Credits.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_RateLimits.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_RateLimits.php index 4e004c3b..0fb59d5c 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_RateLimits.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Pagination.php b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Pagination.php index ef374d24..be455c09 100644 --- a/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Pagination.php +++ b/src/ReleaseForms/ReleaseFormListTaggableUsersResponse/_Pagination.php @@ -2,14 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** - * @phpstan-type _PaginationShape = array{nextPage?: string|null} + * @phpstan-type _PaginationShape = array{ + * nextPage?: string|null, notice?: string|null + * } */ final class _Pagination implements BaseModel { @@ -19,6 +21,9 @@ final class _Pagination implements BaseModel #[Optional('next_page')] public ?string $nextPage; + #[Optional] + public ?string $notice; + public function __construct() { $this->initialize(); @@ -29,11 +34,14 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. */ - public static function with(?string $nextPage = null): self - { + public static function with( + ?string $nextPage = null, + ?string $notice = null + ): self { $self = new self; null !== $nextPage && $self['nextPage'] = $nextPage; + null !== $notice && $self['notice'] = $notice; return $self; } @@ -45,4 +53,12 @@ public function withNextPage(string $nextPage): self return $self; } + + public function withNotice(string $notice): self + { + $self = clone $this; + $self['notice'] = $notice; + + return $self; + } } diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse.php index a9594eb5..51d6882e 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms; +namespace OnlyFansAPI\ReleaseForms; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data * * @phpstan-type ReleaseFormNewInvitationLinkResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data.php index 0dd7f079..f8ef976e 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User + * @phpstan-import-type UserShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User.php index 70a9b395..4727e02f 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User\AvatarThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User\AvatarThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User\AvatarThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User\AvatarThumbs * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User/AvatarThumbs.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User/AvatarThumbs.php index d57911c7..f595416d 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User/AvatarThumbs.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/Data/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta.php index 5866d807..2721afaf 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Cache; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Credits; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Cache; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Credits; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Cache.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Cache.php index 3ce8380e..bacac237 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Cache.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Credits.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Credits.php index 500e25ad..0f6386c8 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Credits.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_RateLimits.php b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_RateLimits.php index d9125dd0..aa1bf463 100644 --- a/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_RateLimits.php +++ b/src/ReleaseForms/ReleaseFormNewInvitationLinkResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse.php index 8ce5c718..9c10747f 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms; +namespace OnlyFansAPI\ReleaseForms; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data * * @phpstan-type ReleaseFormNewReleaseFormResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data.php index a0481c00..d18fcffc 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User + * @phpstan-import-type UserShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User.php index 9cd3536b..3523ff53 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\AvatarThumbs; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderSize; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\AvatarThumbs; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderSize; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User\HeaderThumbs * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/AvatarThumbs.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/AvatarThumbs.php index 3caf5b4e..1fa1283c 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/AvatarThumbs.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderSize.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderSize.php index b413e25f..51d1f27c 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderSize.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderThumbs.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderThumbs.php index 0205218e..45e9b1f4 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderThumbs.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/Data/User/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta.php index e5fec41e..822f7cc3 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Cache; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Credits; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Cache; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Credits; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Cache.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Cache.php index bff17fef..50635c4c 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Cache.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Credits.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Credits.php index 71d9d42a..29c5bcb0 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Credits.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_RateLimits.php b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_RateLimits.php index 4030277c..c346fdd1 100644 --- a/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_RateLimits.php +++ b/src/ReleaseForms/ReleaseFormNewReleaseFormResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; +namespace OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/RequestOptions.php b/src/RequestOptions.php index 468fcd11..ba7f0813 100644 --- a/src/RequestOptions.php +++ b/src/RequestOptions.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Onlyfansapi; +namespace OnlyFansAPI; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required as Property; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required as Property; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\StreamFactoryInterface; diff --git a/src/SavedForLater/Messages/MessageListParams.php b/src/SavedForLater/Messages/MessageListParams.php index 7a91d91d..8ae157ee 100644 --- a/src/SavedForLater/Messages/MessageListParams.php +++ b/src/SavedForLater/Messages/MessageListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages; +namespace OnlyFansAPI\SavedForLater\Messages; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List all messages that are marked as "Save For Later". * - * @see Onlyfansapi\Services\SavedForLater\MessagesService::list() + * @see OnlyFansAPI\Services\SavedForLater\MessagesService::list() * * @phpstan-type MessageListParamsShape = array{limit: int, offset: int} */ diff --git a/src/SavedForLater/Messages/MessageListResponse.php b/src/SavedForLater/Messages/MessageListResponse.php index e53c4807..88df06a2 100644 --- a/src/SavedForLater/Messages/MessageListResponse.php +++ b/src/SavedForLater/Messages/MessageListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages; +namespace OnlyFansAPI\SavedForLater\Messages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data * * @phpstan-type MessageListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SavedForLater/Messages/MessageListResponse/Data.php b/src/SavedForLater/Messages/MessageListResponse/Data.php index 06e97871..17f05723 100644 --- a/src/SavedForLater/Messages/MessageListResponse/Data.php +++ b/src/SavedForLater/Messages/MessageListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\MessageListResponse; +namespace OnlyFansAPI\SavedForLater\Messages\MessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, diff --git a/src/SavedForLater/Messages/MessageListResponse/Data/List_.php b/src/SavedForLater/Messages/MessageListResponse/Data/List_.php index 441122ec..ddbec0da 100644 --- a/src/SavedForLater/Messages/MessageListResponse/Data/List_.php +++ b/src/SavedForLater/Messages/MessageListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data; +namespace OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data\List_\Entity; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data\List_\Entity; /** - * @phpstan-import-type EntityShape from \Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data\List_\Entity + * @phpstan-import-type EntityShape from \OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data\List_\Entity * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/SavedForLater/Messages/MessageListResponse/Data/List_/Entity.php b/src/SavedForLater/Messages/MessageListResponse/Data/List_/Entity.php index 94f4d569..1c2b1680 100644 --- a/src/SavedForLater/Messages/MessageListResponse/Data/List_/Entity.php +++ b/src/SavedForLater/Messages/MessageListResponse/Data/List_/Entity.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\MessageListResponse\Data\List_; +namespace OnlyFansAPI\SavedForLater\Messages\MessageListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EntityShape = array{ diff --git a/src/SavedForLater/Messages/MessageListResponse/_Meta.php b/src/SavedForLater/Messages/MessageListResponse/_Meta.php index dddc9921..ec737727 100644 --- a/src/SavedForLater/Messages/MessageListResponse/_Meta.php +++ b/src/SavedForLater/Messages/MessageListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\MessageListResponse; +namespace OnlyFansAPI\SavedForLater\Messages\MessageListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Messages/MessageListResponse/_Meta/_Cache.php b/src/SavedForLater/Messages/MessageListResponse/_Meta/_Cache.php index 0cbc7d15..e28ca69d 100644 --- a/src/SavedForLater/Messages/MessageListResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Messages/MessageListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Messages/MessageListResponse/_Meta/_Credits.php b/src/SavedForLater/Messages/MessageListResponse/_Meta/_Credits.php index 02e1267b..99e1c977 100644 --- a/src/SavedForLater/Messages/MessageListResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Messages/MessageListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Messages/MessageListResponse/_Meta/_RateLimits.php b/src/SavedForLater/Messages/MessageListResponse/_Meta/_RateLimits.php index 1505500c..c75157ca 100644 --- a/src/SavedForLater/Messages/MessageListResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Messages/MessageListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\MessageListResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\MessageListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse.php b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse.php index fa3bfcca..c2c44180 100644 --- a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse.php +++ b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings; +namespace OnlyFansAPI\SavedForLater\Messages\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta * * @phpstan-type SettingDisableAutomaticMessagingResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta.php b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta.php index 0bfa1c57..ecc20e41 100644 --- a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta.php +++ b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Cache.php b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Cache.php index 2ebdc119..9c0e66af 100644 --- a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Credits.php b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Credits.php index 957aee64..3f3bdc32 100644 --- a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_RateLimits.php b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_RateLimits.php index 7c0acfea..6be2a529 100644 --- a/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Messages/Settings/SettingDisableAutomaticMessagingResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams.php index 618ac2c1..d8cf407c 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings; +namespace OnlyFansAPI\SavedForLater\Messages\Settings; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; /** * Enable or update automatic messaging of Saved For Later messages. * - * @see Onlyfansapi\Services\SavedForLater\Messages\SettingsService::enableOrUpdateAutomaticMessaging() + * @see OnlyFansAPI\Services\SavedForLater\Messages\SettingsService::enableOrUpdateAutomaticMessaging() * * @phpstan-type SettingEnableOrUpdateAutomaticMessagingParamsShape = array{ * period: Period|value-of diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams/Period.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams/Period.php index 23243ad5..2fb506b2 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams/Period.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingParams/Period.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams; /** * The automatic messaging interval (in hours). diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse.php index f9611fdd..ac0562af 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings; +namespace OnlyFansAPI\SavedForLater\Messages\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\Data * * @phpstan-type SettingEnableOrUpdateAutomaticMessagingResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/Data.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/Data.php index b7007057..3c1923f2 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/Data.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{period?: int|null} diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta.php index 79455930..00da28c0 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Cache.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Cache.php index f3b67b61..7c3d206e 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Credits.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Credits.php index 805e91b7..9f9a2745 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_RateLimits.php b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_RateLimits.php index dc7ac376..5e041c41 100644 --- a/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Messages/Settings/SettingEnableOrUpdateAutomaticMessagingResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SavedForLater/Messages/Settings/SettingGetResponse.php b/src/SavedForLater/Messages/Settings/SettingGetResponse.php index e3d36113..cac0cae0 100644 --- a/src/SavedForLater/Messages/Settings/SettingGetResponse.php +++ b/src/SavedForLater/Messages/Settings/SettingGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings; +namespace OnlyFansAPI\SavedForLater\Messages\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\Data * * @phpstan-type SettingGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SavedForLater/Messages/Settings/SettingGetResponse/Data.php b/src/SavedForLater/Messages/Settings/SettingGetResponse/Data.php index 638c8bd9..be59e477 100644 --- a/src/SavedForLater/Messages/Settings/SettingGetResponse/Data.php +++ b/src/SavedForLater/Messages/Settings/SettingGetResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta.php b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta.php index 9d969f95..c96339f4 100644 --- a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta.php +++ b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Cache.php b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Cache.php index 7089551a..1e094b3a 100644 --- a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Credits.php b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Credits.php index 6944470f..b9b429da 100644 --- a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_RateLimits.php b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_RateLimits.php index 0d9da008..c7e424a2 100644 --- a/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Messages/Settings/SettingGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SavedForLater/Posts/PostListParams.php b/src/SavedForLater/Posts/PostListParams.php index 86d42030..7ab22157 100644 --- a/src/SavedForLater/Posts/PostListParams.php +++ b/src/SavedForLater/Posts/PostListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts; +namespace OnlyFansAPI\SavedForLater\Posts; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * List all posts that are marked as "Save For Later". * - * @see Onlyfansapi\Services\SavedForLater\PostsService::list() + * @see OnlyFansAPI\Services\SavedForLater\PostsService::list() * * @phpstan-type PostListParamsShape = array{limit: int, offset: int} */ diff --git a/src/SavedForLater/Posts/PostListResponse.php b/src/SavedForLater/Posts/PostListResponse.php index 68211e2a..94b8444b 100644 --- a/src/SavedForLater/Posts/PostListResponse.php +++ b/src/SavedForLater/Posts/PostListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts; +namespace OnlyFansAPI\SavedForLater\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta; -use Onlyfansapi\SavedForLater\Posts\PostListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SavedForLater\Posts\PostListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data * * @phpstan-type PostListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SavedForLater/Posts/PostListResponse/Data.php b/src/SavedForLater/Posts/PostListResponse/Data.php index e45fd4bd..9159729f 100644 --- a/src/SavedForLater/Posts/PostListResponse/Data.php +++ b/src/SavedForLater/Posts/PostListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\PostListResponse; +namespace OnlyFansAPI\SavedForLater\Posts\PostListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\PostListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\SavedForLater\Posts\PostListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, diff --git a/src/SavedForLater/Posts/PostListResponse/Data/List_.php b/src/SavedForLater/Posts/PostListResponse/Data/List_.php index 5a7dd2a1..8727da92 100644 --- a/src/SavedForLater/Posts/PostListResponse/Data/List_.php +++ b/src/SavedForLater/Posts/PostListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\PostListResponse\Data; +namespace OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\PostListResponse\Data\List_\Entity; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data\List_\Entity; /** - * @phpstan-import-type EntityShape from \Onlyfansapi\SavedForLater\Posts\PostListResponse\Data\List_\Entity + * @phpstan-import-type EntityShape from \OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data\List_\Entity * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/SavedForLater/Posts/PostListResponse/Data/List_/Entity.php b/src/SavedForLater/Posts/PostListResponse/Data/List_/Entity.php index f985ec39..8b1e13c0 100644 --- a/src/SavedForLater/Posts/PostListResponse/Data/List_/Entity.php +++ b/src/SavedForLater/Posts/PostListResponse/Data/List_/Entity.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\PostListResponse\Data\List_; +namespace OnlyFansAPI\SavedForLater\Posts\PostListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EntityShape = array{ diff --git a/src/SavedForLater/Posts/PostListResponse/_Meta.php b/src/SavedForLater/Posts/PostListResponse/_Meta.php index 8d7c145a..6b1e5d49 100644 --- a/src/SavedForLater/Posts/PostListResponse/_Meta.php +++ b/src/SavedForLater/Posts/PostListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\PostListResponse; +namespace OnlyFansAPI\SavedForLater\Posts\PostListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Posts/PostListResponse/_Meta/_Cache.php b/src/SavedForLater/Posts/PostListResponse/_Meta/_Cache.php index b8e0542a..39bc9906 100644 --- a/src/SavedForLater/Posts/PostListResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Posts/PostListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Posts/PostListResponse/_Meta/_Credits.php b/src/SavedForLater/Posts/PostListResponse/_Meta/_Credits.php index 5cce2188..b214ae2c 100644 --- a/src/SavedForLater/Posts/PostListResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Posts/PostListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Posts/PostListResponse/_Meta/_RateLimits.php b/src/SavedForLater/Posts/PostListResponse/_Meta/_RateLimits.php index bd36cc3e..619eec3c 100644 --- a/src/SavedForLater/Posts/PostListResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Posts/PostListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\PostListResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\PostListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse.php b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse.php index 9909e9ae..831e8d4d 100644 --- a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse.php +++ b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings; +namespace OnlyFansAPI\SavedForLater\Posts\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta * * @phpstan-type SettingDisableAutomaticPostingResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta.php b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta.php index c5d69bf4..4d45b813 100644 --- a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta.php +++ b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Cache.php b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Cache.php index a7a662e7..d4ac4689 100644 --- a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Credits.php b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Credits.php index b79a7c8f..ffe6641e 100644 --- a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_RateLimits.php b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_RateLimits.php index 138e8173..97eb4d60 100644 --- a/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Posts/Settings/SettingDisableAutomaticPostingResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams.php index bc501417..b7d6c645 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings; +namespace OnlyFansAPI\SavedForLater\Posts\Settings; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; /** * Enable or update automatic posting of Saved For Later posts. * - * @see Onlyfansapi\Services\SavedForLater\Posts\SettingsService::enableOrUpdateAutomaticPosting() + * @see OnlyFansAPI\Services\SavedForLater\Posts\SettingsService::enableOrUpdateAutomaticPosting() * * @phpstan-type SettingEnableOrUpdateAutomaticPostingParamsShape = array{ * period: Period|value-of diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams/Period.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams/Period.php index d7e6eaa7..6a3b9f18 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams/Period.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingParams/Period.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams; /** * The automatic posting interval (in hours). diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse.php index eb9e6cac..4844fae8 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings; +namespace OnlyFansAPI\SavedForLater\Posts\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\Data * * @phpstan-type SettingEnableOrUpdateAutomaticPostingResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/Data.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/Data.php index 193b9f51..7dc99923 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/Data.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{period?: int|null} diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta.php index e79890d2..909289b6 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Cache.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Cache.php index 51853f78..fb0ab70e 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Credits.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Credits.php index 3fa7b8ab..5acab012 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_RateLimits.php b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_RateLimits.php index 57eca656..1f1c74cf 100644 --- a/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Posts/Settings/SettingEnableOrUpdateAutomaticPostingResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SavedForLater/Posts/Settings/SettingGetResponse.php b/src/SavedForLater/Posts/Settings/SettingGetResponse.php index 963f6eca..b74a828e 100644 --- a/src/SavedForLater/Posts/Settings/SettingGetResponse.php +++ b/src/SavedForLater/Posts/Settings/SettingGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings; +namespace OnlyFansAPI\SavedForLater\Posts\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\Data * * @phpstan-type SettingGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SavedForLater/Posts/Settings/SettingGetResponse/Data.php b/src/SavedForLater/Posts/Settings/SettingGetResponse/Data.php index 5d0df4d4..3f9e876f 100644 --- a/src/SavedForLater/Posts/Settings/SettingGetResponse/Data.php +++ b/src/SavedForLater/Posts/Settings/SettingGetResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta.php b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta.php index 61967295..0a696e8b 100644 --- a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta.php +++ b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Cache; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Credits; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Cache; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Credits; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Cache.php b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Cache.php index d8ce1f15..bdba8d6c 100644 --- a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Cache.php +++ b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Credits.php b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Credits.php index 6f40c0d0..54818b9f 100644 --- a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Credits.php +++ b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_RateLimits.php b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_RateLimits.php index 146013ec..d13b262c 100644 --- a/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_RateLimits.php +++ b/src/SavedForLater/Posts/Settings/SettingGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Search/SearchProfilesParams.php b/src/Search/SearchProfilesParams.php index fbd15b66..c0789eb4 100644 --- a/src/Search/SearchProfilesParams.php +++ b/src/Search/SearchProfilesParams.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Search; +namespace OnlyFansAPI\Search; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Search\SearchProfilesParams\Filter; -use Onlyfansapi\Search\SearchProfilesParams\Sort; -use Onlyfansapi\Search\SearchProfilesParams\SortDirection; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Search\SearchProfilesParams\Filter; +use OnlyFansAPI\Search\SearchProfilesParams\Sort; +use OnlyFansAPI\Search\SearchProfilesParams\SortDirection; /** * Full-text search for profiles with filters for pricing, free trials, location, media count and more. * - * @see Onlyfansapi\Services\SearchService::profiles() + * @see OnlyFansAPI\Services\SearchService::profiles() * - * @phpstan-import-type FilterShape from \Onlyfansapi\Search\SearchProfilesParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Search\SearchProfilesParams\Filter * * @phpstan-type SearchProfilesParamsShape = array{ * cursor?: string|null, diff --git a/src/Search/SearchProfilesParams/Filter.php b/src/Search/SearchProfilesParams/Filter.php index da70b83a..b4710800 100644 --- a/src/Search/SearchProfilesParams/Filter.php +++ b/src/Search/SearchProfilesParams/Filter.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesParams; +namespace OnlyFansAPI\Search\SearchProfilesParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Search\SearchProfilesParams\Filter\Gender; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Search\SearchProfilesParams\Filter\Gender; /** * @phpstan-type FilterShape = array{gender?: null|Gender|value-of} diff --git a/src/Search/SearchProfilesParams/Filter/Gender.php b/src/Search/SearchProfilesParams/Filter/Gender.php index cde61ff1..b8f75841 100644 --- a/src/Search/SearchProfilesParams/Filter/Gender.php +++ b/src/Search/SearchProfilesParams/Filter/Gender.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesParams\Filter; +namespace OnlyFansAPI\Search\SearchProfilesParams\Filter; /** * Filter by gender (available: `female`, `male`, `trans`, `trans_ftm` (Female-to-Male), `trans_mft` (Male-to-Female), `couple`). ⭐️ Only available on the Pro and Enterprise plan. diff --git a/src/Search/SearchProfilesParams/Sort.php b/src/Search/SearchProfilesParams/Sort.php index 824786a8..3e8b0004 100644 --- a/src/Search/SearchProfilesParams/Sort.php +++ b/src/Search/SearchProfilesParams/Sort.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesParams; +namespace OnlyFansAPI\Search\SearchProfilesParams; /** * Field to sort by. ⭐️ Only available on the Pro and Enterprise plan. diff --git a/src/Search/SearchProfilesParams/SortDirection.php b/src/Search/SearchProfilesParams/SortDirection.php index eb4fbd54..40878e1c 100644 --- a/src/Search/SearchProfilesParams/SortDirection.php +++ b/src/Search/SearchProfilesParams/SortDirection.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesParams; +namespace OnlyFansAPI\Search\SearchProfilesParams; /** * Direction for sorting. `desc` - highest value first. `asc` - lowest value first. diff --git a/src/Search/SearchProfilesResponse.php b/src/Search/SearchProfilesResponse.php index a5e181e8..440b29ac 100644 --- a/src/Search/SearchProfilesResponse.php +++ b/src/Search/SearchProfilesResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Search; +namespace OnlyFansAPI\Search; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Search\SearchProfilesResponse\_Meta; -use Onlyfansapi\Search\SearchProfilesResponse\_Pagination; -use Onlyfansapi\Search\SearchProfilesResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Search\SearchProfilesResponse\_Meta; +use OnlyFansAPI\Search\SearchProfilesResponse\_Pagination; +use OnlyFansAPI\Search\SearchProfilesResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Search\SearchProfilesResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Search\SearchProfilesResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Search\SearchProfilesResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Search\SearchProfilesResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Search\SearchProfilesResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Search\SearchProfilesResponse\Data * * @phpstan-type SearchProfilesResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Search/SearchProfilesResponse/Data.php b/src/Search/SearchProfilesResponse/Data.php index acd1c68d..39d63325 100644 --- a/src/Search/SearchProfilesResponse/Data.php +++ b/src/Search/SearchProfilesResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesResponse; +namespace OnlyFansAPI\Search\SearchProfilesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Search/SearchProfilesResponse/_Meta.php b/src/Search/SearchProfilesResponse/_Meta.php index f40d15f8..bf2500b7 100644 --- a/src/Search/SearchProfilesResponse/_Meta.php +++ b/src/Search/SearchProfilesResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesResponse; +namespace OnlyFansAPI\Search\SearchProfilesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Search\SearchProfilesResponse\_Meta\_Cache; -use Onlyfansapi\Search\SearchProfilesResponse\_Meta\_Credits; -use Onlyfansapi\Search\SearchProfilesResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Search\SearchProfilesResponse\_Meta\_Cache; +use OnlyFansAPI\Search\SearchProfilesResponse\_Meta\_Credits; +use OnlyFansAPI\Search\SearchProfilesResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Search\SearchProfilesResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Search\SearchProfilesResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Search\SearchProfilesResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Search\SearchProfilesResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Search\SearchProfilesResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Search\SearchProfilesResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Search/SearchProfilesResponse/_Meta/_Cache.php b/src/Search/SearchProfilesResponse/_Meta/_Cache.php index 77402eb1..4860bab9 100644 --- a/src/Search/SearchProfilesResponse/_Meta/_Cache.php +++ b/src/Search/SearchProfilesResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesResponse\_Meta; +namespace OnlyFansAPI\Search\SearchProfilesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Search/SearchProfilesResponse/_Meta/_Credits.php b/src/Search/SearchProfilesResponse/_Meta/_Credits.php index aa875f28..18654d8e 100644 --- a/src/Search/SearchProfilesResponse/_Meta/_Credits.php +++ b/src/Search/SearchProfilesResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesResponse\_Meta; +namespace OnlyFansAPI\Search\SearchProfilesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Search/SearchProfilesResponse/_Meta/_RateLimits.php b/src/Search/SearchProfilesResponse/_Meta/_RateLimits.php index 11e6ca4b..d96926b7 100644 --- a/src/Search/SearchProfilesResponse/_Meta/_RateLimits.php +++ b/src/Search/SearchProfilesResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesResponse\_Meta; +namespace OnlyFansAPI\Search\SearchProfilesResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Search/SearchProfilesResponse/_Pagination.php b/src/Search/SearchProfilesResponse/_Pagination.php index 0a693f8b..01781176 100644 --- a/src/Search/SearchProfilesResponse/_Pagination.php +++ b/src/Search/SearchProfilesResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Search\SearchProfilesResponse; +namespace OnlyFansAPI\Search\SearchProfilesResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{ diff --git a/src/ServiceContracts/AccountsContract.php b/src/ServiceContracts/AccountsContract.php index 8ac7b0cf..ff5a0256 100644 --- a/src/ServiceContracts/AccountsContract.php +++ b/src/ServiceContracts/AccountsContract.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Accounts\AccountListResponseItem; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Accounts\AccountListResponseItem; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface AccountsContract { diff --git a/src/ServiceContracts/AccountsRawContract.php b/src/ServiceContracts/AccountsRawContract.php index c21ff30b..cba631fe 100644 --- a/src/ServiceContracts/AccountsRawContract.php +++ b/src/ServiceContracts/AccountsRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Accounts\AccountListParams; -use Onlyfansapi\Accounts\AccountListResponseItem; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Accounts\AccountListParams; +use OnlyFansAPI\Accounts\AccountListResponseItem; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface AccountsRawContract { diff --git a/src/ServiceContracts/Analytics/Financial/ProfitabilityContract.php b/src/ServiceContracts/Analytics/Financial/ProfitabilityContract.php index 18363e07..c66d0118 100644 --- a/src/ServiceContracts/Analytics/Financial/ProfitabilityContract.php +++ b/src/ServiceContracts/Analytics/Financial/ProfitabilityContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics\Financial; +namespace OnlyFansAPI\ServiceContracts\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponseItem; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponseItem; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponse; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ProfitabilityContract { @@ -22,8 +22,6 @@ interface ProfitabilityContract * @param int $months Number of months of history to retrieve (1-60, default 12). Must be at least 1. Must not be greater than 60. * @param RequestOpts|null $requestOptions * - * @return list - * * @throws APIException */ public function getHistory( @@ -31,7 +29,7 @@ public function getHistory( string $accountPrefixedID, ?int $months = null, RequestOptions|array|null $requestOptions = null, - ): array; + ): ProfitabilityGetHistoryResponse; /** * @api @@ -41,8 +39,6 @@ public function getHistory( * @param int $year The year to calculate profitability for * @param RequestOpts|null $requestOptions * - * @return list - * * @throws APIException */ public function getProfitability( @@ -50,5 +46,5 @@ public function getProfitability( int $month, int $year, RequestOptions|array|null $requestOptions = null, - ): array; + ): ProfitabilityGetProfitabilityResponse; } diff --git a/src/ServiceContracts/Analytics/Financial/ProfitabilityRawContract.php b/src/ServiceContracts/Analytics/Financial/ProfitabilityRawContract.php index 085f8288..cba92c05 100644 --- a/src/ServiceContracts/Analytics/Financial/ProfitabilityRawContract.php +++ b/src/ServiceContracts/Analytics/Financial/ProfitabilityRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics\Financial; +namespace OnlyFansAPI\ServiceContracts\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetHistoryParams; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponseItem; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityParams; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponseItem; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetHistoryParams; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponse; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityParams; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ProfitabilityRawContract { @@ -24,7 +24,7 @@ interface ProfitabilityRawContract * @param array|ProfitabilityGetHistoryParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse> + * @return BaseResponse * * @throws APIException */ @@ -40,7 +40,7 @@ public function getHistory( * @param array|ProfitabilityGetProfitabilityParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse> + * @return BaseResponse * * @throws APIException */ diff --git a/src/ServiceContracts/Analytics/Financial/TransactionsContract.php b/src/ServiceContracts/Analytics/Financial/TransactionsContract.php index 8e689dd4..a58cfaab 100644 --- a/src/ServiceContracts/Analytics/Financial/TransactionsContract.php +++ b/src/ServiceContracts/Analytics/Financial/TransactionsContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics\Financial; +namespace OnlyFansAPI\ServiceContracts\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetSummaryResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetSummaryResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TransactionsContract { diff --git a/src/ServiceContracts/Analytics/Financial/TransactionsRawContract.php b/src/ServiceContracts/Analytics/Financial/TransactionsRawContract.php index 6e774c1c..ab855ab9 100644 --- a/src/ServiceContracts/Analytics/Financial/TransactionsRawContract.php +++ b/src/ServiceContracts/Analytics/Financial/TransactionsRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics\Financial; +namespace OnlyFansAPI\ServiceContracts\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetByTypeParams; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetSummaryParams; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetSummaryResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetByTypeParams; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetSummaryParams; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetSummaryResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TransactionsRawContract { diff --git a/src/ServiceContracts/Analytics/FinancialContract.php b/src/ServiceContracts/Analytics/FinancialContract.php index 15cb9f5d..27506f3b 100644 --- a/src/ServiceContracts/Analytics/FinancialContract.php +++ b/src/ServiceContracts/Analytics/FinancialContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics; +namespace OnlyFansAPI\ServiceContracts\Analytics; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams\Metric; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams\Model; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams\Metric; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams\Model; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface FinancialContract { diff --git a/src/ServiceContracts/Analytics/FinancialRawContract.php b/src/ServiceContracts/Analytics/FinancialRawContract.php index 7dde7e5f..ad727a2a 100644 --- a/src/ServiceContracts/Analytics/FinancialRawContract.php +++ b/src/ServiceContracts/Analytics/FinancialRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics; +namespace OnlyFansAPI\ServiceContracts\Analytics; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface FinancialRawContract { diff --git a/src/ServiceContracts/Analytics/SummaryContract.php b/src/ServiceContracts/Analytics/SummaryContract.php index e1b4e0bf..0010fc8c 100644 --- a/src/ServiceContracts/Analytics/SummaryContract.php +++ b/src/ServiceContracts/Analytics/SummaryContract.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics; +namespace OnlyFansAPI\ServiceContracts\Analytics; -use Onlyfansapi\Analytics\Summary\SummaryGetEarningsOverviewResponse; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Summary\SummaryGetEarningsOverviewResponse; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type PeriodAShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA - * @phpstan-import-type PeriodBShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type PeriodAShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA + * @phpstan-import-type PeriodBShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SummaryContract { diff --git a/src/ServiceContracts/Analytics/SummaryRawContract.php b/src/ServiceContracts/Analytics/SummaryRawContract.php index 7358c5cf..1c40592a 100644 --- a/src/ServiceContracts/Analytics/SummaryRawContract.php +++ b/src/ServiceContracts/Analytics/SummaryRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Analytics; +namespace OnlyFansAPI\ServiceContracts\Analytics; -use Onlyfansapi\Analytics\Summary\SummaryGetEarningsOverviewParams; -use Onlyfansapi\Analytics\Summary\SummaryGetEarningsOverviewResponse; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceParams; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Analytics\Summary\SummaryGetEarningsOverviewParams; +use OnlyFansAPI\Analytics\Summary\SummaryGetEarningsOverviewResponse; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceParams; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SummaryRawContract { diff --git a/src/ServiceContracts/AnalyticsContract.php b/src/ServiceContracts/AnalyticsContract.php index 4c8617d1..6860c145 100644 --- a/src/ServiceContracts/AnalyticsContract.php +++ b/src/ServiceContracts/AnalyticsContract.php @@ -2,6 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; interface AnalyticsContract {} diff --git a/src/ServiceContracts/AnalyticsRawContract.php b/src/ServiceContracts/AnalyticsRawContract.php index cf08bba4..a6c35053 100644 --- a/src/ServiceContracts/AnalyticsRawContract.php +++ b/src/ServiceContracts/AnalyticsRawContract.php @@ -2,6 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; interface AnalyticsRawContract {} diff --git a/src/ServiceContracts/AuthenticateContract.php b/src/ServiceContracts/AuthenticateContract.php index 62a6e364..6daf209a 100644 --- a/src/ServiceContracts/AuthenticateContract.php +++ b/src/ServiceContracts/AuthenticateContract.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse; -use Onlyfansapi\Authenticate\AuthenticateReauthenticateResponse; -use Onlyfansapi\Authenticate\AuthenticateSend2faEmailResponse; -use Onlyfansapi\Authenticate\AuthenticateStartParams\AuthType; -use Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy; -use Onlyfansapi\Authenticate\AuthenticateStartParams\ProxyCountry; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember0; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember1; -use Onlyfansapi\Authenticate\AuthenticateSubmit2faResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse; +use OnlyFansAPI\Authenticate\AuthenticateReauthenticateResponse; +use OnlyFansAPI\Authenticate\AuthenticateSend2faEmailResponse; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\AuthType; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\ProxyCountry; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember0; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember1; +use OnlyFansAPI\Authenticate\AuthenticateSubmit2faResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type CustomProxyShape from \Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type CustomProxyShape from \OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface AuthenticateContract { diff --git a/src/ServiceContracts/AuthenticateRawContract.php b/src/ServiceContracts/AuthenticateRawContract.php index aff23784..83d3d632 100644 --- a/src/ServiceContracts/AuthenticateRawContract.php +++ b/src/ServiceContracts/AuthenticateRawContract.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse; -use Onlyfansapi\Authenticate\AuthenticateReauthenticateResponse; -use Onlyfansapi\Authenticate\AuthenticateSend2faEmailResponse; -use Onlyfansapi\Authenticate\AuthenticateStartParams; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember0; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember1; -use Onlyfansapi\Authenticate\AuthenticateSubmit2faParams; -use Onlyfansapi\Authenticate\AuthenticateSubmit2faResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse; +use OnlyFansAPI\Authenticate\AuthenticateReauthenticateResponse; +use OnlyFansAPI\Authenticate\AuthenticateSend2faEmailResponse; +use OnlyFansAPI\Authenticate\AuthenticateStartParams; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember0; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember1; +use OnlyFansAPI\Authenticate\AuthenticateSubmit2faParams; +use OnlyFansAPI\Authenticate\AuthenticateSubmit2faResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface AuthenticateRawContract { diff --git a/src/ServiceContracts/Banking/DetailsContract.php b/src/ServiceContracts/Banking/DetailsContract.php index 8b6ecd9e..f8ea8e55 100644 --- a/src/ServiceContracts/Banking/DetailsContract.php +++ b/src/ServiceContracts/Banking/DetailsContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Banking; +namespace OnlyFansAPI\ServiceContracts\Banking; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface DetailsContract { diff --git a/src/ServiceContracts/Banking/DetailsRawContract.php b/src/ServiceContracts/Banking/DetailsRawContract.php index 04a39792..361a5589 100644 --- a/src/ServiceContracts/Banking/DetailsRawContract.php +++ b/src/ServiceContracts/Banking/DetailsRawContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Banking; +namespace OnlyFansAPI\ServiceContracts\Banking; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface DetailsRawContract { diff --git a/src/ServiceContracts/BankingContract.php b/src/ServiceContracts/BankingContract.php index 8e8ffb92..ab2da7dc 100644 --- a/src/ServiceContracts/BankingContract.php +++ b/src/ServiceContracts/BankingContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse; -use Onlyfansapi\Banking\BankingListCountriesResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse; +use OnlyFansAPI\Banking\BankingListCountriesResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BankingContract { diff --git a/src/ServiceContracts/BankingRawContract.php b/src/ServiceContracts/BankingRawContract.php index 52369bb2..5dd10198 100644 --- a/src/ServiceContracts/BankingRawContract.php +++ b/src/ServiceContracts/BankingRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse; -use Onlyfansapi\Banking\BankingListCountriesResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse; +use OnlyFansAPI\Banking\BankingListCountriesResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BankingRawContract { diff --git a/src/ServiceContracts/BundlesContract.php b/src/ServiceContracts/BundlesContract.php index 6fabad9f..bb06706e 100644 --- a/src/ServiceContracts/BundlesContract.php +++ b/src/ServiceContracts/BundlesContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Bundles\BundleCreateParams\Discount; -use Onlyfansapi\Bundles\BundleCreateParams\Duration; -use Onlyfansapi\Bundles\BundleDeleteResponse; -use Onlyfansapi\Bundles\BundleListResponse; -use Onlyfansapi\Bundles\BundleNewResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Bundles\BundleCreateParams\Discount; +use OnlyFansAPI\Bundles\BundleCreateParams\Duration; +use OnlyFansAPI\Bundles\BundleDeleteResponse; +use OnlyFansAPI\Bundles\BundleListResponse; +use OnlyFansAPI\Bundles\BundleNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BundlesContract { diff --git a/src/ServiceContracts/BundlesRawContract.php b/src/ServiceContracts/BundlesRawContract.php index b6cd8c0c..cf0e54ff 100644 --- a/src/ServiceContracts/BundlesRawContract.php +++ b/src/ServiceContracts/BundlesRawContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Bundles\BundleCreateParams; -use Onlyfansapi\Bundles\BundleDeleteParams; -use Onlyfansapi\Bundles\BundleDeleteResponse; -use Onlyfansapi\Bundles\BundleListResponse; -use Onlyfansapi\Bundles\BundleNewResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Bundles\BundleCreateParams; +use OnlyFansAPI\Bundles\BundleDeleteParams; +use OnlyFansAPI\Bundles\BundleDeleteResponse; +use OnlyFansAPI\Bundles\BundleListResponse; +use OnlyFansAPI\Bundles\BundleNewResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BundlesRawContract { diff --git a/src/ServiceContracts/ChargebacksContract.php b/src/ServiceContracts/ChargebacksContract.php index e4bdc384..2b134a3f 100644 --- a/src/ServiceContracts/ChargebacksContract.php +++ b/src/ServiceContracts/ChargebacksContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse; -use Onlyfansapi\Chargebacks\ChargebackListResponse; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse; +use OnlyFansAPI\Chargebacks\ChargebackListResponse; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ChargebacksContract { diff --git a/src/ServiceContracts/ChargebacksRawContract.php b/src/ServiceContracts/ChargebacksRawContract.php index 1ce3eb5e..0d782bf8 100644 --- a/src/ServiceContracts/ChargebacksRawContract.php +++ b/src/ServiceContracts/ChargebacksRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioParams; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse; -use Onlyfansapi\Chargebacks\ChargebackListParams; -use Onlyfansapi\Chargebacks\ChargebackListResponse; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsParams; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioParams; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse; +use OnlyFansAPI\Chargebacks\ChargebackListParams; +use OnlyFansAPI\Chargebacks\ChargebackListResponse; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsParams; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ChargebacksRawContract { diff --git a/src/ServiceContracts/Chats/MarkAllAsReadContract.php b/src/ServiceContracts/Chats/MarkAllAsReadContract.php index 8ee9848b..e16c2399 100644 --- a/src/ServiceContracts/Chats/MarkAllAsReadContract.php +++ b/src/ServiceContracts/Chats/MarkAllAsReadContract.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Chats; +namespace OnlyFansAPI\ServiceContracts\Chats; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MarkAllAsReadContract { diff --git a/src/ServiceContracts/Chats/MarkAllAsReadRawContract.php b/src/ServiceContracts/Chats/MarkAllAsReadRawContract.php index 4549dd7f..7a27955a 100644 --- a/src/ServiceContracts/Chats/MarkAllAsReadRawContract.php +++ b/src/ServiceContracts/Chats/MarkAllAsReadRawContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Chats; +namespace OnlyFansAPI\ServiceContracts\Chats; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MarkAllAsReadRawContract { diff --git a/src/ServiceContracts/Chats/MessagesContract.php b/src/ServiceContracts/Chats/MessagesContract.php index e25764fc..9c04f98c 100644 --- a/src/ServiceContracts/Chats/MessagesContract.php +++ b/src/ServiceContracts/Chats/MessagesContract.php @@ -2,23 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Chats; +namespace OnlyFansAPI\ServiceContracts\Chats; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse; -use Onlyfansapi\Chats\Messages\MessageGetResponse; -use Onlyfansapi\Chats\Messages\MessageLikeResponse; -use Onlyfansapi\Chats\Messages\MessageListParams\Filter; -use Onlyfansapi\Chats\Messages\MessageListResponse; -use Onlyfansapi\Chats\Messages\MessagePinResponse; -use Onlyfansapi\Chats\Messages\MessageSearchResponse; -use Onlyfansapi\Chats\Messages\MessageSendResponse; -use Onlyfansapi\Chats\Messages\MessageUnlikeResponse; -use Onlyfansapi\Chats\Messages\MessageUnpinResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse; +use OnlyFansAPI\Chats\Messages\MessageGetResponse; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse; +use OnlyFansAPI\Chats\Messages\MessageListParams\Filter; +use OnlyFansAPI\Chats\Messages\MessageListResponse; +use OnlyFansAPI\Chats\Messages\MessagePinResponse; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse; +use OnlyFansAPI\Chats\Messages\MessageSendParams\BlockBannedWords; +use OnlyFansAPI\Chats\Messages\MessageSendResponse; +use OnlyFansAPI\Chats\Messages\MessageUnlikeResponse; +use OnlyFansAPI\Chats\Messages\MessageUnpinResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MessagesContract { @@ -49,7 +50,7 @@ public function retrieve( * @param string|null $lastID Query param: Use for pagination when `order=asc` (oldest to newest). Include this message ID as the first message in the results. WARNING! The response list of messages will also be inverted (oldest messages will be first, opposite to default where `order=desc`). * @param string $limit Query param: The number of messages to return (default = 10, max = 100) * @param string $order Query param: Sort order for messages (desc or asc) - * @param string $skipUsers Query param: Whether to skip user details (all or none) + * @param string $skipUsers query param: Whether to skip user details (`all` or `none`) * @param RequestOpts|null $requestOptions * * @throws APIException @@ -139,16 +140,18 @@ public function search( * * @param string $chatID Path param: The ID of the chat (usually a fan's OnlyFans User ID) * @param string $account Path param: The Account ID + * @param BlockBannedWords|value-of $blockBannedWords Body param: Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param string $giphyID Body param: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). * @param bool $lockedText Body param: Whether the text should be shown or hidden * @param list $mediaFiles Body param: Direct file uploads, OFAPI `ofapi_media_` IDs, or OF vault IDs. Will be hidden if `price` is provided. * @param list $previews Body param: Direct file uploads, OFAPI `ofapi_media_` IDs, OF vault IDs, or integer indices referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - * @param int $price Body param: Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required + * @param float $price Body param: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required * @param int $replyToMessageID Body param: Mark this message as a reply to another (can be either your own, or the recipient's) * @param string $rfGuest Body param: Array of OnlyFans Release Form Guest IDs to tag in your message * @param string $rfPartner Body param: Array of OnlyFans Release Form Partners IDs to tag in your message * @param string $rfTag Body param: Array of OnlyFans Creator User IDs to tag in your message * @param string $text Body param: The message text content. Required unless a media file is present. + * @param string $idempotencyKey Header param * @param RequestOpts|null $requestOptions * * @throws APIException @@ -156,16 +159,18 @@ public function search( public function send( string $chatID, string $account, + BlockBannedWords|string|null $blockBannedWords = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?int $replyToMessageID = null, ?string $rfGuest = null, ?string $rfPartner = null, ?string $rfTag = null, ?string $text = null, + ?string $idempotencyKey = null, RequestOptions|array|null $requestOptions = null, ): MessageSendResponse; diff --git a/src/ServiceContracts/Chats/MessagesRawContract.php b/src/ServiceContracts/Chats/MessagesRawContract.php index 7c98da66..e361dde0 100644 --- a/src/ServiceContracts/Chats/MessagesRawContract.php +++ b/src/ServiceContracts/Chats/MessagesRawContract.php @@ -2,32 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Chats; +namespace OnlyFansAPI\ServiceContracts\Chats; -use Onlyfansapi\Chats\Messages\MessageDeleteParams; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse; -use Onlyfansapi\Chats\Messages\MessageGetResponse; -use Onlyfansapi\Chats\Messages\MessageLikeParams; -use Onlyfansapi\Chats\Messages\MessageLikeResponse; -use Onlyfansapi\Chats\Messages\MessageListParams; -use Onlyfansapi\Chats\Messages\MessageListResponse; -use Onlyfansapi\Chats\Messages\MessagePinParams; -use Onlyfansapi\Chats\Messages\MessagePinResponse; -use Onlyfansapi\Chats\Messages\MessageRetrieveParams; -use Onlyfansapi\Chats\Messages\MessageSearchParams; -use Onlyfansapi\Chats\Messages\MessageSearchResponse; -use Onlyfansapi\Chats\Messages\MessageSendParams; -use Onlyfansapi\Chats\Messages\MessageSendResponse; -use Onlyfansapi\Chats\Messages\MessageUnlikeParams; -use Onlyfansapi\Chats\Messages\MessageUnlikeResponse; -use Onlyfansapi\Chats\Messages\MessageUnpinParams; -use Onlyfansapi\Chats\Messages\MessageUnpinResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chats\Messages\MessageDeleteParams; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse; +use OnlyFansAPI\Chats\Messages\MessageGetResponse; +use OnlyFansAPI\Chats\Messages\MessageLikeParams; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse; +use OnlyFansAPI\Chats\Messages\MessageListParams; +use OnlyFansAPI\Chats\Messages\MessageListResponse; +use OnlyFansAPI\Chats\Messages\MessagePinParams; +use OnlyFansAPI\Chats\Messages\MessagePinResponse; +use OnlyFansAPI\Chats\Messages\MessageRetrieveParams; +use OnlyFansAPI\Chats\Messages\MessageSearchParams; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse; +use OnlyFansAPI\Chats\Messages\MessageSendParams; +use OnlyFansAPI\Chats\Messages\MessageSendResponse; +use OnlyFansAPI\Chats\Messages\MessageUnlikeParams; +use OnlyFansAPI\Chats\Messages\MessageUnlikeResponse; +use OnlyFansAPI\Chats\Messages\MessageUnpinParams; +use OnlyFansAPI\Chats\Messages\MessageUnpinResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MessagesRawContract { diff --git a/src/ServiceContracts/ChatsContract.php b/src/ServiceContracts/ChatsContract.php index cd901b50..263ed35d 100644 --- a/src/ServiceContracts/ChatsContract.php +++ b/src/ServiceContracts/ChatsContract.php @@ -2,26 +2,26 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Chats\ChatDeleteResponse; -use Onlyfansapi\Chats\ChatHideResponse; -use Onlyfansapi\Chats\ChatListMediaParams\Type; -use Onlyfansapi\Chats\ChatListMediaResponse; -use Onlyfansapi\Chats\ChatListParams\Filter; -use Onlyfansapi\Chats\ChatListParams\Order; -use Onlyfansapi\Chats\ChatListParams\SkipUsers; -use Onlyfansapi\Chats\ChatListResponse; -use Onlyfansapi\Chats\ChatMarkAsReadResponse; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse; -use Onlyfansapi\Chats\ChatMuteResponse; -use Onlyfansapi\Chats\ChatStartTypingResponse; -use Onlyfansapi\Chats\ChatUnmuteResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chats\ChatDeleteResponse; +use OnlyFansAPI\Chats\ChatHideResponse; +use OnlyFansAPI\Chats\ChatListMediaParams\Type; +use OnlyFansAPI\Chats\ChatListMediaResponse; +use OnlyFansAPI\Chats\ChatListParams\Filter; +use OnlyFansAPI\Chats\ChatListParams\Order; +use OnlyFansAPI\Chats\ChatListParams\SkipUsers; +use OnlyFansAPI\Chats\ChatListResponse; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse; +use OnlyFansAPI\Chats\ChatMuteResponse; +use OnlyFansAPI\Chats\ChatStartTypingResponse; +use OnlyFansAPI\Chats\ChatUnmuteResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ChatsContract { @@ -34,7 +34,7 @@ interface ChatsContract * @param string $offset Number of chats to skip for pagination * @param Order|value-of $order Sort order for chats (recent or old). Default = recent * @param string $query Search query to filter chats - * @param SkipUsers|value-of $skipUsers Whether to skip user details in response (all or none). Default = all + * @param SkipUsers|value-of $skipUsers Whether to skip user details in the response (`all` or `none`). Defaults to `all`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -87,7 +87,7 @@ public function hide( * @param string $account Path param: The Account ID * @param string $limit Query param: Number of medias to return. Default = 20 * @param string $offset Query param: Number of medias to skip for pagination - * @param string $skipUsers Query param: Whether to skip user details in response (all or none). Default = all + * @param string $skipUsers Query param: Whether to skip user details in the response (`all` or `none`). Defaults to `all`. * @param Type|value-of|null $type Query param: Filter by specific media types. Keep empty to return all. * @param RequestOpts|null $requestOptions * diff --git a/src/ServiceContracts/ChatsRawContract.php b/src/ServiceContracts/ChatsRawContract.php index ed7e724b..467216ea 100644 --- a/src/ServiceContracts/ChatsRawContract.php +++ b/src/ServiceContracts/ChatsRawContract.php @@ -2,32 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Chats\ChatDeleteParams; -use Onlyfansapi\Chats\ChatDeleteResponse; -use Onlyfansapi\Chats\ChatHideParams; -use Onlyfansapi\Chats\ChatHideResponse; -use Onlyfansapi\Chats\ChatListMediaParams; -use Onlyfansapi\Chats\ChatListMediaResponse; -use Onlyfansapi\Chats\ChatListParams; -use Onlyfansapi\Chats\ChatListResponse; -use Onlyfansapi\Chats\ChatMarkAsReadParams; -use Onlyfansapi\Chats\ChatMarkAsReadResponse; -use Onlyfansapi\Chats\ChatMarkAsUnreadParams; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse; -use Onlyfansapi\Chats\ChatMuteParams; -use Onlyfansapi\Chats\ChatMuteResponse; -use Onlyfansapi\Chats\ChatStartTypingParams; -use Onlyfansapi\Chats\ChatStartTypingResponse; -use Onlyfansapi\Chats\ChatUnmuteParams; -use Onlyfansapi\Chats\ChatUnmuteResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Chats\ChatDeleteParams; +use OnlyFansAPI\Chats\ChatDeleteResponse; +use OnlyFansAPI\Chats\ChatHideParams; +use OnlyFansAPI\Chats\ChatHideResponse; +use OnlyFansAPI\Chats\ChatListMediaParams; +use OnlyFansAPI\Chats\ChatListMediaResponse; +use OnlyFansAPI\Chats\ChatListParams; +use OnlyFansAPI\Chats\ChatListResponse; +use OnlyFansAPI\Chats\ChatMarkAsReadParams; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse; +use OnlyFansAPI\Chats\ChatMarkAsUnreadParams; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse; +use OnlyFansAPI\Chats\ChatMuteParams; +use OnlyFansAPI\Chats\ChatMuteResponse; +use OnlyFansAPI\Chats\ChatStartTypingParams; +use OnlyFansAPI\Chats\ChatStartTypingResponse; +use OnlyFansAPI\Chats\ChatUnmuteParams; +use OnlyFansAPI\Chats\ChatUnmuteResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ChatsRawContract { diff --git a/src/ServiceContracts/ClientSessionsContract.php b/src/ServiceContracts/ClientSessionsContract.php index a221aa17..1a31b06c 100644 --- a/src/ServiceContracts/ClientSessionsContract.php +++ b/src/ServiceContracts/ClientSessionsContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\ClientSessions\ClientSessionCreateParams\ProxyCountry; -use Onlyfansapi\ClientSessions\ClientSessionNewResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\ClientSessions\ClientSessionCreateParams\ProxyCountry; +use OnlyFansAPI\ClientSessions\ClientSessionNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ClientSessionsContract { diff --git a/src/ServiceContracts/ClientSessionsRawContract.php b/src/ServiceContracts/ClientSessionsRawContract.php index e16d1411..fd0c1e40 100644 --- a/src/ServiceContracts/ClientSessionsRawContract.php +++ b/src/ServiceContracts/ClientSessionsRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\ClientSessions\ClientSessionCreateParams; -use Onlyfansapi\ClientSessions\ClientSessionNewResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\ClientSessions\ClientSessionCreateParams; +use OnlyFansAPI\ClientSessions\ClientSessionNewResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ClientSessionsRawContract { diff --git a/src/ServiceContracts/DataExportsContract.php b/src/ServiceContracts/DataExportsContract.php index fca5c3b6..67fb1ba1 100644 --- a/src/ServiceContracts/DataExportsContract.php +++ b/src/ServiceContracts/DataExportsContract.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\DataExports\DataExportCancelResponse; -use Onlyfansapi\DataExports\DataExportCreateParams\FileType; -use Onlyfansapi\DataExports\DataExportCreateParams\Type; -use Onlyfansapi\DataExports\DataExportGetResponse; -use Onlyfansapi\DataExports\DataExportListParams\Status; -use Onlyfansapi\DataExports\DataExportListResponse; -use Onlyfansapi\DataExports\DataExportNewResponse; -use Onlyfansapi\DataExports\DataExportRetryResponse; -use Onlyfansapi\DataExports\DataExportStartResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\DataExports\DataExportCancelResponse; +use OnlyFansAPI\DataExports\DataExportCreateParams\FileType; +use OnlyFansAPI\DataExports\DataExportCreateParams\Type; +use OnlyFansAPI\DataExports\DataExportGetResponse; +use OnlyFansAPI\DataExports\DataExportListParams\Status; +use OnlyFansAPI\DataExports\DataExportListResponse; +use OnlyFansAPI\DataExports\DataExportNewResponse; +use OnlyFansAPI\DataExports\DataExportRetryResponse; +use OnlyFansAPI\DataExports\DataExportStartResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface DataExportsContract { @@ -25,13 +25,13 @@ interface DataExportsContract * @api * * @param string $endDate the end date for the export (ISO 8601 format) - * @param FileType|value-of $fileType The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + * @param FileType|value-of $fileType The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, fansly_chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` for media_vault. * @param string $startDate the start date for the export (ISO 8601 format) - * @param Type|value-of $type The type of data to export - * @param list $accountIDs Array of account prefixed IDs to export data from. Not required for `public_profiles` type. + * @param Type|value-of $type The type of data to export. Use `fansly_chat_messages` to export Fansly chat messages (all other types are OnlyFans). `profile_visitors` returns one row per account per day, scraped one day at a time so the daily numbers are not aggregated away by OnlyFans. + * @param list $accountIDs Array of account prefixed IDs to export data from. Not required for `public_profiles` type. For `fansly_chat_messages`, pass Fansly account prefixed IDs (`fansly_acct_...`); all other types take OnlyFans account IDs. * @param bool $autoStart when true, automatically starts the export after creation * @param list $exportColumns Array of column names to include in the export (optional, defaults to all columns for the export type) - * @param array $options Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). + * @param array $options Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `fansly_chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `chatIds` (optional array of Fansly group ID strings; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). * @param RequestOpts|null $requestOptions * * @throws APIException @@ -70,7 +70,7 @@ public function retrieve( * @param int $page Page number for pagination. Default `1` * @param int $perPage Number of results per page. Default `15`, max `100` * @param Status|value-of $status Filter by status - * @param \Onlyfansapi\DataExports\DataExportListParams\Type|value-of<\Onlyfansapi\DataExports\DataExportListParams\Type> $type Filter by export type + * @param \OnlyFansAPI\DataExports\DataExportListParams\Type|value-of<\OnlyFansAPI\DataExports\DataExportListParams\Type> $type Filter by export type * @param RequestOpts|null $requestOptions * * @throws APIException @@ -80,7 +80,7 @@ public function list( ?int $page = null, ?int $perPage = null, Status|string|null $status = null, - \Onlyfansapi\DataExports\DataExportListParams\Type|string|null $type = null, + \OnlyFansAPI\DataExports\DataExportListParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): DataExportListResponse; diff --git a/src/ServiceContracts/DataExportsRawContract.php b/src/ServiceContracts/DataExportsRawContract.php index de09e031..58df25f4 100644 --- a/src/ServiceContracts/DataExportsRawContract.php +++ b/src/ServiceContracts/DataExportsRawContract.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\DataExports\DataExportCancelResponse; -use Onlyfansapi\DataExports\DataExportCreateParams; -use Onlyfansapi\DataExports\DataExportGetResponse; -use Onlyfansapi\DataExports\DataExportListParams; -use Onlyfansapi\DataExports\DataExportListResponse; -use Onlyfansapi\DataExports\DataExportNewResponse; -use Onlyfansapi\DataExports\DataExportRetrieveParams; -use Onlyfansapi\DataExports\DataExportRetryResponse; -use Onlyfansapi\DataExports\DataExportStartResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\DataExports\DataExportCancelResponse; +use OnlyFansAPI\DataExports\DataExportCreateParams; +use OnlyFansAPI\DataExports\DataExportGetResponse; +use OnlyFansAPI\DataExports\DataExportListParams; +use OnlyFansAPI\DataExports\DataExportListResponse; +use OnlyFansAPI\DataExports\DataExportNewResponse; +use OnlyFansAPI\DataExports\DataExportRetrieveParams; +use OnlyFansAPI\DataExports\DataExportRetryResponse; +use OnlyFansAPI\DataExports\DataExportStartResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface DataExportsRawContract { diff --git a/src/ServiceContracts/Engagement/Messages/DirectMessagesContract.php b/src/ServiceContracts/Engagement/Messages/DirectMessagesContract.php index dc458b19..7224236c 100644 --- a/src/ServiceContracts/Engagement/Messages/DirectMessagesContract.php +++ b/src/ServiceContracts/Engagement/Messages/DirectMessagesContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Engagement\Messages; +namespace OnlyFansAPI\ServiceContracts\Engagement\Messages; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface DirectMessagesContract { @@ -18,7 +18,7 @@ interface DirectMessagesContract * @api * * @param string $account The Account ID - * @param string $endDate The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * @param string $endDate The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. * @param int $limit Number of messages to return (default = 10) * @param int $offset optional offset for manual pagination * @param string $query optionally, filter by message text @@ -41,7 +41,7 @@ public function list( * @api * * @param string $account The Account ID - * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. * @param string $startDate start of the chart window in `Y-m-d H:i:s` format * @param bool $withTotal Include `total` and `delta` aggregates in the response. Defaults to `true`. * @param RequestOpts|null $requestOptions diff --git a/src/ServiceContracts/Engagement/Messages/DirectMessagesRawContract.php b/src/ServiceContracts/Engagement/Messages/DirectMessagesRawContract.php index 0ba2aa03..5064bc02 100644 --- a/src/ServiceContracts/Engagement/Messages/DirectMessagesRawContract.php +++ b/src/ServiceContracts/Engagement/Messages/DirectMessagesRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Engagement\Messages; +namespace OnlyFansAPI\ServiceContracts\Engagement\Messages; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartParams; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListParams; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartParams; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListParams; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface DirectMessagesRawContract { diff --git a/src/ServiceContracts/Engagement/Messages/MassMessagesContract.php b/src/ServiceContracts/Engagement/Messages/MassMessagesContract.php index c5de1ff8..0d81816a 100644 --- a/src/ServiceContracts/Engagement/Messages/MassMessagesContract.php +++ b/src/ServiceContracts/Engagement/Messages/MassMessagesContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Engagement\Messages; +namespace OnlyFansAPI\ServiceContracts\Engagement\Messages; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MassMessagesContract { @@ -18,7 +18,7 @@ interface MassMessagesContract * @api * * @param string $account The Account ID - * @param string $endDate The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * @param string $endDate The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. * @param int $limit Number of messages to return (default = 10) * @param string $query optionally, filter by message text * @param string $startDate The earliest message to retrieve. Keep empty to get all. @@ -39,7 +39,7 @@ public function list( * @api * * @param string $account The Account ID - * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. * @param string $startDate start of the chart window in `Y-m-d H:i:s` format * @param bool $withTotal Include `total` and `delta` aggregates in the response. Defaults to `true`. * @param RequestOpts|null $requestOptions diff --git a/src/ServiceContracts/Engagement/Messages/MassMessagesRawContract.php b/src/ServiceContracts/Engagement/Messages/MassMessagesRawContract.php index 62c55993..578548d7 100644 --- a/src/ServiceContracts/Engagement/Messages/MassMessagesRawContract.php +++ b/src/ServiceContracts/Engagement/Messages/MassMessagesRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Engagement\Messages; +namespace OnlyFansAPI\ServiceContracts\Engagement\Messages; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartParams; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListParams; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartParams; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListParams; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MassMessagesRawContract { diff --git a/src/ServiceContracts/Engagement/MessagesContract.php b/src/ServiceContracts/Engagement/MessagesContract.php index 81c09c53..2d0c5ab2 100644 --- a/src/ServiceContracts/Engagement/MessagesContract.php +++ b/src/ServiceContracts/Engagement/MessagesContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Engagement; +namespace OnlyFansAPI\ServiceContracts\Engagement; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MessagesContract { @@ -22,7 +22,7 @@ interface MessagesContract * @param int $limit Query param: Number of buyers to return (default = 10) * @param int $marker Query param: Marker for pagination * @param int $offset Query param: Offset for pagination (default = 0) - * @param string $skipUsers Query param: Optional flag for subsequent pages (example: all) + * @param string $skipUsers query param: Optional flag for subsequent pages (example: all) * @param int $skipUsersDups Query param: Skip duplicate users in results (0/1). Default = 1 * @param RequestOpts|null $requestOptions * @@ -43,7 +43,7 @@ public function getMessageBuyers( * @api * * @param string $account The Account ID - * @param string $endDate The end date for the period. Keep empty to retrieve until now. MUST BE DATE AFTER `startDate`. + * @param string $endDate The end date for the period. Keep empty to retrieve until now. It must be after `startDate`. * @param string $startDate The start date for the period. Keep empty to retrieve from the model start date. * @param RequestOpts|null $requestOptions * diff --git a/src/ServiceContracts/Engagement/MessagesRawContract.php b/src/ServiceContracts/Engagement/MessagesRawContract.php index 081f95ff..ac35508f 100644 --- a/src/ServiceContracts/Engagement/MessagesRawContract.php +++ b/src/ServiceContracts/Engagement/MessagesRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Engagement; +namespace OnlyFansAPI\ServiceContracts\Engagement; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersParams; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageParams; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersParams; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageParams; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MessagesRawContract { diff --git a/src/ServiceContracts/EngagementContract.php b/src/ServiceContracts/EngagementContract.php index 6d267cfc..09721e21 100644 --- a/src/ServiceContracts/EngagementContract.php +++ b/src/ServiceContracts/EngagementContract.php @@ -2,6 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; interface EngagementContract {} diff --git a/src/ServiceContracts/EngagementRawContract.php b/src/ServiceContracts/EngagementRawContract.php index d824e812..364dec98 100644 --- a/src/ServiceContracts/EngagementRawContract.php +++ b/src/ServiceContracts/EngagementRawContract.php @@ -2,6 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; interface EngagementRawContract {} diff --git a/src/ServiceContracts/Fans/NotesContract.php b/src/ServiceContracts/Fans/NotesContract.php index fb6fee42..5a7be02a 100644 --- a/src/ServiceContracts/Fans/NotesContract.php +++ b/src/ServiceContracts/Fans/NotesContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Fans; +namespace OnlyFansAPI\ServiceContracts\Fans; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface NotesContract { diff --git a/src/ServiceContracts/Fans/NotesRawContract.php b/src/ServiceContracts/Fans/NotesRawContract.php index 59f9c059..fab8eec4 100644 --- a/src/ServiceContracts/Fans/NotesRawContract.php +++ b/src/ServiceContracts/Fans/NotesRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Fans; +namespace OnlyFansAPI\ServiceContracts\Fans; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\Notes\NoteClearNotesParams; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse; -use Onlyfansapi\Fans\Notes\NoteCreateEditNotesParams; -use Onlyfansapi\Fans\Notes\NoteGetNotesParams; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\Notes\NoteClearNotesParams; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteCreateEditNotesParams; +use OnlyFansAPI\Fans\Notes\NoteGetNotesParams; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface NotesRawContract { diff --git a/src/ServiceContracts/Fans/SummaryContract.php b/src/ServiceContracts/Fans/SummaryContract.php index ee0fa9d4..2d549bba 100644 --- a/src/ServiceContracts/Fans/SummaryContract.php +++ b/src/ServiceContracts/Fans/SummaryContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Fans; +namespace OnlyFansAPI\ServiceContracts\Fans; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\Summary\SummaryGenerateSummaryResponse; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\Summary\SummaryGenerateSummaryResponse; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SummaryContract { diff --git a/src/ServiceContracts/Fans/SummaryRawContract.php b/src/ServiceContracts/Fans/SummaryRawContract.php index 9805cbcb..96e3bef2 100644 --- a/src/ServiceContracts/Fans/SummaryRawContract.php +++ b/src/ServiceContracts/Fans/SummaryRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Fans; +namespace OnlyFansAPI\ServiceContracts\Fans; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\Summary\SummaryGenerateSummaryParams; -use Onlyfansapi\Fans\Summary\SummaryGenerateSummaryResponse; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryParams; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\Summary\SummaryGenerateSummaryParams; +use OnlyFansAPI\Fans\Summary\SummaryGenerateSummaryResponse; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryParams; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SummaryRawContract { diff --git a/src/ServiceContracts/FansContract.php b/src/ServiceContracts/FansContract.php index 664e37e1..bac1d2d9 100644 --- a/src/ServiceContracts/FansContract.php +++ b/src/ServiceContracts/FansContract.php @@ -2,26 +2,26 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse; -use Onlyfansapi\Fans\FanListActiveParams\Filter; -use Onlyfansapi\Fans\FanListActiveParams\Type; -use Onlyfansapi\Fans\FanListActiveResponse; -use Onlyfansapi\Fans\FanListAllResponse; -use Onlyfansapi\Fans\FanListExpiredResponse; -use Onlyfansapi\Fans\FanListLatestResponse; -use Onlyfansapi\Fans\FanListTopParams\By; -use Onlyfansapi\Fans\FanListTopResponse; -use Onlyfansapi\Fans\FanSetCustomNameResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse; +use OnlyFansAPI\Fans\FanListActiveParams\Filter; +use OnlyFansAPI\Fans\FanListActiveParams\Type; +use OnlyFansAPI\Fans\FanListActiveResponse; +use OnlyFansAPI\Fans\FanListAllResponse; +use OnlyFansAPI\Fans\FanListExpiredResponse; +use OnlyFansAPI\Fans\FanListLatestResponse; +use OnlyFansAPI\Fans\FanListTopParams\By; +use OnlyFansAPI\Fans\FanListTopResponse; +use OnlyFansAPI\Fans\FanSetCustomNameResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListActiveParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListAllParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListExpiredParams\Filter as FilterShape2 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListActiveParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListAllParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListExpiredParams\Filter as FilterShape2 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface FansContract { @@ -45,7 +45,7 @@ public function getSubscriptionHistory( * * @param string $account The Account ID * @param Filter|FilterShape $filter - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * @param int $limit Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. * @param int $offset Number of fans to skip. Must be at least 0. * @param string|null $query search within fan name/username * @param Type|value-of $type filter by fan type @@ -67,22 +67,22 @@ public function listActive( * @api * * @param string $account The Account ID - * @param \Onlyfansapi\Fans\FanListAllParams\Filter|FilterShape1 $filter - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * @param \OnlyFansAPI\Fans\FanListAllParams\Filter|FilterShape1 $filter + * @param int $limit Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. * @param int $offset Number of fans to skip. Must be at least 0. * @param string|null $query search within fan name/username - * @param \Onlyfansapi\Fans\FanListAllParams\Type|value-of<\Onlyfansapi\Fans\FanListAllParams\Type> $type filter by fan type + * @param \OnlyFansAPI\Fans\FanListAllParams\Type|value-of<\OnlyFansAPI\Fans\FanListAllParams\Type> $type filter by fan type * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listAll( string $account, - \Onlyfansapi\Fans\FanListAllParams\Filter|array|null $filter = null, + \OnlyFansAPI\Fans\FanListAllParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, - \Onlyfansapi\Fans\FanListAllParams\Type|string|null $type = null, + \OnlyFansAPI\Fans\FanListAllParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): FanListAllResponse; @@ -90,22 +90,22 @@ public function listAll( * @api * * @param string $account The Account ID - * @param \Onlyfansapi\Fans\FanListExpiredParams\Filter|FilterShape2 $filter - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * @param \OnlyFansAPI\Fans\FanListExpiredParams\Filter|FilterShape2 $filter + * @param int $limit Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. * @param int $offset Number of fans to skip. Must be at least 0. * @param string|null $query search within fan name/username - * @param \Onlyfansapi\Fans\FanListExpiredParams\Type|value-of<\Onlyfansapi\Fans\FanListExpiredParams\Type> $type filter by fan type + * @param \OnlyFansAPI\Fans\FanListExpiredParams\Type|value-of<\OnlyFansAPI\Fans\FanListExpiredParams\Type> $type filter by fan type * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listExpired( string $account, - \Onlyfansapi\Fans\FanListExpiredParams\Filter|array|null $filter = null, + \OnlyFansAPI\Fans\FanListExpiredParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, - \Onlyfansapi\Fans\FanListExpiredParams\Type|string|null $type = null, + \OnlyFansAPI\Fans\FanListExpiredParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): FanListExpiredResponse; @@ -113,11 +113,11 @@ public function listExpired( * @api * * @param string $account The Account ID - * @param string|null $endDate End date for filtering (required with start_date). This field is required when start_date is present. - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 100. + * @param string|null $endDate End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. + * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Number of fans to skip. Must be at least 0. - * @param string|null $startDate Start date for filtering (required with end_date). This field is required when end_date is present. - * @param \Onlyfansapi\Fans\FanListLatestParams\Type|value-of<\Onlyfansapi\Fans\FanListLatestParams\Type>|null $type filter by type: total, renew, or new + * @param string|null $startDate Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. + * @param \OnlyFansAPI\Fans\FanListLatestParams\Type|value-of<\OnlyFansAPI\Fans\FanListLatestParams\Type>|null $type filter by type: total, renew, or new * @param RequestOpts|null $requestOptions * * @throws APIException @@ -128,7 +128,7 @@ public function listLatest( ?int $limit = null, ?int $offset = null, ?string $startDate = null, - \Onlyfansapi\Fans\FanListLatestParams\Type|string|null $type = null, + \OnlyFansAPI\Fans\FanListLatestParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): FanListLatestResponse; @@ -137,8 +137,8 @@ public function listLatest( * * @param string $account The Account ID * @param By|value-of|null $by sort by: total (default), subscribes, tips, messages, post, streams - * @param string|null $endDate End date for filtering (required with start_date). This field is required when start_date is present. - * @param string|null $startDate Start date for filtering (required with end_date). This field is required when end_date is present. + * @param string|null $endDate End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. + * @param string|null $startDate Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. * @param RequestOpts|null $requestOptions * * @throws APIException diff --git a/src/ServiceContracts/FansRawContract.php b/src/ServiceContracts/FansRawContract.php index e64c09c4..09cf2d8a 100644 --- a/src/ServiceContracts/FansRawContract.php +++ b/src/ServiceContracts/FansRawContract.php @@ -2,28 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryParams; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse; -use Onlyfansapi\Fans\FanListActiveParams; -use Onlyfansapi\Fans\FanListActiveResponse; -use Onlyfansapi\Fans\FanListAllParams; -use Onlyfansapi\Fans\FanListAllResponse; -use Onlyfansapi\Fans\FanListExpiredParams; -use Onlyfansapi\Fans\FanListExpiredResponse; -use Onlyfansapi\Fans\FanListLatestParams; -use Onlyfansapi\Fans\FanListLatestResponse; -use Onlyfansapi\Fans\FanListTopParams; -use Onlyfansapi\Fans\FanListTopResponse; -use Onlyfansapi\Fans\FanSetCustomNameParams; -use Onlyfansapi\Fans\FanSetCustomNameResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryParams; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse; +use OnlyFansAPI\Fans\FanListActiveParams; +use OnlyFansAPI\Fans\FanListActiveResponse; +use OnlyFansAPI\Fans\FanListAllParams; +use OnlyFansAPI\Fans\FanListAllResponse; +use OnlyFansAPI\Fans\FanListExpiredParams; +use OnlyFansAPI\Fans\FanListExpiredResponse; +use OnlyFansAPI\Fans\FanListLatestParams; +use OnlyFansAPI\Fans\FanListLatestResponse; +use OnlyFansAPI\Fans\FanListTopParams; +use OnlyFansAPI\Fans\FanListTopResponse; +use OnlyFansAPI\Fans\FanSetCustomNameParams; +use OnlyFansAPI\Fans\FanSetCustomNameResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface FansRawContract { diff --git a/src/ServiceContracts/FollowingContract.php b/src/ServiceContracts/FollowingContract.php index 3a341998..93891cf2 100644 --- a/src/ServiceContracts/FollowingContract.php +++ b/src/ServiceContracts/FollowingContract.php @@ -2,20 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Following\FollowingListActiveParams\Filter; -use Onlyfansapi\Following\FollowingListActiveResponse; -use Onlyfansapi\Following\FollowingListAllResponse; -use Onlyfansapi\Following\FollowingListExpiredResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Following\FollowingListActiveParams\Filter; +use OnlyFansAPI\Following\FollowingListActiveParams\Sort; +use OnlyFansAPI\Following\FollowingListActiveParams\SortDirection; +use OnlyFansAPI\Following\FollowingListActiveResponse; +use OnlyFansAPI\Following\FollowingListAllResponse; +use OnlyFansAPI\Following\FollowingListExpiredResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListActiveParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListAllParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListExpiredParams\Filter as FilterShape2 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListActiveParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListAllParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListExpiredParams\Filter as FilterShape2 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface FollowingContract { @@ -27,6 +29,8 @@ interface FollowingContract * @param int $limit Number of followings to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Pagination offset. Must be at least 0. * @param string|null $query search within following name/username + * @param Sort|value-of|null $sort Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * @param SortDirection|value-of|null $sortDirection Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -37,6 +41,8 @@ public function listActive( ?int $limit = null, ?int $offset = null, ?string $query = null, + Sort|string|null $sort = null, + SortDirection|string|null $sortDirection = null, RequestOptions|array|null $requestOptions = null, ): FollowingListActiveResponse; @@ -44,20 +50,24 @@ public function listActive( * @api * * @param string $account The Account ID - * @param \Onlyfansapi\Following\FollowingListAllParams\Filter|FilterShape1 $filter + * @param \OnlyFansAPI\Following\FollowingListAllParams\Filter|FilterShape1 $filter * @param int $limit Number of followings to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Pagination offset. Must be at least 0. * @param string|null $query search within following name/username + * @param \OnlyFansAPI\Following\FollowingListAllParams\Sort|value-of<\OnlyFansAPI\Following\FollowingListAllParams\Sort>|null $sort Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * @param \OnlyFansAPI\Following\FollowingListAllParams\SortDirection|value-of<\OnlyFansAPI\Following\FollowingListAllParams\SortDirection>|null $sortDirection Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listAll( string $account, - \Onlyfansapi\Following\FollowingListAllParams\Filter|array|null $filter = null, + \OnlyFansAPI\Following\FollowingListAllParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, + \OnlyFansAPI\Following\FollowingListAllParams\Sort|string|null $sort = null, + \OnlyFansAPI\Following\FollowingListAllParams\SortDirection|string|null $sortDirection = null, RequestOptions|array|null $requestOptions = null, ): FollowingListAllResponse; @@ -65,20 +75,24 @@ public function listAll( * @api * * @param string $account The Account ID - * @param \Onlyfansapi\Following\FollowingListExpiredParams\Filter|FilterShape2 $filter + * @param \OnlyFansAPI\Following\FollowingListExpiredParams\Filter|FilterShape2 $filter * @param int $limit Number of followings to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Pagination offset. Must be at least 0. * @param string|null $query search within following name/username + * @param \OnlyFansAPI\Following\FollowingListExpiredParams\Sort|value-of<\OnlyFansAPI\Following\FollowingListExpiredParams\Sort>|null $sort Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * @param \OnlyFansAPI\Following\FollowingListExpiredParams\SortDirection|value-of<\OnlyFansAPI\Following\FollowingListExpiredParams\SortDirection>|null $sortDirection Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listExpired( string $account, - \Onlyfansapi\Following\FollowingListExpiredParams\Filter|array|null $filter = null, + \OnlyFansAPI\Following\FollowingListExpiredParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, + \OnlyFansAPI\Following\FollowingListExpiredParams\Sort|string|null $sort = null, + \OnlyFansAPI\Following\FollowingListExpiredParams\SortDirection|string|null $sortDirection = null, RequestOptions|array|null $requestOptions = null, ): FollowingListExpiredResponse; } diff --git a/src/ServiceContracts/FollowingRawContract.php b/src/ServiceContracts/FollowingRawContract.php index 512ebe8b..512130b2 100644 --- a/src/ServiceContracts/FollowingRawContract.php +++ b/src/ServiceContracts/FollowingRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Following\FollowingListActiveParams; -use Onlyfansapi\Following\FollowingListActiveResponse; -use Onlyfansapi\Following\FollowingListAllParams; -use Onlyfansapi\Following\FollowingListAllResponse; -use Onlyfansapi\Following\FollowingListExpiredParams; -use Onlyfansapi\Following\FollowingListExpiredResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Following\FollowingListActiveParams; +use OnlyFansAPI\Following\FollowingListActiveResponse; +use OnlyFansAPI\Following\FollowingListAllParams; +use OnlyFansAPI\Following\FollowingListAllResponse; +use OnlyFansAPI\Following\FollowingListExpiredParams; +use OnlyFansAPI\Following\FollowingListExpiredResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface FollowingRawContract { diff --git a/src/ServiceContracts/GiphyContract.php b/src/ServiceContracts/GiphyContract.php index 79396204..b32b3409 100644 --- a/src/ServiceContracts/GiphyContract.php +++ b/src/ServiceContracts/GiphyContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Giphy\GiphyListTrendingResponse; -use Onlyfansapi\Giphy\GiphySearchResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse; +use OnlyFansAPI\Giphy\GiphySearchResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface GiphyContract { diff --git a/src/ServiceContracts/GiphyRawContract.php b/src/ServiceContracts/GiphyRawContract.php index 7732943e..064c8f14 100644 --- a/src/ServiceContracts/GiphyRawContract.php +++ b/src/ServiceContracts/GiphyRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Giphy\GiphyListTrendingParams; -use Onlyfansapi\Giphy\GiphyListTrendingResponse; -use Onlyfansapi\Giphy\GiphySearchParams; -use Onlyfansapi\Giphy\GiphySearchResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Giphy\GiphyListTrendingParams; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse; +use OnlyFansAPI\Giphy\GiphySearchParams; +use OnlyFansAPI\Giphy\GiphySearchResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface GiphyRawContract { diff --git a/src/ServiceContracts/LinkTagsContract.php b/src/ServiceContracts/LinkTagsContract.php index 76bdd7cf..a21e6c95 100644 --- a/src/ServiceContracts/LinkTagsContract.php +++ b/src/ServiceContracts/LinkTagsContract.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\LinkTags\LinkTagListParams\Type; -use Onlyfansapi\LinkTags\LinkTagListResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\LinkTags\LinkTagListParams\Type; +use OnlyFansAPI\LinkTags\LinkTagListResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface LinkTagsContract { /** * @api * - * @param Type|value-of $type Filter by link type. If not provided, returns tags for both types. + * @param Type|value-of $type Filter by link type. If not provided, returns tags for all types. * @param RequestOpts|null $requestOptions * * @throws APIException diff --git a/src/ServiceContracts/LinkTagsRawContract.php b/src/ServiceContracts/LinkTagsRawContract.php index 76790067..43bf6cb6 100644 --- a/src/ServiceContracts/LinkTagsRawContract.php +++ b/src/ServiceContracts/LinkTagsRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\LinkTags\LinkTagListParams; -use Onlyfansapi\LinkTags\LinkTagListResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\LinkTags\LinkTagListParams; +use OnlyFansAPI\LinkTags\LinkTagListResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface LinkTagsRawContract { diff --git a/src/ServiceContracts/MassMessagingContract.php b/src/ServiceContracts/MassMessagingContract.php index bc700882..2b851964 100644 --- a/src/ServiceContracts/MassMessagingContract.php +++ b/src/ServiceContracts/MassMessagingContract.php @@ -2,19 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse; -use Onlyfansapi\MassMessaging\MassMessagingListResponse; -use Onlyfansapi\MassMessaging\MassMessagingSendResponse; -use Onlyfansapi\MassMessaging\MassMessagingUpdateResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse; +use OnlyFansAPI\MassMessaging\MassMessagingSendResponse; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateParams\BlockBannedWords; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MassMessagingContract { @@ -39,11 +40,12 @@ public function retrieve( * @param string $id Path param: The ID of the message queue item. Can be retrieved from the above store and list endpoints. * @param string $account Path param: The Account ID * @param string $text Body param: The message text content + * @param BlockBannedWords|value-of $blockBannedWords Body param: Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param string $giphyID Body param: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). * @param bool $lockedText Body param: Whether the text should be shown or hidden * @param list $mediaFiles Body param: Array of media file upload prefixed_ids, or OF media IDs (required if price is not 0). Will be hidden if `price` is provided. * @param list $previews Body param: Array of media file upload prefixed_ids, or OF media IDs (required if price is not 0). Will be shown if `price` is provided. All `previews` values must also exist in the `mediaFiles` array. - * @param int $price Body param: Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required + * @param float $price Body param: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required * @param string $scheduledDate body param: Schedule the chat message in the future (UTC timezone) * @param list $userIDs body param: Array of user IDs that the mass message will be sent to * @param list $userLists body param: Array of user list IDs that the mass message will be sent to @@ -55,11 +57,12 @@ public function update( string $id, string $account, string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?string $scheduledDate = null, ?array $userIDs = null, ?array $userLists = null, @@ -98,7 +101,7 @@ public function delete( * @api * * @param string $account The Account ID - * @param string $endDate The latest mass message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * @param string $endDate The latest mass message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. * @param int $limit Number of mass messages to return (default = 10) * @param string $query optionally, find a mass message by the message text * @param string $startDate The earliest mass message to retrieve. Keep empty to get all. @@ -120,12 +123,13 @@ public function retrieveOverview( * * @param string $account The Account ID * @param string $text The message text content + * @param \OnlyFansAPI\MassMessaging\MassMessagingSendParams\BlockBannedWords|value-of<\OnlyFansAPI\MassMessaging\MassMessagingSendParams\BlockBannedWords> $blockBannedWords Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param list $excludedLists array of user list IDs that the mass message will NOT be sent to * @param string $giphyID The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). * @param bool $lockedText Whether the text should be shown or hidden * @param list $mediaFiles Direct file uploads, OFAPI `ofapi_media_` IDs, or OF vault IDs. Will be hidden if `price` is provided. * @param list $previews Direct file uploads, OFAPI `ofapi_media_` IDs, OF vault IDs, or integer indices referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - * @param int $price Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required + * @param float $price Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required * @param string $rfGuest Array of OnlyFans Release Form Guest IDs to tag in your mass message * @param string $rfPartner Array of OnlyFans Release Form Partners IDs to tag in your mass message * @param string $rfTag Array of OnlyFans Creator User IDs to tag in your mass message @@ -140,12 +144,13 @@ public function retrieveOverview( public function send( string $account, string $text, + \OnlyFansAPI\MassMessaging\MassMessagingSendParams\BlockBannedWords|string|null $blockBannedWords = null, ?array $excludedLists = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?string $rfGuest = null, ?string $rfPartner = null, ?string $rfTag = null, diff --git a/src/ServiceContracts/MassMessagingRawContract.php b/src/ServiceContracts/MassMessagingRawContract.php index 14514ac1..d0406a23 100644 --- a/src/ServiceContracts/MassMessagingRawContract.php +++ b/src/ServiceContracts/MassMessagingRawContract.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\MassMessaging\MassMessagingDeleteParams; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse; -use Onlyfansapi\MassMessaging\MassMessagingListResponse; -use Onlyfansapi\MassMessaging\MassMessagingRetrieveOverviewParams; -use Onlyfansapi\MassMessaging\MassMessagingRetrieveParams; -use Onlyfansapi\MassMessaging\MassMessagingSendParams; -use Onlyfansapi\MassMessaging\MassMessagingSendResponse; -use Onlyfansapi\MassMessaging\MassMessagingUpdateParams; -use Onlyfansapi\MassMessaging\MassMessagingUpdateResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteParams; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse; +use OnlyFansAPI\MassMessaging\MassMessagingRetrieveOverviewParams; +use OnlyFansAPI\MassMessaging\MassMessagingRetrieveParams; +use OnlyFansAPI\MassMessaging\MassMessagingSendParams; +use OnlyFansAPI\MassMessaging\MassMessagingSendResponse; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateParams; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MassMessagingRawContract { diff --git a/src/ServiceContracts/MeContract.php b/src/ServiceContracts/MeContract.php index d8541d16..35e15e01 100644 --- a/src/ServiceContracts/MeContract.php +++ b/src/ServiceContracts/MeContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Me\MeGetModelStartDateResponse; -use Onlyfansapi\Me\MeGetResponse; -use Onlyfansapi\Me\MeGetTopPercentageResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Me\MeGetModelStartDateResponse; +use OnlyFansAPI\Me\MeGetResponse; +use OnlyFansAPI\Me\MeGetTopPercentageResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MeContract { diff --git a/src/ServiceContracts/MeRawContract.php b/src/ServiceContracts/MeRawContract.php index a340c456..33a345c6 100644 --- a/src/ServiceContracts/MeRawContract.php +++ b/src/ServiceContracts/MeRawContract.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Me\MeGetModelStartDateResponse; -use Onlyfansapi\Me\MeGetResponse; -use Onlyfansapi\Me\MeGetTopPercentageResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Me\MeGetModelStartDateResponse; +use OnlyFansAPI\Me\MeGetResponse; +use OnlyFansAPI\Me\MeGetTopPercentageResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MeRawContract { diff --git a/src/ServiceContracts/Media/UploadsContract.php b/src/ServiceContracts/Media/UploadsContract.php index 60269fd9..c494ef49 100644 --- a/src/ServiceContracts/Media/UploadsContract.php +++ b/src/ServiceContracts/Media/UploadsContract.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media; +namespace OnlyFansAPI\ServiceContracts\Media; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember0; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember1; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember2; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember3; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember0; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember1; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember2; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember3; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UploadsContract { diff --git a/src/ServiceContracts/Media/UploadsRawContract.php b/src/ServiceContracts/Media/UploadsRawContract.php index 1e2ca188..fc2f1257 100644 --- a/src/ServiceContracts/Media/UploadsRawContract.php +++ b/src/ServiceContracts/Media/UploadsRawContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media; +namespace OnlyFansAPI\ServiceContracts\Media; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Uploads\UploadGetStatusParams; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember0; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember1; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember2; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember3; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Uploads\UploadGetStatusParams; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember0; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember1; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember2; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember3; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UploadsRawContract { diff --git a/src/ServiceContracts/Media/Vault/Lists/MediaContract.php b/src/ServiceContracts/Media/Vault/Lists/MediaContract.php index 7ca01c7b..e47196c3 100644 --- a/src/ServiceContracts/Media/Vault/Lists/MediaContract.php +++ b/src/ServiceContracts/Media/Vault/Lists/MediaContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media\Vault\Lists; +namespace OnlyFansAPI\ServiceContracts\Media\Vault\Lists; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MediaContract { diff --git a/src/ServiceContracts/Media/Vault/Lists/MediaRawContract.php b/src/ServiceContracts/Media/Vault/Lists/MediaRawContract.php index eb12f53c..22de53f6 100644 --- a/src/ServiceContracts/Media/Vault/Lists/MediaRawContract.php +++ b/src/ServiceContracts/Media/Vault/Lists/MediaRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media\Vault\Lists; +namespace OnlyFansAPI\ServiceContracts\Media\Vault\Lists; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddParams; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveParams; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddParams; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveParams; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MediaRawContract { diff --git a/src/ServiceContracts/Media/Vault/ListsContract.php b/src/ServiceContracts/Media/Vault/ListsContract.php index dd1137ac..7d38d6fa 100644 --- a/src/ServiceContracts/Media/Vault/ListsContract.php +++ b/src/ServiceContracts/Media/Vault/ListsContract.php @@ -2,18 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media\Vault; +namespace OnlyFansAPI\ServiceContracts\Media\Vault; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Vault\Lists\ListDeleteResponse; -use Onlyfansapi\Media\Vault\Lists\ListGetResponse; -use Onlyfansapi\Media\Vault\Lists\ListListResponse; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Vault\Lists\ListDeleteResponse; +use OnlyFansAPI\Media\Vault\Lists\ListGetResponse; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember1; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ListsContract { @@ -50,8 +51,9 @@ public function retrieve( /** * @api * - * @param string $listID The ID of the list - * @param string $account The Account ID + * @param string $listID Path param: The ID of the list + * @param string $account Path param: The Account ID + * @param string $name Body param: The new name for the vault list. Must not be greater than 255 characters. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -59,6 +61,7 @@ public function retrieve( public function update( string $listID, string $account, + string $name, RequestOptions|array|null $requestOptions = null, ): ListUpdateResponse; @@ -66,6 +69,7 @@ public function update( * @api * * @param string $account The Account ID + * @param bool $lightweight Set to `true` to return only `id`, `name`, `type`, `canUpdate` and a rolled-up `mediaCount` per list, dropping the `medias` previews. Much smaller payload — ideal for rendering a folder picker. Default: `false` * @param int $limit Number of media to return per page. Default: `24` * @param int $offset The offset used for pagination. Default `0` * @param string $query optionally, find a list by its name @@ -75,11 +79,12 @@ public function update( */ public function list( string $account, + ?bool $lightweight = null, ?int $limit = null, ?int $offset = null, ?string $query = null, RequestOptions|array|null $requestOptions = null, - ): ListListResponse; + ): UnionMember0|UnionMember1; /** * @api diff --git a/src/ServiceContracts/Media/Vault/ListsRawContract.php b/src/ServiceContracts/Media/Vault/ListsRawContract.php index 1271aca7..f2941fb7 100644 --- a/src/ServiceContracts/Media/Vault/ListsRawContract.php +++ b/src/ServiceContracts/Media/Vault/ListsRawContract.php @@ -2,24 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media\Vault; +namespace OnlyFansAPI\ServiceContracts\Media\Vault; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Vault\Lists\ListCreateParams; -use Onlyfansapi\Media\Vault\Lists\ListDeleteParams; -use Onlyfansapi\Media\Vault\Lists\ListDeleteResponse; -use Onlyfansapi\Media\Vault\Lists\ListGetResponse; -use Onlyfansapi\Media\Vault\Lists\ListListParams; -use Onlyfansapi\Media\Vault\Lists\ListListResponse; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse; -use Onlyfansapi\Media\Vault\Lists\ListRetrieveParams; -use Onlyfansapi\Media\Vault\Lists\ListUpdateParams; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Vault\Lists\ListCreateParams; +use OnlyFansAPI\Media\Vault\Lists\ListDeleteParams; +use OnlyFansAPI\Media\Vault\Lists\ListDeleteResponse; +use OnlyFansAPI\Media\Vault\Lists\ListGetResponse; +use OnlyFansAPI\Media\Vault\Lists\ListListParams; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember1; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse; +use OnlyFansAPI\Media\Vault\Lists\ListRetrieveParams; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateParams; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ListsRawContract { @@ -60,7 +61,7 @@ public function retrieve( /** * @api * - * @param string $listID The ID of the list + * @param string $listID Path param: The ID of the list * @param array|ListUpdateParams $params * @param RequestOpts|null $requestOptions * @@ -81,7 +82,7 @@ public function update( * @param array|ListListParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse + * @return BaseResponse * * @throws APIException */ diff --git a/src/ServiceContracts/Media/VaultContract.php b/src/ServiceContracts/Media/VaultContract.php index b7965dd5..38cf3253 100644 --- a/src/ServiceContracts/Media/VaultContract.php +++ b/src/ServiceContracts/Media/VaultContract.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media; +namespace OnlyFansAPI\ServiceContracts\Media; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\FileParam; -use Onlyfansapi\Media\Vault\VaultDeleteResponse; -use Onlyfansapi\Media\Vault\VaultGetResponse; -use Onlyfansapi\Media\Vault\VaultListParams\Field; -use Onlyfansapi\Media\Vault\VaultListParams\Sort; -use Onlyfansapi\Media\Vault\VaultListParams\Type; -use Onlyfansapi\Media\Vault\VaultListResponse; -use Onlyfansapi\Media\Vault\VaultUploadResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\FileParam; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse; +use OnlyFansAPI\Media\Vault\VaultGetResponse; +use OnlyFansAPI\Media\Vault\VaultListParams\Field; +use OnlyFansAPI\Media\Vault\VaultListParams\Sort; +use OnlyFansAPI\Media\Vault\VaultListParams\Type; +use OnlyFansAPI\Media\Vault\VaultListResponse; +use OnlyFansAPI\Media\Vault\VaultUploadResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface VaultContract { @@ -81,7 +81,7 @@ public function delete( * @api * * @param string $account The Account ID - * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. + * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events — they only fire for async uploads. * @param string|FileParam $file The file to upload. Required if `file_url` is not provided. Maximum file size: 100 MB (limited by Cloudflare). * @param string $fileURL A URL to download the file from. Required if `file` is not provided. Maximum file size depends on the subscription configuration. * @param RequestOpts|null $requestOptions diff --git a/src/ServiceContracts/Media/VaultRawContract.php b/src/ServiceContracts/Media/VaultRawContract.php index 05da18ed..084cc5d1 100644 --- a/src/ServiceContracts/Media/VaultRawContract.php +++ b/src/ServiceContracts/Media/VaultRawContract.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Media; +namespace OnlyFansAPI\ServiceContracts\Media; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Vault\VaultDeleteParams; -use Onlyfansapi\Media\Vault\VaultDeleteResponse; -use Onlyfansapi\Media\Vault\VaultGetResponse; -use Onlyfansapi\Media\Vault\VaultListParams; -use Onlyfansapi\Media\Vault\VaultListResponse; -use Onlyfansapi\Media\Vault\VaultRetrieveParams; -use Onlyfansapi\Media\Vault\VaultUploadParams; -use Onlyfansapi\Media\Vault\VaultUploadResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Vault\VaultDeleteParams; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse; +use OnlyFansAPI\Media\Vault\VaultGetResponse; +use OnlyFansAPI\Media\Vault\VaultListParams; +use OnlyFansAPI\Media\Vault\VaultListResponse; +use OnlyFansAPI\Media\Vault\VaultRetrieveParams; +use OnlyFansAPI\Media\Vault\VaultUploadParams; +use OnlyFansAPI\Media\Vault\VaultUploadResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface VaultRawContract { diff --git a/src/ServiceContracts/MediaContract.php b/src/ServiceContracts/MediaContract.php index 021819bf..dbae49dc 100644 --- a/src/ServiceContracts/MediaContract.php +++ b/src/ServiceContracts/MediaContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\FileParam; -use Onlyfansapi\Media\MediaScrapeParams\FileType; -use Onlyfansapi\Media\MediaScrapeResponse; -use Onlyfansapi\Media\MediaUploadParams\Type; -use Onlyfansapi\Media\MediaUploadResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\FileParam; +use OnlyFansAPI\Media\MediaScrapeParams\FileType; +use OnlyFansAPI\Media\MediaScrapeResponse; +use OnlyFansAPI\Media\MediaUploadParams\Type; +use OnlyFansAPI\Media\MediaUploadResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MediaContract { @@ -30,7 +30,7 @@ public function download( string $cdnURL, string $account, RequestOptions|array|null $requestOptions = null, - ): string; + ): mixed; /** * @api @@ -59,7 +59,7 @@ public function scrape( * @api * * @param string $account The Account ID - * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. + * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events — they only fire for async uploads. * @param string|FileParam $file The file to upload. Required if `file_url` is not provided. Maximum file size: 100 MB (limited by Cloudflare). * @param string $fileURL A URL to download the file from. Required if `file` is not provided. Maximum file size depends on the subscription configuration. * @param Type|value-of $type set to `avatar` if this file will be used as a profile picture, `header` for a profile banner, or keep empty if this file will be for anything else diff --git a/src/ServiceContracts/MediaRawContract.php b/src/ServiceContracts/MediaRawContract.php index 099a034f..8ee156b7 100644 --- a/src/ServiceContracts/MediaRawContract.php +++ b/src/ServiceContracts/MediaRawContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\MediaDownloadParams; -use Onlyfansapi\Media\MediaScrapeParams; -use Onlyfansapi\Media\MediaScrapeResponse; -use Onlyfansapi\Media\MediaUploadParams; -use Onlyfansapi\Media\MediaUploadResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\MediaDownloadParams; +use OnlyFansAPI\Media\MediaScrapeParams; +use OnlyFansAPI\Media\MediaScrapeResponse; +use OnlyFansAPI\Media\MediaUploadParams; +use OnlyFansAPI\Media\MediaUploadResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MediaRawContract { @@ -25,7 +25,7 @@ interface MediaRawContract * @param array|MediaDownloadParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse + * @return BaseResponse * * @throws APIException */ diff --git a/src/ServiceContracts/MessagesContract.php b/src/ServiceContracts/MessagesContract.php index 912d0f6e..b7d99aee 100644 --- a/src/ServiceContracts/MessagesContract.php +++ b/src/ServiceContracts/MessagesContract.php @@ -2,35 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Messages\MessageAttachTagsResponse; -use Onlyfansapi\RequestOptions; - -/** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions - */ -interface MessagesContract -{ - /** - * @api - * - * @param string $messageID Path param: The ID of the message to attach the release forms to. This can be ONLY a message sent by the creator. - * @param string $account Path param: The Account ID - * @param string $rfGuest Body param: Array of OnlyFans Release Form Guest IDs to tag in your message - * @param string $rfPartner Body param: Array of OnlyFans Release Form Partners IDs to tag in your message - * @param string $rfTag Body param: Array of OnlyFans Creator User IDs to tag in your message - * @param RequestOpts|null $requestOptions - * - * @throws APIException - */ - public function attachTags( - string $messageID, - string $account, - ?string $rfGuest = null, - ?string $rfPartner = null, - ?string $rfTag = null, - RequestOptions|array|null $requestOptions = null, - ): MessageAttachTagsResponse; -} +interface MessagesContract {} diff --git a/src/ServiceContracts/MessagesRawContract.php b/src/ServiceContracts/MessagesRawContract.php index 5659f75f..c1c76113 100644 --- a/src/ServiceContracts/MessagesRawContract.php +++ b/src/ServiceContracts/MessagesRawContract.php @@ -2,33 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Messages\MessageAttachTagsParams; -use Onlyfansapi\Messages\MessageAttachTagsResponse; -use Onlyfansapi\RequestOptions; - -/** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions - */ -interface MessagesRawContract -{ - /** - * @api - * - * @param string $messageID Path param: The ID of the message to attach the release forms to. This can be ONLY a message sent by the creator. - * @param array|MessageAttachTagsParams $params - * @param RequestOpts|null $requestOptions - * - * @return BaseResponse - * - * @throws APIException - */ - public function attachTags( - string $messageID, - array|MessageAttachTagsParams $params, - RequestOptions|array|null $requestOptions = null, - ): BaseResponse; -} +interface MessagesRawContract {} diff --git a/src/ServiceContracts/Notifications/TabsOrderContract.php b/src/ServiceContracts/Notifications/TabsOrderContract.php index a931e4b3..820df0bc 100644 --- a/src/ServiceContracts/Notifications/TabsOrderContract.php +++ b/src/ServiceContracts/Notifications/TabsOrderContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Notifications; +namespace OnlyFansAPI\ServiceContracts\Notifications; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TabsOrderContract { diff --git a/src/ServiceContracts/Notifications/TabsOrderRawContract.php b/src/ServiceContracts/Notifications/TabsOrderRawContract.php index 71ed91d4..5b58e941 100644 --- a/src/ServiceContracts/Notifications/TabsOrderRawContract.php +++ b/src/ServiceContracts/Notifications/TabsOrderRawContract.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Notifications; +namespace OnlyFansAPI\ServiceContracts\Notifications; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateParams; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateParams; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TabsOrderRawContract { diff --git a/src/ServiceContracts/NotificationsContract.php b/src/ServiceContracts/NotificationsContract.php index 9eabef3a..525dd601 100644 --- a/src/ServiceContracts/NotificationsContract.php +++ b/src/ServiceContracts/NotificationsContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Notifications\NotificationGetCountsResponse; -use Onlyfansapi\Notifications\NotificationListParams\SkipUsers; -use Onlyfansapi\Notifications\NotificationListParams\Type; -use Onlyfansapi\Notifications\NotificationListResponse; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse; +use OnlyFansAPI\Notifications\NotificationListParams\SkipUsers; +use OnlyFansAPI\Notifications\NotificationListParams\Type; +use OnlyFansAPI\Notifications\NotificationListResponse; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface NotificationsContract { @@ -24,7 +24,7 @@ interface NotificationsContract * @param string $account The Account ID * @param int $fromID Used for pagination. This value should be the ID of the previous response's last notification. * @param int $limit The number of notifications. Default `10` - * @param SkipUsers|value-of $skipUsers Whether to skip user details. Default `all` + * @param SkipUsers|value-of $skipUsers Whether to skip user details. Defaults to `all`. * @param Type|value-of $type Filter notifications by a specific type * @param RequestOpts|null $requestOptions * diff --git a/src/ServiceContracts/NotificationsRawContract.php b/src/ServiceContracts/NotificationsRawContract.php index 5e89f5db..387cb3b5 100644 --- a/src/ServiceContracts/NotificationsRawContract.php +++ b/src/ServiceContracts/NotificationsRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Notifications\NotificationGetCountsResponse; -use Onlyfansapi\Notifications\NotificationListParams; -use Onlyfansapi\Notifications\NotificationListResponse; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse; -use Onlyfansapi\Notifications\NotificationSearchUsersParams; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse; +use OnlyFansAPI\Notifications\NotificationListParams; +use OnlyFansAPI\Notifications\NotificationListResponse; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse; +use OnlyFansAPI\Notifications\NotificationSearchUsersParams; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface NotificationsRawContract { diff --git a/src/ServiceContracts/PayoutsContract.php b/src/ServiceContracts/PayoutsContract.php index 7d2d670f..9b05868b 100644 --- a/src/ServiceContracts/PayoutsContract.php +++ b/src/ServiceContracts/PayoutsContract.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse; -use Onlyfansapi\Payouts\PayoutListRequestsResponse; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyParams\Frequency; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyParams\Frequency; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PayoutsContract { diff --git a/src/ServiceContracts/PayoutsRawContract.php b/src/ServiceContracts/PayoutsRawContract.php index 9a778c33..2c72e4d2 100644 --- a/src/ServiceContracts/PayoutsRawContract.php +++ b/src/ServiceContracts/PayoutsRawContract.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse; -use Onlyfansapi\Payouts\PayoutListRequestsParams; -use Onlyfansapi\Payouts\PayoutListRequestsResponse; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalParams; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; -use Onlyfansapi\Payouts\PayoutRetrieveEarningStatisticsParams; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyParams; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse; +use OnlyFansAPI\Payouts\PayoutListRequestsParams; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalParams; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; +use OnlyFansAPI\Payouts\PayoutRetrieveEarningStatisticsParams; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyParams; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PayoutsRawContract { diff --git a/src/ServiceContracts/Posts/CommentsContract.php b/src/ServiceContracts/Posts/CommentsContract.php index 675ae761..92db0c7e 100644 --- a/src/ServiceContracts/Posts/CommentsContract.php +++ b/src/ServiceContracts/Posts/CommentsContract.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Posts; +namespace OnlyFansAPI\ServiceContracts\Posts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse; -use Onlyfansapi\Posts\Comments\CommentLikeResponse; -use Onlyfansapi\Posts\Comments\CommentListParams\Sort; -use Onlyfansapi\Posts\Comments\CommentListResponse; -use Onlyfansapi\Posts\Comments\CommentNewResponse; -use Onlyfansapi\Posts\Comments\CommentPinResponse; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse; +use OnlyFansAPI\Posts\Comments\CommentListParams\Sort; +use OnlyFansAPI\Posts\Comments\CommentListResponse; +use OnlyFansAPI\Posts\Comments\CommentNewResponse; +use OnlyFansAPI\Posts\Comments\CommentPinResponse; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface CommentsContract { diff --git a/src/ServiceContracts/Posts/CommentsRawContract.php b/src/ServiceContracts/Posts/CommentsRawContract.php index 0ba206cf..4743470d 100644 --- a/src/ServiceContracts/Posts/CommentsRawContract.php +++ b/src/ServiceContracts/Posts/CommentsRawContract.php @@ -2,28 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Posts; +namespace OnlyFansAPI\ServiceContracts\Posts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Posts\Comments\CommentCreateParams; -use Onlyfansapi\Posts\Comments\CommentDeleteParams; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse; -use Onlyfansapi\Posts\Comments\CommentLikeParams; -use Onlyfansapi\Posts\Comments\CommentLikeResponse; -use Onlyfansapi\Posts\Comments\CommentListParams; -use Onlyfansapi\Posts\Comments\CommentListResponse; -use Onlyfansapi\Posts\Comments\CommentNewResponse; -use Onlyfansapi\Posts\Comments\CommentPinParams; -use Onlyfansapi\Posts\Comments\CommentPinResponse; -use Onlyfansapi\Posts\Comments\CommentUnlikeParams; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse; -use Onlyfansapi\Posts\Comments\CommentUnpinParams; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Posts\Comments\CommentCreateParams; +use OnlyFansAPI\Posts\Comments\CommentDeleteParams; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse; +use OnlyFansAPI\Posts\Comments\CommentLikeParams; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse; +use OnlyFansAPI\Posts\Comments\CommentListParams; +use OnlyFansAPI\Posts\Comments\CommentListResponse; +use OnlyFansAPI\Posts\Comments\CommentNewResponse; +use OnlyFansAPI\Posts\Comments\CommentPinParams; +use OnlyFansAPI\Posts\Comments\CommentPinResponse; +use OnlyFansAPI\Posts\Comments\CommentUnlikeParams; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse; +use OnlyFansAPI\Posts\Comments\CommentUnpinParams; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface CommentsRawContract { diff --git a/src/ServiceContracts/Posts/LabelsContract.php b/src/ServiceContracts/Posts/LabelsContract.php index a673b3d7..3b9a4dfd 100644 --- a/src/ServiceContracts/Posts/LabelsContract.php +++ b/src/ServiceContracts/Posts/LabelsContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Posts; +namespace OnlyFansAPI\ServiceContracts\Posts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Posts\Labels\LabelListResponse; -use Onlyfansapi\Posts\Labels\LabelNewResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Posts\Labels\LabelListResponse; +use OnlyFansAPI\Posts\Labels\LabelNewResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface LabelsContract { diff --git a/src/ServiceContracts/Posts/LabelsRawContract.php b/src/ServiceContracts/Posts/LabelsRawContract.php index eeb5515c..6eb08b21 100644 --- a/src/ServiceContracts/Posts/LabelsRawContract.php +++ b/src/ServiceContracts/Posts/LabelsRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Posts; +namespace OnlyFansAPI\ServiceContracts\Posts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Posts\Labels\LabelCreateParams; -use Onlyfansapi\Posts\Labels\LabelListParams; -use Onlyfansapi\Posts\Labels\LabelListResponse; -use Onlyfansapi\Posts\Labels\LabelNewResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Posts\Labels\LabelCreateParams; +use OnlyFansAPI\Posts\Labels\LabelListParams; +use OnlyFansAPI\Posts\Labels\LabelListResponse; +use OnlyFansAPI\Posts\Labels\LabelNewResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface LabelsRawContract { diff --git a/src/ServiceContracts/PostsContract.php b/src/ServiceContracts/PostsContract.php index 3f9d2ebf..0fb27249 100644 --- a/src/ServiceContracts/PostsContract.php +++ b/src/ServiceContracts/PostsContract.php @@ -2,24 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Posts\PostArchiveResponse; -use Onlyfansapi\Posts\PostCreateParams\VotingType; -use Onlyfansapi\Posts\PostDeleteResponse; -use Onlyfansapi\Posts\PostGetResponse; -use Onlyfansapi\Posts\PostListParams\Order; -use Onlyfansapi\Posts\PostListParams\Sort; -use Onlyfansapi\Posts\PostListResponse; -use Onlyfansapi\Posts\PostNewResponse; -use Onlyfansapi\Posts\PostPinResponse; -use Onlyfansapi\Posts\PostStatsResponse; -use Onlyfansapi\Posts\PostUnarchiveResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Posts\PostArchiveResponse; +use OnlyFansAPI\Posts\PostCreateParams\BlockBannedWords; +use OnlyFansAPI\Posts\PostCreateParams\VotingType; +use OnlyFansAPI\Posts\PostDeleteResponse; +use OnlyFansAPI\Posts\PostGetResponse; +use OnlyFansAPI\Posts\PostListParams\Order; +use OnlyFansAPI\Posts\PostListParams\Sort; +use OnlyFansAPI\Posts\PostListResponse; +use OnlyFansAPI\Posts\PostNewResponse; +use OnlyFansAPI\Posts\PostPinResponse; +use OnlyFansAPI\Posts\PostStatsResponse; +use OnlyFansAPI\Posts\PostUnarchiveResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PostsContract { @@ -28,6 +29,7 @@ interface PostsContract * * @param string $account The Account ID * @param string $text The post text content + * @param BlockBannedWords|value-of $blockBannedWords Screen `text` for OnlyFans banned words and block the post if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param int $expireDays Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. * @param int $fundRaisingTargetAmount Add a fundraising target to your post. If present, value must be at least 10. * @param list $fundRaisingTipsPresets Specify which tip amounts will be listed under the fundraising card. Required with `fundRaisingTargetAmount`, and you must provide at least 1 option. Array items cannot be higher than the `fundRaisingTargetAmount`. @@ -48,6 +50,7 @@ interface PostsContract public function create( string $account, string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?int $expireDays = null, ?int $fundRaisingTargetAmount = null, ?array $fundRaisingTipsPresets = null, @@ -85,6 +88,7 @@ public function retrieve( * @param int $postID Path param: The ID of the post * @param string $account Path param: The Account ID * @param string $text Body param: The post text content + * @param \OnlyFansAPI\Posts\PostUpdateParams\BlockBannedWords|value-of<\OnlyFansAPI\Posts\PostUpdateParams\BlockBannedWords> $blockBannedWords Body param: Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param int $expireDays Body param: Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. * @param int $fundRaisingTargetAmount Body param: Add a fundraising target to your post. If present, value must be at least 10. * @param list $fundRaisingTipsPresets Body param: Specify which tip amounts will be listed under the fundraising card. Required with `fundRaisingTargetAmount`, and you must provide at least 1 option. Array items cannot be higher than the `fundRaisingTargetAmount`. @@ -97,7 +101,7 @@ public function retrieve( * @param int $votingCorrectIndex Body param: The array key of your quiz' correct answer. Required when `votingType` is "quiz". Keep in mind that arrays start at `0` * @param int $votingDue Body param: The due date (in days) of your poll/quiz. Can be 1, 3, 7 or 30 days. Can only be filled with `votingType`. * @param list $votingOptions Body param: The options of your poll/quiz. Required with `votingType`. - * @param \Onlyfansapi\Posts\PostUpdateParams\VotingType|value-of<\Onlyfansapi\Posts\PostUpdateParams\VotingType> $votingType body param: Include a poll or quiz within your post + * @param \OnlyFansAPI\Posts\PostUpdateParams\VotingType|value-of<\OnlyFansAPI\Posts\PostUpdateParams\VotingType> $votingType body param: Include a poll or quiz within your post * @param RequestOpts|null $requestOptions * * @throws APIException @@ -106,6 +110,7 @@ public function update( int $postID, string $account, string $text, + \OnlyFansAPI\Posts\PostUpdateParams\BlockBannedWords|string|null $blockBannedWords = null, ?int $expireDays = null, ?int $fundRaisingTargetAmount = null, ?array $fundRaisingTipsPresets = null, @@ -118,7 +123,7 @@ public function update( ?int $votingCorrectIndex = null, ?int $votingDue = null, ?array $votingOptions = null, - \Onlyfansapi\Posts\PostUpdateParams\VotingType|string|null $votingType = null, + \OnlyFansAPI\Posts\PostUpdateParams\VotingType|string|null $votingType = null, RequestOptions|array|null $requestOptions = null, ): string; diff --git a/src/ServiceContracts/PostsRawContract.php b/src/ServiceContracts/PostsRawContract.php index 8ff848dd..fa14f088 100644 --- a/src/ServiceContracts/PostsRawContract.php +++ b/src/ServiceContracts/PostsRawContract.php @@ -2,31 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Posts\PostArchiveParams; -use Onlyfansapi\Posts\PostArchiveResponse; -use Onlyfansapi\Posts\PostCreateParams; -use Onlyfansapi\Posts\PostDeleteParams; -use Onlyfansapi\Posts\PostDeleteResponse; -use Onlyfansapi\Posts\PostGetResponse; -use Onlyfansapi\Posts\PostListParams; -use Onlyfansapi\Posts\PostListResponse; -use Onlyfansapi\Posts\PostNewResponse; -use Onlyfansapi\Posts\PostPinParams; -use Onlyfansapi\Posts\PostPinResponse; -use Onlyfansapi\Posts\PostRetrieveParams; -use Onlyfansapi\Posts\PostStatsParams; -use Onlyfansapi\Posts\PostStatsResponse; -use Onlyfansapi\Posts\PostUnarchiveParams; -use Onlyfansapi\Posts\PostUnarchiveResponse; -use Onlyfansapi\Posts\PostUpdateParams; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Posts\PostArchiveParams; +use OnlyFansAPI\Posts\PostArchiveResponse; +use OnlyFansAPI\Posts\PostCreateParams; +use OnlyFansAPI\Posts\PostDeleteParams; +use OnlyFansAPI\Posts\PostDeleteResponse; +use OnlyFansAPI\Posts\PostGetResponse; +use OnlyFansAPI\Posts\PostListParams; +use OnlyFansAPI\Posts\PostListResponse; +use OnlyFansAPI\Posts\PostNewResponse; +use OnlyFansAPI\Posts\PostPinParams; +use OnlyFansAPI\Posts\PostPinResponse; +use OnlyFansAPI\Posts\PostRetrieveParams; +use OnlyFansAPI\Posts\PostStatsParams; +use OnlyFansAPI\Posts\PostStatsResponse; +use OnlyFansAPI\Posts\PostUnarchiveParams; +use OnlyFansAPI\Posts\PostUnarchiveResponse; +use OnlyFansAPI\Posts\PostUpdateParams; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PostsRawContract { diff --git a/src/ServiceContracts/ProfilesContract.php b/src/ServiceContracts/ProfilesContract.php index a024cca1..587030f9 100644 --- a/src/ServiceContracts/ProfilesContract.php +++ b/src/ServiceContracts/ProfilesContract.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Profiles\ProfileGetResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Profiles\ProfileGetResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ProfilesContract { diff --git a/src/ServiceContracts/ProfilesRawContract.php b/src/ServiceContracts/ProfilesRawContract.php index 8f280f2b..bba2ac9f 100644 --- a/src/ServiceContracts/ProfilesRawContract.php +++ b/src/ServiceContracts/ProfilesRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Profiles\ProfileGetResponse; -use Onlyfansapi\Profiles\ProfileRetrieveParams; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Profiles\ProfileGetResponse; +use OnlyFansAPI\Profiles\ProfileRetrieveParams; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ProfilesRawContract { diff --git a/src/ServiceContracts/PromotionsContract.php b/src/ServiceContracts/PromotionsContract.php index acbfa848..9c7db96e 100644 --- a/src/ServiceContracts/PromotionsContract.php +++ b/src/ServiceContracts/PromotionsContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Promotions\PromotionCreateParams\Type; -use Onlyfansapi\Promotions\PromotionDeleteResponse; -use Onlyfansapi\Promotions\PromotionListResponse; -use Onlyfansapi\Promotions\PromotionNewResponse; -use Onlyfansapi\Promotions\PromotionStopResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Promotions\PromotionCreateParams\Type; +use OnlyFansAPI\Promotions\PromotionDeleteResponse; +use OnlyFansAPI\Promotions\PromotionListResponse; +use OnlyFansAPI\Promotions\PromotionNewResponse; +use OnlyFansAPI\Promotions\PromotionStopResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PromotionsContract { diff --git a/src/ServiceContracts/PromotionsRawContract.php b/src/ServiceContracts/PromotionsRawContract.php index 0fca260e..7bcc5b99 100644 --- a/src/ServiceContracts/PromotionsRawContract.php +++ b/src/ServiceContracts/PromotionsRawContract.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Promotions\PromotionCreateParams; -use Onlyfansapi\Promotions\PromotionDeleteParams; -use Onlyfansapi\Promotions\PromotionDeleteResponse; -use Onlyfansapi\Promotions\PromotionListParams; -use Onlyfansapi\Promotions\PromotionListResponse; -use Onlyfansapi\Promotions\PromotionNewResponse; -use Onlyfansapi\Promotions\PromotionStopParams; -use Onlyfansapi\Promotions\PromotionStopResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Promotions\PromotionCreateParams; +use OnlyFansAPI\Promotions\PromotionDeleteParams; +use OnlyFansAPI\Promotions\PromotionDeleteResponse; +use OnlyFansAPI\Promotions\PromotionListParams; +use OnlyFansAPI\Promotions\PromotionListResponse; +use OnlyFansAPI\Promotions\PromotionNewResponse; +use OnlyFansAPI\Promotions\PromotionStopParams; +use OnlyFansAPI\Promotions\PromotionStopResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PromotionsRawContract { diff --git a/src/ServiceContracts/QueueContract.php b/src/ServiceContracts/QueueContract.php index 95d7fe02..3728e0d3 100644 --- a/src/ServiceContracts/QueueContract.php +++ b/src/ServiceContracts/QueueContract.php @@ -2,16 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Queue\QueueCountResponse; -use Onlyfansapi\Queue\QueueListResponse; -use Onlyfansapi\Queue\QueuePublishResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Queue\QueueCountResponse; +use OnlyFansAPI\Queue\QueueListParams\Type; +use OnlyFansAPI\Queue\QueueListResponse; +use OnlyFansAPI\Queue\QueuePublishResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface QueueContract { @@ -19,20 +20,22 @@ interface QueueContract * @api * * @param string $account The Account ID - * @param int $limit Maximum number of queue items to return (default = 20) - * @param string $publishDateEnd Latest publish date to return - * @param string $publishDateStart Earliest publish date to return (must be at least today) - * @param string $timezone Time timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php) + * @param string $publishDateEnd Latest publish date to return. Must be a valid date. Must be a valid date. Must be a date after or equal to publishDateStart. + * @param string $publishDateStart Earliest publish date to return (must be at least today). Must be a valid date. Must be a valid date. Must be a date after or equal to today. + * @param string $timezone Timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php). Must be a valid time zone, such as Africa/Accra. + * @param int $limit Maximum number of queue items to return (default 20). Must be at least 1. Must not be greater than 100. + * @param list> $type * @param RequestOpts|null $requestOptions * * @throws APIException */ public function list( string $account, - int $limit, string $publishDateEnd, string $publishDateStart, string $timezone, + ?int $limit = null, + ?array $type = null, RequestOptions|array|null $requestOptions = null, ): QueueListResponse; diff --git a/src/ServiceContracts/QueueRawContract.php b/src/ServiceContracts/QueueRawContract.php index 70ba8b50..57511918 100644 --- a/src/ServiceContracts/QueueRawContract.php +++ b/src/ServiceContracts/QueueRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Queue\QueueCountParams; -use Onlyfansapi\Queue\QueueCountResponse; -use Onlyfansapi\Queue\QueueListParams; -use Onlyfansapi\Queue\QueueListResponse; -use Onlyfansapi\Queue\QueuePublishParams; -use Onlyfansapi\Queue\QueuePublishResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Queue\QueueCountParams; +use OnlyFansAPI\Queue\QueueCountResponse; +use OnlyFansAPI\Queue\QueueListParams; +use OnlyFansAPI\Queue\QueueListResponse; +use OnlyFansAPI\Queue\QueuePublishParams; +use OnlyFansAPI\Queue\QueuePublishResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface QueueRawContract { diff --git a/src/ServiceContracts/ReleaseFormsContract.php b/src/ServiceContracts/ReleaseFormsContract.php index f7b61388..9f32932c 100644 --- a/src/ServiceContracts/ReleaseFormsContract.php +++ b/src/ServiceContracts/ReleaseFormsContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ReleaseFormsContract { diff --git a/src/ServiceContracts/ReleaseFormsRawContract.php b/src/ServiceContracts/ReleaseFormsRawContract.php index 5a393624..83c763fb 100644 --- a/src/ServiceContracts/ReleaseFormsRawContract.php +++ b/src/ServiceContracts/ReleaseFormsRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\ReleaseForms\ReleaseFormCreateInvitationLinkParams; -use Onlyfansapi\ReleaseForms\ReleaseFormCreateReleaseFormParams; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\ReleaseForms\ReleaseFormCreateInvitationLinkParams; +use OnlyFansAPI\ReleaseForms\ReleaseFormCreateReleaseFormParams; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse; +use OnlyFansAPI\RequestOptions; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ReleaseFormsRawContract { diff --git a/src/ServiceContracts/SavedForLater/Messages/SettingsContract.php b/src/ServiceContracts/SavedForLater/Messages/SettingsContract.php index c5a4b533..19fe7d8d 100644 --- a/src/ServiceContracts/SavedForLater/Messages/SettingsContract.php +++ b/src/ServiceContracts/SavedForLater/Messages/SettingsContract.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater\Messages; +namespace OnlyFansAPI\ServiceContracts\SavedForLater\Messages; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SettingsContract { diff --git a/src/ServiceContracts/SavedForLater/Messages/SettingsRawContract.php b/src/ServiceContracts/SavedForLater/Messages/SettingsRawContract.php index 1194a240..0637bee5 100644 --- a/src/ServiceContracts/SavedForLater/Messages/SettingsRawContract.php +++ b/src/ServiceContracts/SavedForLater/Messages/SettingsRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater\Messages; +namespace OnlyFansAPI\ServiceContracts\SavedForLater\Messages; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SettingsRawContract { diff --git a/src/ServiceContracts/SavedForLater/MessagesContract.php b/src/ServiceContracts/SavedForLater/MessagesContract.php index 019ffbdd..b93ab473 100644 --- a/src/ServiceContracts/SavedForLater/MessagesContract.php +++ b/src/ServiceContracts/SavedForLater/MessagesContract.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater; +namespace OnlyFansAPI\ServiceContracts\SavedForLater; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MessagesContract { diff --git a/src/ServiceContracts/SavedForLater/MessagesRawContract.php b/src/ServiceContracts/SavedForLater/MessagesRawContract.php index 20fcfef1..3fc0caea 100644 --- a/src/ServiceContracts/SavedForLater/MessagesRawContract.php +++ b/src/ServiceContracts/SavedForLater/MessagesRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater; +namespace OnlyFansAPI\ServiceContracts\SavedForLater; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\MessageListParams; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\MessageListParams; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface MessagesRawContract { diff --git a/src/ServiceContracts/SavedForLater/Posts/SettingsContract.php b/src/ServiceContracts/SavedForLater/Posts/SettingsContract.php index 8afb22d6..0012c6e4 100644 --- a/src/ServiceContracts/SavedForLater/Posts/SettingsContract.php +++ b/src/ServiceContracts/SavedForLater/Posts/SettingsContract.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater\Posts; +namespace OnlyFansAPI\ServiceContracts\SavedForLater\Posts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SettingsContract { diff --git a/src/ServiceContracts/SavedForLater/Posts/SettingsRawContract.php b/src/ServiceContracts/SavedForLater/Posts/SettingsRawContract.php index 0ee0f803..c18cc0c5 100644 --- a/src/ServiceContracts/SavedForLater/Posts/SettingsRawContract.php +++ b/src/ServiceContracts/SavedForLater/Posts/SettingsRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater\Posts; +namespace OnlyFansAPI\ServiceContracts\SavedForLater\Posts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SettingsRawContract { diff --git a/src/ServiceContracts/SavedForLater/PostsContract.php b/src/ServiceContracts/SavedForLater/PostsContract.php index 0f4c730d..4af579ef 100644 --- a/src/ServiceContracts/SavedForLater/PostsContract.php +++ b/src/ServiceContracts/SavedForLater/PostsContract.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater; +namespace OnlyFansAPI\ServiceContracts\SavedForLater; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\PostListResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PostsContract { diff --git a/src/ServiceContracts/SavedForLater/PostsRawContract.php b/src/ServiceContracts/SavedForLater/PostsRawContract.php index 2cba7ef8..4ae69865 100644 --- a/src/ServiceContracts/SavedForLater/PostsRawContract.php +++ b/src/ServiceContracts/SavedForLater/PostsRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SavedForLater; +namespace OnlyFansAPI\ServiceContracts\SavedForLater; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\PostListParams; -use Onlyfansapi\SavedForLater\Posts\PostListResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\PostListParams; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface PostsRawContract { diff --git a/src/ServiceContracts/SavedForLaterContract.php b/src/ServiceContracts/SavedForLaterContract.php index cbad98f2..62cd2ed0 100644 --- a/src/ServiceContracts/SavedForLaterContract.php +++ b/src/ServiceContracts/SavedForLaterContract.php @@ -2,6 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; interface SavedForLaterContract {} diff --git a/src/ServiceContracts/SavedForLaterRawContract.php b/src/ServiceContracts/SavedForLaterRawContract.php index 212fc578..110a2e02 100644 --- a/src/ServiceContracts/SavedForLaterRawContract.php +++ b/src/ServiceContracts/SavedForLaterRawContract.php @@ -2,6 +2,6 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; interface SavedForLaterRawContract {} diff --git a/src/ServiceContracts/SearchContract.php b/src/ServiceContracts/SearchContract.php index edf0f4fc..5fad1007 100644 --- a/src/ServiceContracts/SearchContract.php +++ b/src/ServiceContracts/SearchContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Search\SearchProfilesParams\Filter; -use Onlyfansapi\Search\SearchProfilesParams\Sort; -use Onlyfansapi\Search\SearchProfilesParams\SortDirection; -use Onlyfansapi\Search\SearchProfilesResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Search\SearchProfilesParams\Filter; +use OnlyFansAPI\Search\SearchProfilesParams\Sort; +use OnlyFansAPI\Search\SearchProfilesParams\SortDirection; +use OnlyFansAPI\Search\SearchProfilesResponse; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Search\SearchProfilesParams\Filter - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Search\SearchProfilesParams\Filter + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SearchContract { diff --git a/src/ServiceContracts/SearchRawContract.php b/src/ServiceContracts/SearchRawContract.php index 53d8626e..2c1969c6 100644 --- a/src/ServiceContracts/SearchRawContract.php +++ b/src/ServiceContracts/SearchRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Search\SearchProfilesParams; -use Onlyfansapi\Search\SearchProfilesResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Search\SearchProfilesParams; +use OnlyFansAPI\Search\SearchProfilesResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SearchRawContract { diff --git a/src/ServiceContracts/Settings/BlockedCountriesContract.php b/src/ServiceContracts/Settings/BlockedCountriesContract.php index 983959f2..2419eff5 100644 --- a/src/ServiceContracts/Settings/BlockedCountriesContract.php +++ b/src/ServiceContracts/Settings/BlockedCountriesContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Settings; +namespace OnlyFansAPI\ServiceContracts\Settings; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BlockedCountriesContract { diff --git a/src/ServiceContracts/Settings/BlockedCountriesRawContract.php b/src/ServiceContracts/Settings/BlockedCountriesRawContract.php index 1cb27d4f..37c2ca04 100644 --- a/src/ServiceContracts/Settings/BlockedCountriesRawContract.php +++ b/src/ServiceContracts/Settings/BlockedCountriesRawContract.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Settings; +namespace OnlyFansAPI\ServiceContracts\Settings; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateParams; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateParams; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BlockedCountriesRawContract { diff --git a/src/ServiceContracts/Settings/SocialMediaButtonsContract.php b/src/ServiceContracts/Settings/SocialMediaButtonsContract.php index 85bc34d5..f7be4f32 100644 --- a/src/ServiceContracts/Settings/SocialMediaButtonsContract.php +++ b/src/ServiceContracts/Settings/SocialMediaButtonsContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Settings; +namespace OnlyFansAPI\ServiceContracts\Settings; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SocialMediaButtonsContract { diff --git a/src/ServiceContracts/Settings/SocialMediaButtonsRawContract.php b/src/ServiceContracts/Settings/SocialMediaButtonsRawContract.php index 3a73ba82..46b7c99d 100644 --- a/src/ServiceContracts/Settings/SocialMediaButtonsRawContract.php +++ b/src/ServiceContracts/Settings/SocialMediaButtonsRawContract.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Settings; +namespace OnlyFansAPI\ServiceContracts\Settings; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SocialMediaButtonsRawContract { diff --git a/src/ServiceContracts/Settings/WelcomeMessageContract.php b/src/ServiceContracts/Settings/WelcomeMessageContract.php index 0c8593da..1ed71390 100644 --- a/src/ServiceContracts/Settings/WelcomeMessageContract.php +++ b/src/ServiceContracts/Settings/WelcomeMessageContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Settings; +namespace OnlyFansAPI\ServiceContracts\Settings; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface WelcomeMessageContract { diff --git a/src/ServiceContracts/Settings/WelcomeMessageRawContract.php b/src/ServiceContracts/Settings/WelcomeMessageRawContract.php index d2291c6d..fdda5407 100644 --- a/src/ServiceContracts/Settings/WelcomeMessageRawContract.php +++ b/src/ServiceContracts/Settings/WelcomeMessageRawContract.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Settings; +namespace OnlyFansAPI\ServiceContracts\Settings; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleParams; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateParams; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleParams; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateParams; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface WelcomeMessageRawContract { diff --git a/src/ServiceContracts/SettingsContract.php b/src/ServiceContracts/SettingsContract.php index 438373e0..beac3c30 100644 --- a/src/ServiceContracts/SettingsContract.php +++ b/src/ServiceContracts/SettingsContract.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse; -use Onlyfansapi\Settings\SettingGetResponse; -use Onlyfansapi\Settings\SettingUpdateProfileResponse; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse; +use OnlyFansAPI\Settings\SettingGetResponse; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SettingsContract { diff --git a/src/ServiceContracts/SettingsRawContract.php b/src/ServiceContracts/SettingsRawContract.php index 5101a93e..b614c701 100644 --- a/src/ServiceContracts/SettingsRawContract.php +++ b/src/ServiceContracts/SettingsRawContract.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityParams; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse; -use Onlyfansapi\Settings\SettingGetResponse; -use Onlyfansapi\Settings\SettingUpdateProfileParams; -use Onlyfansapi\Settings\SettingUpdateProfileResponse; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceParams; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityParams; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse; +use OnlyFansAPI\Settings\SettingGetResponse; +use OnlyFansAPI\Settings\SettingUpdateProfileParams; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceParams; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SettingsRawContract { diff --git a/src/ServiceContracts/SharedTrackingLinks/TagsContract.php b/src/ServiceContracts/SharedTrackingLinks/TagsContract.php index ae32782a..1151208d 100644 --- a/src/ServiceContracts/SharedTrackingLinks/TagsContract.php +++ b/src/ServiceContracts/SharedTrackingLinks/TagsContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SharedTrackingLinks; +namespace OnlyFansAPI\ServiceContracts\SharedTrackingLinks; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsContract { diff --git a/src/ServiceContracts/SharedTrackingLinks/TagsRawContract.php b/src/ServiceContracts/SharedTrackingLinks/TagsRawContract.php index dd6476f5..66beb80a 100644 --- a/src/ServiceContracts/SharedTrackingLinks/TagsRawContract.php +++ b/src/ServiceContracts/SharedTrackingLinks/TagsRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SharedTrackingLinks; +namespace OnlyFansAPI\ServiceContracts\SharedTrackingLinks; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddParams; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListParams; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveParams; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddParams; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListParams; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveParams; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsRawContract { diff --git a/src/ServiceContracts/SharedTrackingLinksContract.php b/src/ServiceContracts/SharedTrackingLinksContract.php index 71a05021..0409d0a3 100644 --- a/src/ServiceContracts/SharedTrackingLinksContract.php +++ b/src/ServiceContracts/SharedTrackingLinksContract.php @@ -2,15 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\Pagination; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\SortingDeleted; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\WithDeleted; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SharedTrackingLinksContract { @@ -18,9 +21,13 @@ interface SharedTrackingLinksContract * @api * * @param string $account The Account ID - * @param int $limit The number of shared tracking links to return. Default `10` - * @param int $offset The offset used for pagination. Default `0` - * @param bool|null $synchronous Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false` + * @param int $limit The number of shared tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Pagination|value-of $pagination Whether pagination metadata is enabled. Default `1`. + * @param SortingDeleted|value-of $sortingDeleted Whether deleted links participate in sorting. Default `1`. + * @param string $stats Whether statistics are included. Default `true`. Must not be greater than 10 characters. + * @param bool $synchronous wait for the database sync instead of processing it in the background + * @param WithDeleted|value-of $withDeleted Whether to include deleted shared tracking links. Default `1`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -29,7 +36,11 @@ public function list( string $account, ?int $limit = null, ?int $offset = null, + Pagination|int|null $pagination = null, + SortingDeleted|int|null $sortingDeleted = null, + ?string $stats = null, ?bool $synchronous = null, + WithDeleted|int|null $withDeleted = null, RequestOptions|array|null $requestOptions = null, ): SharedTrackingLinkListResponse; diff --git a/src/ServiceContracts/SharedTrackingLinksRawContract.php b/src/ServiceContracts/SharedTrackingLinksRawContract.php index ea2ce080..cfc80e25 100644 --- a/src/ServiceContracts/SharedTrackingLinksRawContract.php +++ b/src/ServiceContracts/SharedTrackingLinksRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListParams; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessParams; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessParams; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SharedTrackingLinksRawContract { diff --git a/src/ServiceContracts/SharedTrialLinks/TagsContract.php b/src/ServiceContracts/SharedTrialLinks/TagsContract.php index cae4ac42..52c1bbbb 100644 --- a/src/ServiceContracts/SharedTrialLinks/TagsContract.php +++ b/src/ServiceContracts/SharedTrialLinks/TagsContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SharedTrialLinks; +namespace OnlyFansAPI\ServiceContracts\SharedTrialLinks; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsContract { diff --git a/src/ServiceContracts/SharedTrialLinks/TagsRawContract.php b/src/ServiceContracts/SharedTrialLinks/TagsRawContract.php index 6a9b4905..3b520568 100644 --- a/src/ServiceContracts/SharedTrialLinks/TagsRawContract.php +++ b/src/ServiceContracts/SharedTrialLinks/TagsRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\SharedTrialLinks; +namespace OnlyFansAPI\ServiceContracts\SharedTrialLinks; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddParams; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagListParams; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveParams; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddParams; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListParams; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveParams; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsRawContract { diff --git a/src/ServiceContracts/SharedTrialLinksContract.php b/src/ServiceContracts/SharedTrialLinksContract.php index 25bde534..a9ea1a48 100644 --- a/src/ServiceContracts/SharedTrialLinksContract.php +++ b/src/ServiceContracts/SharedTrialLinksContract.php @@ -2,15 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListParams\Pagination; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SharedTrialLinksContract { @@ -18,9 +19,10 @@ interface SharedTrialLinksContract * @api * * @param string $account The Account ID - * @param int $limit The number of shared trial links to return. Default `10` - * @param int $offset The offset used for pagination. Default `0` - * @param bool|null $synchronous Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false` + * @param int $limit The number of shared trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Pagination|value-of $pagination + * @param bool $synchronous wait for the database sync instead of processing it in the background * @param RequestOpts|null $requestOptions * * @throws APIException @@ -29,6 +31,7 @@ public function list( string $account, ?int $limit = null, ?int $offset = null, + Pagination|int|null $pagination = null, ?bool $synchronous = null, RequestOptions|array|null $requestOptions = null, ): SharedTrialLinkListResponse; diff --git a/src/ServiceContracts/SharedTrialLinksRawContract.php b/src/ServiceContracts/SharedTrialLinksRawContract.php index 3590c064..af341c40 100644 --- a/src/ServiceContracts/SharedTrialLinksRawContract.php +++ b/src/ServiceContracts/SharedTrialLinksRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListParams; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessParams; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListParams; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessParams; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SharedTrialLinksRawContract { diff --git a/src/ServiceContracts/SmartLinkPostbacksContract.php b/src/ServiceContracts/SmartLinkPostbacksContract.php index 549d2926..c281aee9 100644 --- a/src/ServiceContracts/SmartLinkPostbacksContract.php +++ b/src/ServiceContracts/SmartLinkPostbacksContract.php @@ -2,18 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\HTTPMethod; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\Header as HeaderShape1 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SmartLinkPostbacksContract { @@ -22,7 +26,10 @@ interface SmartLinkPostbacksContract * * @param list $conversionTypes one or more Smart Link conversion types that should trigger this postback * @param SmartLinkScope|value-of $smartLinkScope `global` fires for all Smart Links. `campaign_specific` fires only for selected Smart Links. - * @param string $url The destination URL. Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + * @param string $url The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + * @param string $body Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + * @param list $headers Optional request headers. Header values may include postback variables. + * @param HTTPMethod|value-of $httpMethod HTTP method used for the postback request. Defaults to `GET` when omitted. * @param list $smartLinkIDs Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * @param RequestOpts|null $requestOptions * @@ -32,6 +39,9 @@ public function create( array $conversionTypes, SmartLinkScope|string $smartLinkScope, string $url, + ?string $body = null, + ?array $headers = null, + HTTPMethod|string|null $httpMethod = null, ?array $smartLinkIDs = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkPostbackNewResponse; @@ -54,8 +64,11 @@ public function retrieve( * * @param int $postbackID The postback ID * @param list $conversionTypes one or more Smart Link conversion types that should trigger this postback - * @param \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|value-of<\Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope> $smartLinkScope `global` or `campaign_specific` + * @param \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|value-of<\OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope> $smartLinkScope `global` or `campaign_specific` * @param string $url the destination URL + * @param string $body Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + * @param list<\OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\Header|HeaderShape1> $headers Optional request headers. Header values may include postback variables. + * @param \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\HTTPMethod|value-of<\OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\HTTPMethod> $httpMethod HTTP method used for the postback request. Existing value is kept when omitted. * @param list $smartLinkIDs Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * @param RequestOpts|null $requestOptions * @@ -64,8 +77,11 @@ public function retrieve( public function update( int $postbackID, array $conversionTypes, - \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|string $smartLinkScope, + \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|string $smartLinkScope, string $url, + ?string $body = null, + ?array $headers = null, + \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\HTTPMethod|string|null $httpMethod = null, ?array $smartLinkIDs = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkPostbackUpdateResponse; diff --git a/src/ServiceContracts/SmartLinkPostbacksRawContract.php b/src/ServiceContracts/SmartLinkPostbacksRawContract.php index 28608f81..43ba70c6 100644 --- a/src/ServiceContracts/SmartLinkPostbacksRawContract.php +++ b/src/ServiceContracts/SmartLinkPostbacksRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackCreateParams; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SmartLinkPostbacksRawContract { diff --git a/src/ServiceContracts/SmartLinksContract.php b/src/ServiceContracts/SmartLinksContract.php index 0e7ff7c4..6cd7d225 100644 --- a/src/ServiceContracts/SmartLinksContract.php +++ b/src/ServiceContracts/SmartLinksContract.php @@ -2,26 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SmartLinks\SmartLinkCreateParams\LinkType; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsParams\ConversionType; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListFansParams\Sort; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse; -use Onlyfansapi\SmartLinks\SmartLinkListResponse; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SmartLinks\SmartLinkCreateParams\LinkType; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsParams\ConversionType; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListFansParams\Sort; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SmartLinksContract { @@ -61,20 +63,22 @@ public function retrieve( * @api * * @param string|null $accountIDs comma-separated account prefixed IDs to include + * @param Filter|FilterShape $filter * @param int $limit The number of Smart Links to return. Default `50`. Must be at least 1. Must not be greater than 1000. - * @param string|null $metaPixelIDs comma-separated Meta Pixel IDs to include * @param string|null $name Filter Smart Links by name. Must not be greater than 255 characters. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param string|null $pixelIDs comma-separated ad platform Pixel IDs to include * @param RequestOpts|null $requestOptions * * @throws APIException */ public function list( ?string $accountIDs = null, + Filter|array|null $filter = null, ?int $limit = null, - ?string $metaPixelIDs = null, ?string $name = null, ?int $offset = null, + ?string $pixelIDs = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkListResponse; @@ -155,7 +159,9 @@ public function listConversions( * @param float $minRevenueNet Optional minimum net revenue * @param float $minTipsNet Optional minimum net tips * @param int $offset Offset for pagination. Default `0` + * @param bool $previouslySubscribed Optional - Filter to returning subscribers (fans previously subscribed before this subscription) * @param Sort|value-of $sort Optional sort field. Default `-revenue_net` + * @param bool $subscribedUsingPromo Optional - Filter to fans who subscribed via a promotion/offer * @param RequestOpts|null $requestOptions * * @throws APIException @@ -168,7 +174,9 @@ public function listFans( ?float $minRevenueNet = null, ?float $minTipsNet = null, ?int $offset = null, + ?bool $previouslySubscribed = null, Sort|string|null $sort = null, + ?bool $subscribedUsingPromo = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkListFansResponse; diff --git a/src/ServiceContracts/SmartLinksRawContract.php b/src/ServiceContracts/SmartLinksRawContract.php index 86dd3588..9a8ebe53 100644 --- a/src/ServiceContracts/SmartLinksRawContract.php +++ b/src/ServiceContracts/SmartLinksRawContract.php @@ -2,31 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SmartLinks\SmartLinkCreateParams; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListClicksParams; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsParams; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListFansParams; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse; -use Onlyfansapi\SmartLinks\SmartLinkListParams; -use Onlyfansapi\SmartLinks\SmartLinkListResponse; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersParams; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveCohortArpsParams; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveStatsParams; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SmartLinks\SmartLinkCreateParams; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksParams; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsParams; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListFansParams; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListParams; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersParams; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveCohortArpsParams; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveStatsParams; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SmartLinksRawContract { diff --git a/src/ServiceContracts/Statistics/ReachContract.php b/src/ServiceContracts/Statistics/ReachContract.php index 8dea18ee..501a8840 100644 --- a/src/ServiceContracts/Statistics/ReachContract.php +++ b/src/ServiceContracts/Statistics/ReachContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Statistics; +namespace OnlyFansAPI\ServiceContracts\Statistics; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Type; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Type; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ReachContract { @@ -22,7 +22,7 @@ interface ReachContract * * @param string $account The Account ID * @param string $endDate the end date for the period - * @param string $startDate The start date for the period + * @param string $startDate the start date for the period * @param Filter|value-of|null $filter Optionally, filter the results by `chart` or `topCountries`. See example responses. * @param int|null $limit Number of results to return * @param Type|value-of|null $type Filter all / users / guests diff --git a/src/ServiceContracts/Statistics/ReachRawContract.php b/src/ServiceContracts/Statistics/ReachRawContract.php index 176e0664..94063cc0 100644 --- a/src/ServiceContracts/Statistics/ReachRawContract.php +++ b/src/ServiceContracts/Statistics/ReachRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Statistics; +namespace OnlyFansAPI\ServiceContracts\Statistics; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface ReachRawContract { diff --git a/src/ServiceContracts/Statistics/StatementsContract.php b/src/ServiceContracts/Statistics/StatementsContract.php index 7df0eab5..0e4ef3de 100644 --- a/src/ServiceContracts/Statistics/StatementsContract.php +++ b/src/ServiceContracts/Statistics/StatementsContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Statistics; +namespace OnlyFansAPI\ServiceContracts\Statistics; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsParams\Type; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsParams\Type; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StatementsContract { @@ -18,8 +18,8 @@ interface StatementsContract * @api * * @param string $account The Account ID - * @param string $startDate The start date for the period * @param string $endDate the end date for the period + * @param string $startDate the start date for the period * @param Type|value-of $type Filter by All / Subscriptions / Tips / Posts / Messages / Streams * @param RequestOpts|null $requestOptions * @@ -27,8 +27,8 @@ interface StatementsContract */ public function getEarnings( string $account, + string $endDate, string $startDate, - ?string $endDate = null, Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): StatementGetEarningsResponse; diff --git a/src/ServiceContracts/Statistics/StatementsRawContract.php b/src/ServiceContracts/Statistics/StatementsRawContract.php index 5cf02b85..70eda6e0 100644 --- a/src/ServiceContracts/Statistics/StatementsRawContract.php +++ b/src/ServiceContracts/Statistics/StatementsRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Statistics; +namespace OnlyFansAPI\ServiceContracts\Statistics; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsParams; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsParams; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StatementsRawContract { diff --git a/src/ServiceContracts/StatisticsContract.php b/src/ServiceContracts/StatisticsContract.php index 7d084c1e..3ae38c59 100644 --- a/src/ServiceContracts/StatisticsContract.php +++ b/src/ServiceContracts/StatisticsContract.php @@ -2,17 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Statistics\StatisticCalculateTotalTransactionsResponse; -use Onlyfansapi\Statistics\StatisticGetOverviewParams\Type; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse; -use Onlyfansapi\Statistics\StatisticGetSubscriberMetricsResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Statistics\StatisticCalculateTotalTransactionsResponse; +use OnlyFansAPI\Statistics\StatisticGetOverviewParams\Type; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsParams\DetailedType; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StatisticsContract { @@ -28,8 +29,8 @@ interface StatisticsContract */ public function calculateTotalTransactions( string $account, - string $endDate, - string $startDate, + ?string $endDate = null, + ?string $startDate = null, RequestOptions|array|null $requestOptions = null, ): StatisticCalculateTotalTransactionsResponse; @@ -59,6 +60,7 @@ public function getOverview( * @param string $endDate the end date for the metrics * @param string $startDate the start date for the metrics * @param bool|null $detailed Include paid and free fan metrics. Will slow down the response time, and might time out if timeframe is too large. Default = `false` + * @param DetailedType|value-of|null $detailedType Use only with `detailed=true` - otherwise, it has no effect. Filter the subscriber statistics (default = total) * @param RequestOpts|null $requestOptions * * @throws APIException @@ -68,6 +70,7 @@ public function getSubscriberMetrics( string $endDate, string $startDate, ?bool $detailed = null, + DetailedType|string|null $detailedType = null, RequestOptions|array|null $requestOptions = null, ): StatisticGetSubscriberMetricsResponse; } diff --git a/src/ServiceContracts/StatisticsRawContract.php b/src/ServiceContracts/StatisticsRawContract.php index c24d81a5..50cbf84c 100644 --- a/src/ServiceContracts/StatisticsRawContract.php +++ b/src/ServiceContracts/StatisticsRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Statistics\StatisticCalculateTotalTransactionsParams; -use Onlyfansapi\Statistics\StatisticCalculateTotalTransactionsResponse; -use Onlyfansapi\Statistics\StatisticGetOverviewParams; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse; -use Onlyfansapi\Statistics\StatisticGetSubscriberMetricsParams; -use Onlyfansapi\Statistics\StatisticGetSubscriberMetricsResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Statistics\StatisticCalculateTotalTransactionsParams; +use OnlyFansAPI\Statistics\StatisticCalculateTotalTransactionsResponse; +use OnlyFansAPI\Statistics\StatisticGetOverviewParams; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsParams; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StatisticsRawContract { diff --git a/src/ServiceContracts/StoredContract.php b/src/ServiceContracts/StoredContract.php index cbd21113..a01213d1 100644 --- a/src/ServiceContracts/StoredContract.php +++ b/src/ServiceContracts/StoredContract.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksParams\Filter; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListTrialLinksResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams\Filter; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListSharedTrackingLinksParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter as FilterShape2 - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter as FilterShape3 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter as FilterShape2 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter as FilterShape3 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StoredContract { @@ -44,7 +44,7 @@ public function listSharedTrackingLinks( * @api * * @param string $account The Account ID - * @param \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter|FilterShape1 $filter + * @param \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter|FilterShape1 $filter * @param int $limit The number of shared trial links to return. Default `10`. Must be at least 1. Must not be greater than 1000. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. * @param RequestOpts|null $requestOptions @@ -53,7 +53,7 @@ public function listSharedTrackingLinks( */ public function listSharedTrialLinks( string $account, - \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter|array|null $filter = null, + \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, RequestOptions|array|null $requestOptions = null, @@ -63,7 +63,7 @@ public function listSharedTrialLinks( * @api * * @param string $account The Account ID - * @param \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter|FilterShape2 $filter + * @param \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter|FilterShape2 $filter * @param int $limit The number of tracking links to return. Default `10`. Must be at least 1. Must not be greater than 1000. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. * @param RequestOpts|null $requestOptions @@ -72,7 +72,7 @@ public function listSharedTrialLinks( */ public function listTrackingLinks( string $account, - \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter|array|null $filter = null, + \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, RequestOptions|array|null $requestOptions = null, @@ -82,7 +82,7 @@ public function listTrackingLinks( * @api * * @param string $account The Account ID - * @param \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter|FilterShape3 $filter + * @param \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter|FilterShape3 $filter * @param int $limit The number of trial links to return. Default `10`. Must be at least 1. Must not be greater than 1000. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. * @param RequestOpts|null $requestOptions @@ -91,7 +91,7 @@ public function listTrackingLinks( */ public function listTrialLinks( string $account, - \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter|array|null $filter = null, + \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, RequestOptions|array|null $requestOptions = null, diff --git a/src/ServiceContracts/StoredRawContract.php b/src/ServiceContracts/StoredRawContract.php index 4251d04e..be650f36 100644 --- a/src/ServiceContracts/StoredRawContract.php +++ b/src/ServiceContracts/StoredRawContract.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksParams; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListSharedTrialLinksParams; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Stored\StoredListTrackingLinksParams; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListTrialLinksParams; -use Onlyfansapi\Stored\StoredListTrialLinksResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksParams; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; +use OnlyFansAPI\Stored\StoredListTrackingLinksParams; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListTrialLinksParams; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StoredRawContract { diff --git a/src/ServiceContracts/Stories/HighlightsContract.php b/src/ServiceContracts/Stories/HighlightsContract.php index b4716a56..d2ff3f3a 100644 --- a/src/ServiceContracts/Stories/HighlightsContract.php +++ b/src/ServiceContracts/Stories/HighlightsContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Stories; +namespace OnlyFansAPI\ServiceContracts\Stories; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse; -use Onlyfansapi\Stories\Highlights\HighlightListResponse; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface HighlightsContract { diff --git a/src/ServiceContracts/Stories/HighlightsRawContract.php b/src/ServiceContracts/Stories/HighlightsRawContract.php index 1b3fb93f..4194d3ed 100644 --- a/src/ServiceContracts/Stories/HighlightsRawContract.php +++ b/src/ServiceContracts/Stories/HighlightsRawContract.php @@ -2,28 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Stories; +namespace OnlyFansAPI\ServiceContracts\Stories; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryParams; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightCreateParams; -use Onlyfansapi\Stories\Highlights\HighlightDeleteParams; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse; -use Onlyfansapi\Stories\Highlights\HighlightListParams; -use Onlyfansapi\Stories\Highlights\HighlightListResponse; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryParams; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightRetrieveParams; -use Onlyfansapi\Stories\Highlights\HighlightUpdateParams; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryParams; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightCreateParams; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteParams; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse; +use OnlyFansAPI\Stories\Highlights\HighlightListParams; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryParams; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightRetrieveParams; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateParams; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface HighlightsRawContract { diff --git a/src/ServiceContracts/StoriesContract.php b/src/ServiceContracts/StoriesContract.php index def35ce9..a40c3cad 100644 --- a/src/ServiceContracts/StoriesContract.php +++ b/src/ServiceContracts/StoriesContract.php @@ -2,21 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Stories\StoryDeleteResponse; -use Onlyfansapi\Stories\StoryGetResponse; -use Onlyfansapi\Stories\StoryGetStatsResponse; -use Onlyfansapi\Stories\StoryListActiveResponse; -use Onlyfansapi\Stories\StoryListArchiveResponse; -use Onlyfansapi\Stories\StoryListViewersResponse; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse; -use Onlyfansapi\Stories\StoryNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Stories\StoryCreateParams\Question; +use OnlyFansAPI\Stories\StoryCreateParams\Text; +use OnlyFansAPI\Stories\StoryDeleteResponse; +use OnlyFansAPI\Stories\StoryGetResponse; +use OnlyFansAPI\Stories\StoryGetStatsResponse; +use OnlyFansAPI\Stories\StoryListActiveResponse; +use OnlyFansAPI\Stories\StoryListArchiveResponse; +use OnlyFansAPI\Stories\StoryListViewersResponse; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse; +use OnlyFansAPI\Stories\StoryNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type QuestionShape from \OnlyFansAPI\Stories\StoryCreateParams\Question + * @phpstan-import-type TextShape from \OnlyFansAPI\Stories\StoryCreateParams\Text + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StoriesContract { @@ -24,7 +28,11 @@ interface StoriesContract * @api * * @param string $account The Account ID - * @param list $mediaFiles array of media file upload prefixed_ids, or OF media IDs (required if price is not 0) + * @param list $mediaFiles array of media file upload prefixed_ids, or OF vault media IDs + * @param int $canvasHeight Canvas height overlay positions are relative to. Default `1920`. + * @param int $canvasWidth Canvas width overlay positions are relative to. Default `1080`. + * @param Question|QuestionShape $question interactive question sticker viewers can answer + * @param list $texts text and @mention overlays * @param RequestOpts|null $requestOptions * * @throws APIException @@ -32,6 +40,10 @@ interface StoriesContract public function create( string $account, array $mediaFiles, + ?int $canvasHeight = null, + ?int $canvasWidth = null, + Question|array|null $question = null, + ?array $texts = null, RequestOptions|array|null $requestOptions = null, ): StoryNewResponse; diff --git a/src/ServiceContracts/StoriesRawContract.php b/src/ServiceContracts/StoriesRawContract.php index 40149f15..f690085d 100644 --- a/src/ServiceContracts/StoriesRawContract.php +++ b/src/ServiceContracts/StoriesRawContract.php @@ -2,29 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Stories\StoryCreateParams; -use Onlyfansapi\Stories\StoryDeleteParams; -use Onlyfansapi\Stories\StoryDeleteResponse; -use Onlyfansapi\Stories\StoryGetResponse; -use Onlyfansapi\Stories\StoryGetStatsResponse; -use Onlyfansapi\Stories\StoryListActiveResponse; -use Onlyfansapi\Stories\StoryListArchiveParams; -use Onlyfansapi\Stories\StoryListArchiveResponse; -use Onlyfansapi\Stories\StoryListViewersParams; -use Onlyfansapi\Stories\StoryListViewersResponse; -use Onlyfansapi\Stories\StoryMarkAsWatchedParams; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse; -use Onlyfansapi\Stories\StoryNewResponse; -use Onlyfansapi\Stories\StoryRetrieveParams; -use Onlyfansapi\Stories\StoryRetrieveStatsParams; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Stories\StoryCreateParams; +use OnlyFansAPI\Stories\StoryDeleteParams; +use OnlyFansAPI\Stories\StoryDeleteResponse; +use OnlyFansAPI\Stories\StoryGetResponse; +use OnlyFansAPI\Stories\StoryGetStatsResponse; +use OnlyFansAPI\Stories\StoryListActiveResponse; +use OnlyFansAPI\Stories\StoryListArchiveParams; +use OnlyFansAPI\Stories\StoryListArchiveResponse; +use OnlyFansAPI\Stories\StoryListViewersParams; +use OnlyFansAPI\Stories\StoryListViewersResponse; +use OnlyFansAPI\Stories\StoryMarkAsWatchedParams; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse; +use OnlyFansAPI\Stories\StoryNewResponse; +use OnlyFansAPI\Stories\StoryRetrieveParams; +use OnlyFansAPI\Stories\StoryRetrieveStatsParams; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface StoriesRawContract { diff --git a/src/ServiceContracts/SubscribersContract.php b/src/ServiceContracts/SubscribersContract.php index 7146c4de..0c54125a 100644 --- a/src/ServiceContracts/SubscribersContract.php +++ b/src/ServiceContracts/SubscribersContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse; -use Onlyfansapi\Subscribers\SubscriberRetrieveStatisticsParams\Type; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse; +use OnlyFansAPI\Subscribers\SubscriberRetrieveStatisticsParams\Type; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SubscribersContract { diff --git a/src/ServiceContracts/SubscribersRawContract.php b/src/ServiceContracts/SubscribersRawContract.php index 37376dfa..ec960bd0 100644 --- a/src/ServiceContracts/SubscribersRawContract.php +++ b/src/ServiceContracts/SubscribersRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse; -use Onlyfansapi\Subscribers\SubscriberRetrieveStatisticsParams; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse; +use OnlyFansAPI\Subscribers\SubscriberRetrieveStatisticsParams; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SubscribersRawContract { diff --git a/src/ServiceContracts/TrackingLinks/TagsContract.php b/src/ServiceContracts/TrackingLinks/TagsContract.php index f2abdb82..ba6857ff 100644 --- a/src/ServiceContracts/TrackingLinks/TagsContract.php +++ b/src/ServiceContracts/TrackingLinks/TagsContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\TrackingLinks; +namespace OnlyFansAPI\ServiceContracts\TrackingLinks; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsContract { diff --git a/src/ServiceContracts/TrackingLinks/TagsRawContract.php b/src/ServiceContracts/TrackingLinks/TagsRawContract.php index 254f0771..6e855489 100644 --- a/src/ServiceContracts/TrackingLinks/TagsRawContract.php +++ b/src/ServiceContracts/TrackingLinks/TagsRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\TrackingLinks; +namespace OnlyFansAPI\ServiceContracts\TrackingLinks; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrackingLinks\Tags\TagAddParams; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\TrackingLinks\Tags\TagListParams; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveParams; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrackingLinks\Tags\TagAddParams; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagListParams; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveParams; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsRawContract { diff --git a/src/ServiceContracts/TrackingLinksContract.php b/src/ServiceContracts/TrackingLinksContract.php index 66d8d5a5..daa2e451 100644 --- a/src/ServiceContracts/TrackingLinksContract.php +++ b/src/ServiceContracts/TrackingLinksContract.php @@ -2,23 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sort; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sortby; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Pagination; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sort; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sortby; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\WithDeleted; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TrackingLinksContract { @@ -58,14 +60,15 @@ public function retrieve( * @api * * @param string $account The Account ID - * @param string|null $endDate The end date for Tracking Links. Keep empty to get all. - * @param int|null $limit The number of tracking links to return. Default `3` - * @param int|null $offset The offset used for pagination. Default `0` - * @param Sort|value-of|null $sort Sort the results. Default `desc` - * @param Sortby|value-of|null $sortby Sort by subscriber count (claims), or creation date - * @param string|null $startDate The start date for Tracking Links. Keep empty to get all. - * @param bool|null $synchronous Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false` - * @param bool|null $withDeleted Whether or not to include deleted tracking links in the response. Default `false` + * @param string|null $endDate The end date for tracking links. Keep empty to get all. Must not be greater than 255 characters. + * @param int $limit The number of tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Pagination|value-of $pagination + * @param Sort|value-of $sort Sort direction. Default `desc`. + * @param Sortby|value-of $sortby sort by subscriber count (`claims`) or creation date (`created_date`) + * @param string|null $startDate The start date for tracking links. Keep empty to get all. Must not be greater than 255 characters. + * @param bool $synchronous wait for revenue calculation instead of processing it in the background + * @param WithDeleted|value-of $withDeleted Whether to include deleted tracking links. Default `true`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -75,11 +78,12 @@ public function list( ?string $endDate = null, ?int $limit = null, ?int $offset = null, + Pagination|int|null $pagination = null, Sort|string|null $sort = null, Sortby|string|null $sortby = null, ?string $startDate = null, ?bool $synchronous = null, - ?bool $withDeleted = null, + WithDeleted|int|null $withDeleted = null, RequestOptions|array|null $requestOptions = null, ): TrackingLinkListResponse; diff --git a/src/ServiceContracts/TrackingLinksRawContract.php b/src/ServiceContracts/TrackingLinksRawContract.php index 2cad20cc..9d789788 100644 --- a/src/ServiceContracts/TrackingLinksRawContract.php +++ b/src/ServiceContracts/TrackingLinksRawContract.php @@ -2,29 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrackingLinks\TrackingLinkCreateParams; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteParams; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetCohortArpsParams; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsParams; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersParams; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersParams; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkRetrieveParams; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrackingLinks\TrackingLinkCreateParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetCohortArpsParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkRetrieveParams; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TrackingLinksRawContract { diff --git a/src/ServiceContracts/TransactionsContract.php b/src/ServiceContracts/TransactionsContract.php index 93bd1c31..066f3f54 100644 --- a/src/ServiceContracts/TransactionsContract.php +++ b/src/ServiceContracts/TransactionsContract.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Transactions\TransactionListResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Transactions\TransactionListResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TransactionsContract { @@ -19,7 +19,7 @@ interface TransactionsContract * @param string $account The Account ID * @param string $limit The number of transactions to return. Recommended: `10` * @param string $marker The marker used for pagination. Default: `null` - * @param string $startDate The start date for transactions list. Default: `-30days` + * @param string $startDate The start date for the transactions list. Defaults to 30 days ago. * @param string $tipsSource Filter tips by source. Only applies when `type=tips`. Options: `profile`, `post_all`, `chat`, `stream`, `story` * @param string $type Filter by transaction type. Options: `subscribes`, `tips`, `post`, `chat_messages`, `stream` * @param RequestOpts|null $requestOptions diff --git a/src/ServiceContracts/TransactionsRawContract.php b/src/ServiceContracts/TransactionsRawContract.php index 256c3691..19148a62 100644 --- a/src/ServiceContracts/TransactionsRawContract.php +++ b/src/ServiceContracts/TransactionsRawContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Transactions\TransactionListParams; -use Onlyfansapi\Transactions\TransactionListResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Transactions\TransactionListParams; +use OnlyFansAPI\Transactions\TransactionListResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TransactionsRawContract { diff --git a/src/ServiceContracts/TrialLinks/TagsContract.php b/src/ServiceContracts/TrialLinks/TagsContract.php index b6365419..b957eb2f 100644 --- a/src/ServiceContracts/TrialLinks/TagsContract.php +++ b/src/ServiceContracts/TrialLinks/TagsContract.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\TrialLinks; +namespace OnlyFansAPI\ServiceContracts\TrialLinks; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse; -use Onlyfansapi\TrialLinks\Tags\TagListResponse; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsContract { diff --git a/src/ServiceContracts/TrialLinks/TagsRawContract.php b/src/ServiceContracts/TrialLinks/TagsRawContract.php index 87b98f64..509a7b0d 100644 --- a/src/ServiceContracts/TrialLinks/TagsRawContract.php +++ b/src/ServiceContracts/TrialLinks/TagsRawContract.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\TrialLinks; +namespace OnlyFansAPI\ServiceContracts\TrialLinks; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrialLinks\Tags\TagAddParams; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse; -use Onlyfansapi\TrialLinks\Tags\TagListParams; -use Onlyfansapi\TrialLinks\Tags\TagListResponse; -use Onlyfansapi\TrialLinks\Tags\TagRemoveParams; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrialLinks\Tags\TagAddParams; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrialLinks\Tags\TagListParams; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveParams; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TagsRawContract { diff --git a/src/ServiceContracts/TrialLinksContract.php b/src/ServiceContracts/TrialLinksContract.php index 5b0f4e36..03bad853 100644 --- a/src/ServiceContracts/TrialLinksContract.php +++ b/src/ServiceContracts/TrialLinksContract.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\Duration; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\OfferLimit; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Field; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Sort; -use Onlyfansapi\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\Duration; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\OfferLimit; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Field; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Sort; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TrialLinksContract { @@ -66,21 +66,25 @@ public function retrieve( * @api * * @param string $account The Account ID - * @param int $limit The number of trial links to return. Default `10` - * @param int $offset The offset used for pagination. Default `0` - * @param Field|value-of|null $field Sort the results by a field. Default `create_date` - * @param Sort|value-of|null $sort Sort the results. Default `desc` - * @param bool|null $synchronous Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false` + * @param string|null $endDate The end date for trial links. Keep empty to get all. Must not be greater than 255 characters. + * @param Field|value-of $field Field to sort by. Default `create_date`. + * @param int $limit The number of trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Sort|value-of $sort Sort direction. Default `desc`. + * @param string|null $startDate The start date for trial links. Keep empty to get all. Must not be greater than 255 characters. + * @param bool $synchronous wait for revenue calculation instead of processing it in the background * @param RequestOpts|null $requestOptions * * @throws APIException */ public function list( string $account, - int $limit, - int $offset, + ?string $endDate = null, Field|string|null $field = null, + ?int $limit = null, + ?int $offset = null, Sort|string|null $sort = null, + ?string $startDate = null, ?bool $synchronous = null, RequestOptions|array|null $requestOptions = null, ): TrialLinkListResponse; diff --git a/src/ServiceContracts/TrialLinksRawContract.php b/src/ServiceContracts/TrialLinksRawContract.php index 8c3d6d62..a4a51836 100644 --- a/src/ServiceContracts/TrialLinksRawContract.php +++ b/src/ServiceContracts/TrialLinksRawContract.php @@ -2,29 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams; -use Onlyfansapi\TrialLinks\TrialLinkDeleteParams; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse; -use Onlyfansapi\TrialLinks\TrialLinkListParams; -use Onlyfansapi\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersParams; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersParams; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveCohortArpsParams; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveParams; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveStatsParams; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteParams; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListParams; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersParams; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersParams; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveCohortArpsParams; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveParams; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveStatsParams; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface TrialLinksRawContract { diff --git a/src/ServiceContracts/UserLists/UsersContract.php b/src/ServiceContracts/UserLists/UsersContract.php index 081f805d..fba44e57 100644 --- a/src/ServiceContracts/UserLists/UsersContract.php +++ b/src/ServiceContracts/UserLists/UsersContract.php @@ -2,19 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\UserLists; +namespace OnlyFansAPI\ServiceContracts\UserLists; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\UserLists\Users\UserAddResponse; -use Onlyfansapi\UserLists\Users\UserClearResponse; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse; -use Onlyfansapi\UserLists\Users\UserListResponse; -use Onlyfansapi\UserLists\Users\UserPinResponse; -use Onlyfansapi\UserLists\Users\UserRemoveResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1; +use OnlyFansAPI\UserLists\Users\UserClearResponse; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse; +use OnlyFansAPI\UserLists\Users\UserListResponse; +use OnlyFansAPI\UserLists\Users\UserPinResponse; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UsersContract { @@ -43,6 +44,7 @@ public function list( * @param string $userListID Path param: OnlyFans User List ID, or a default list name like `tagged` * @param string $account Path param: The Account ID * @param list $ids Body param: Array of OnlyFans User IDs to be added into the list + * @param bool $skipInvalid Body param: Set to `true` to skip the User IDs OnlyFans refuses instead of failing the whole batch. We drop the rejected IDs and retry the remainder for you (up to 5 OnlyFans attempts, each costing 1 credit), then respond `200` with `data.added` (the IDs that made it in) and `data.failed` (an object mapping each rejected User ID to the reason OnlyFans gave). Note this changes the shape of `data` — see the example responses. Failures that are not about individual users (e.g. an invalid or inaccessible list ID) still return the regular `400`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -51,8 +53,9 @@ public function add( string $userListID, string $account, array $ids, + ?bool $skipInvalid = null, RequestOptions|array|null $requestOptions = null, - ): UserAddResponse; + ): UnionMember0|UnionMember1; /** * @api diff --git a/src/ServiceContracts/UserLists/UsersRawContract.php b/src/ServiceContracts/UserLists/UsersRawContract.php index 6aa86bd4..2d6a5e52 100644 --- a/src/ServiceContracts/UserLists/UsersRawContract.php +++ b/src/ServiceContracts/UserLists/UsersRawContract.php @@ -2,26 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\UserLists; +namespace OnlyFansAPI\ServiceContracts\UserLists; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\UserLists\Users\UserAddParams; -use Onlyfansapi\UserLists\Users\UserAddResponse; -use Onlyfansapi\UserLists\Users\UserClearParams; -use Onlyfansapi\UserLists\Users\UserClearResponse; -use Onlyfansapi\UserLists\Users\UserListParams; -use Onlyfansapi\UserLists\Users\UserListPinnedParams; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse; -use Onlyfansapi\UserLists\Users\UserListResponse; -use Onlyfansapi\UserLists\Users\UserPinParams; -use Onlyfansapi\UserLists\Users\UserPinResponse; -use Onlyfansapi\UserLists\Users\UserRemoveParams; -use Onlyfansapi\UserLists\Users\UserRemoveResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\UserLists\Users\UserAddParams; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1; +use OnlyFansAPI\UserLists\Users\UserClearParams; +use OnlyFansAPI\UserLists\Users\UserClearResponse; +use OnlyFansAPI\UserLists\Users\UserListParams; +use OnlyFansAPI\UserLists\Users\UserListPinnedParams; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse; +use OnlyFansAPI\UserLists\Users\UserListResponse; +use OnlyFansAPI\UserLists\Users\UserPinParams; +use OnlyFansAPI\UserLists\Users\UserPinResponse; +use OnlyFansAPI\UserLists\Users\UserRemoveParams; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UsersRawContract { @@ -49,7 +50,7 @@ public function list( * @param array|UserAddParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse + * @return BaseResponse * * @throws APIException */ diff --git a/src/ServiceContracts/UserListsContract.php b/src/ServiceContracts/UserListsContract.php index 965fbf76..bb3ba9fc 100644 --- a/src/ServiceContracts/UserListsContract.php +++ b/src/ServiceContracts/UserListsContract.php @@ -2,18 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\UserLists\UserListDeleteResponse; -use Onlyfansapi\UserLists\UserListGetResponse; -use Onlyfansapi\UserLists\UserListListResponse; -use Onlyfansapi\UserLists\UserListNewResponse; -use Onlyfansapi\UserLists\UserListUpdateResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\UserLists\UserListDeleteResponse; +use OnlyFansAPI\UserLists\UserListGetResponse; +use OnlyFansAPI\UserLists\UserListListParams\View; +use OnlyFansAPI\UserLists\UserListListResponse; +use OnlyFansAPI\UserLists\UserListNewResponse; +use OnlyFansAPI\UserLists\UserListUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UserListsContract { @@ -72,6 +73,7 @@ public function update( * @param string $account The Account ID * @param int|null $limit How many results to return in the request. Max. 50 user lists. Must be at least 10. Must not be greater than 50. * @param int|null $offset must be at least 0 + * @param View|value-of $view How to return the results. `queue` returns the user lists that are available for Mass-Messaging. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -80,6 +82,7 @@ public function list( string $account, ?int $limit = null, ?int $offset = null, + View|string|null $view = null, RequestOptions|array|null $requestOptions = null, ): UserListListResponse; diff --git a/src/ServiceContracts/UserListsRawContract.php b/src/ServiceContracts/UserListsRawContract.php index 43b74ded..fe09012a 100644 --- a/src/ServiceContracts/UserListsRawContract.php +++ b/src/ServiceContracts/UserListsRawContract.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\UserLists\UserListCreateParams; -use Onlyfansapi\UserLists\UserListDeleteParams; -use Onlyfansapi\UserLists\UserListDeleteResponse; -use Onlyfansapi\UserLists\UserListGetResponse; -use Onlyfansapi\UserLists\UserListListParams; -use Onlyfansapi\UserLists\UserListListResponse; -use Onlyfansapi\UserLists\UserListNewResponse; -use Onlyfansapi\UserLists\UserListRetrieveParams; -use Onlyfansapi\UserLists\UserListUpdateParams; -use Onlyfansapi\UserLists\UserListUpdateResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\UserLists\UserListCreateParams; +use OnlyFansAPI\UserLists\UserListDeleteParams; +use OnlyFansAPI\UserLists\UserListDeleteResponse; +use OnlyFansAPI\UserLists\UserListGetResponse; +use OnlyFansAPI\UserLists\UserListListParams; +use OnlyFansAPI\UserLists\UserListListResponse; +use OnlyFansAPI\UserLists\UserListNewResponse; +use OnlyFansAPI\UserLists\UserListRetrieveParams; +use OnlyFansAPI\UserLists\UserListUpdateParams; +use OnlyFansAPI\UserLists\UserListUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UserListsRawContract { diff --git a/src/ServiceContracts/Users/BlockContract.php b/src/ServiceContracts/Users/BlockContract.php index 8eff1734..c4919b80 100644 --- a/src/ServiceContracts/Users/BlockContract.php +++ b/src/ServiceContracts/Users/BlockContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Users; +namespace OnlyFansAPI\ServiceContracts\Users; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\Block\BlockDeleteResponse; -use Onlyfansapi\Users\Block\BlockNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\Block\BlockDeleteResponse; +use OnlyFansAPI\Users\Block\BlockNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BlockContract { diff --git a/src/ServiceContracts/Users/BlockRawContract.php b/src/ServiceContracts/Users/BlockRawContract.php index d4d987a7..55d75f47 100644 --- a/src/ServiceContracts/Users/BlockRawContract.php +++ b/src/ServiceContracts/Users/BlockRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Users; +namespace OnlyFansAPI\ServiceContracts\Users; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\Block\BlockCreateParams; -use Onlyfansapi\Users\Block\BlockDeleteParams; -use Onlyfansapi\Users\Block\BlockDeleteResponse; -use Onlyfansapi\Users\Block\BlockNewResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\Block\BlockCreateParams; +use OnlyFansAPI\Users\Block\BlockDeleteParams; +use OnlyFansAPI\Users\Block\BlockDeleteResponse; +use OnlyFansAPI\Users\Block\BlockNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface BlockRawContract { diff --git a/src/ServiceContracts/Users/RestrictContract.php b/src/ServiceContracts/Users/RestrictContract.php index 5730e86e..fe627b67 100644 --- a/src/ServiceContracts/Users/RestrictContract.php +++ b/src/ServiceContracts/Users/RestrictContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Users; +namespace OnlyFansAPI\ServiceContracts\Users; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse; -use Onlyfansapi\Users\Restrict\RestrictNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface RestrictContract { diff --git a/src/ServiceContracts/Users/RestrictRawContract.php b/src/ServiceContracts/Users/RestrictRawContract.php index f0b4ea9a..5a2bfcf0 100644 --- a/src/ServiceContracts/Users/RestrictRawContract.php +++ b/src/ServiceContracts/Users/RestrictRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Users; +namespace OnlyFansAPI\ServiceContracts\Users; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\Restrict\RestrictCreateParams; -use Onlyfansapi\Users\Restrict\RestrictDeleteParams; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse; -use Onlyfansapi\Users\Restrict\RestrictNewResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\Restrict\RestrictCreateParams; +use OnlyFansAPI\Users\Restrict\RestrictDeleteParams; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface RestrictRawContract { diff --git a/src/ServiceContracts/Users/SubscribeContract.php b/src/ServiceContracts/Users/SubscribeContract.php index 69675987..45fea8cf 100644 --- a/src/ServiceContracts/Users/SubscribeContract.php +++ b/src/ServiceContracts/Users/SubscribeContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Users; +namespace OnlyFansAPI\ServiceContracts\Users; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SubscribeContract { diff --git a/src/ServiceContracts/Users/SubscribeRawContract.php b/src/ServiceContracts/Users/SubscribeRawContract.php index 41aa5854..14506b7d 100644 --- a/src/ServiceContracts/Users/SubscribeRawContract.php +++ b/src/ServiceContracts/Users/SubscribeRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts\Users; +namespace OnlyFansAPI\ServiceContracts\Users; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\Subscribe\SubscribeCreateParams; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteParams; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\Subscribe\SubscribeCreateParams; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteParams; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface SubscribeRawContract { diff --git a/src/ServiceContracts/UsersContract.php b/src/ServiceContracts/UsersContract.php index 16b50e4c..32d0b3c6 100644 --- a/src/ServiceContracts/UsersContract.php +++ b/src/ServiceContracts/UsersContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\UserGetResponse; -use Onlyfansapi\Users\UserListResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\UserGetResponse; +use OnlyFansAPI\Users\UserListResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UsersContract { diff --git a/src/ServiceContracts/UsersRawContract.php b/src/ServiceContracts/UsersRawContract.php index f7796276..0975f707 100644 --- a/src/ServiceContracts/UsersRawContract.php +++ b/src/ServiceContracts/UsersRawContract.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Users\UserGetResponse; -use Onlyfansapi\Users\UserListParams; -use Onlyfansapi\Users\UserListResponse; -use Onlyfansapi\Users\UserRetrieveParams; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Users\UserGetResponse; +use OnlyFansAPI\Users\UserListParams; +use OnlyFansAPI\Users\UserListResponse; +use OnlyFansAPI\Users\UserRetrieveParams; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface UsersRawContract { diff --git a/src/ServiceContracts/WebhooksContract.php b/src/ServiceContracts/WebhooksContract.php index 0fb7f80d..796b79bd 100644 --- a/src/ServiceContracts/WebhooksContract.php +++ b/src/ServiceContracts/WebhooksContract.php @@ -2,28 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Webhooks\WebhookGetResponse; -use Onlyfansapi\Webhooks\WebhookListEventsResponse; -use Onlyfansapi\Webhooks\WebhookListResponse; -use Onlyfansapi\Webhooks\WebhookNewResponse; -use Onlyfansapi\Webhooks\WebhookUpdateResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Webhooks\WebhookGetResponse; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse; +use OnlyFansAPI\Webhooks\WebhookListResponse; +use OnlyFansAPI\Webhooks\WebhookNewResponse; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface WebhooksContract { /** * @api * - * @param string $accountScope The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * @param string $accountScope The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. * @param string $endpointURL the URL of your webhook endpoint - * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. - * @param list $accountIDs An array of account IDs to apply the scope to. Required unless account_scope is "global". + * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. + * @param list $accountIDs An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * @param string|null $signingSecret optionally, add a signing secret to protect your webhook * @param RequestOpts|null $requestOptions * @@ -55,10 +55,10 @@ public function retrieve( * @api * * @param string $webhookID The ID of the webhook - * @param string $accountScope The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * @param string $accountScope The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. * @param string $endpointURL the URL of your webhook endpoint - * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. - * @param list $accountIDs An array of account IDs to apply the scope to. Required unless account_scope is "global". + * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. + * @param list $accountIDs An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * @param bool|null $enabled Optionally, enabled/disable the webhook. This will stop/resume the sending of events, without having to delete the webhook. * @param RequestOpts|null $requestOptions * diff --git a/src/ServiceContracts/WebhooksRawContract.php b/src/ServiceContracts/WebhooksRawContract.php index 2fa81a64..cd540668 100644 --- a/src/ServiceContracts/WebhooksRawContract.php +++ b/src/ServiceContracts/WebhooksRawContract.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Webhooks\WebhookCreateParams; -use Onlyfansapi\Webhooks\WebhookGetResponse; -use Onlyfansapi\Webhooks\WebhookListEventsResponse; -use Onlyfansapi\Webhooks\WebhookListResponse; -use Onlyfansapi\Webhooks\WebhookNewResponse; -use Onlyfansapi\Webhooks\WebhookUpdateParams; -use Onlyfansapi\Webhooks\WebhookUpdateResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Webhooks\WebhookCreateParams; +use OnlyFansAPI\Webhooks\WebhookGetResponse; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse; +use OnlyFansAPI\Webhooks\WebhookListResponse; +use OnlyFansAPI\Webhooks\WebhookNewResponse; +use OnlyFansAPI\Webhooks\WebhookUpdateParams; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface WebhooksRawContract { diff --git a/src/ServiceContracts/WhoamiContract.php b/src/ServiceContracts/WhoamiContract.php index 94834b53..afdd3d09 100644 --- a/src/ServiceContracts/WhoamiContract.php +++ b/src/ServiceContracts/WhoamiContract.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Whoami\WhoamiGetResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Whoami\WhoamiGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface WhoamiContract { diff --git a/src/ServiceContracts/WhoamiRawContract.php b/src/ServiceContracts/WhoamiRawContract.php index 6b4b70d8..ce62e944 100644 --- a/src/ServiceContracts/WhoamiRawContract.php +++ b/src/ServiceContracts/WhoamiRawContract.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\ServiceContracts; +namespace OnlyFansAPI\ServiceContracts; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Whoami\WhoamiGetResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Whoami\WhoamiGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ interface WhoamiRawContract { diff --git a/src/Services/AccountsRawService.php b/src/Services/AccountsRawService.php index 54ebb9bf..aa33fd96 100644 --- a/src/Services/AccountsRawService.php +++ b/src/Services/AccountsRawService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Accounts\AccountListParams; -use Onlyfansapi\Accounts\AccountListResponseItem; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Conversion\ListOf; -use Onlyfansapi\Core\Conversion\MapOf; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\AccountsRawContract; +use OnlyFansAPI\Accounts\AccountListParams; +use OnlyFansAPI\Accounts\AccountListResponseItem; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Conversion\ListOf; +use OnlyFansAPI\Core\Conversion\MapOf; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\AccountsRawContract; /** * Endpoints for your linked accounts. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class AccountsRawService implements AccountsRawContract { diff --git a/src/Services/AccountsService.php b/src/Services/AccountsService.php index e46d06ed..963782ce 100644 --- a/src/Services/AccountsService.php +++ b/src/Services/AccountsService.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Accounts\AccountListResponseItem; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\AccountsContract; +use OnlyFansAPI\Accounts\AccountListResponseItem; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\AccountsContract; /** * Endpoints for your linked accounts. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class AccountsService implements AccountsContract { diff --git a/src/Services/Analytics/Financial/ProfitabilityRawService.php b/src/Services/Analytics/Financial/ProfitabilityRawService.php index d92044fd..51adc110 100644 --- a/src/Services/Analytics/Financial/ProfitabilityRawService.php +++ b/src/Services/Analytics/Financial/ProfitabilityRawService.php @@ -2,24 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics\Financial; +namespace OnlyFansAPI\Services\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetHistoryParams; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponseItem; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityParams; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponseItem; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Conversion\ListOf; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\Financial\ProfitabilityRawContract; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetHistoryParams; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponse; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityParams; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\Financial\ProfitabilityRawContract; /** * APIs for retrieving financial analytics data. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ProfitabilityRawService implements ProfitabilityRawContract { @@ -40,7 +39,7 @@ public function __construct(private Client $client) {} * }|ProfitabilityGetHistoryParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse> + * @return BaseResponse * * @throws APIException */ @@ -63,7 +62,7 @@ public function getHistory( ['accountPrefixedID' => 'account_prefixed_id'] ), options: $options, - convert: new ListOf(ProfitabilityGetHistoryResponseItem::class), + convert: ProfitabilityGetHistoryResponse::class, ); } @@ -77,7 +76,7 @@ public function getHistory( * }|ProfitabilityGetProfitabilityParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse> + * @return BaseResponse * * @throws APIException */ @@ -96,7 +95,7 @@ public function getProfitability( path: 'api/analytics/financial/profitability', body: (object) $parsed, options: $options, - convert: new ListOf(ProfitabilityGetProfitabilityResponseItem::class), + convert: ProfitabilityGetProfitabilityResponse::class, ); } } diff --git a/src/Services/Analytics/Financial/ProfitabilityService.php b/src/Services/Analytics/Financial/ProfitabilityService.php index c1e5d952..d362557a 100644 --- a/src/Services/Analytics/Financial/ProfitabilityService.php +++ b/src/Services/Analytics/Financial/ProfitabilityService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics\Financial; +namespace OnlyFansAPI\Services\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponseItem; -use Onlyfansapi\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponseItem; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\Financial\ProfitabilityContract; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponse; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\Financial\ProfitabilityContract; /** * APIs for retrieving financial analytics data. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ProfitabilityService implements ProfitabilityContract { @@ -42,8 +42,6 @@ public function __construct(private Client $client) * @param int $months Number of months of history to retrieve (1-60, default 12). Must be at least 1. Must not be greater than 60. * @param RequestOpts|null $requestOptions * - * @return list - * * @throws APIException */ public function getHistory( @@ -51,7 +49,7 @@ public function getHistory( string $accountPrefixedID, ?int $months = null, RequestOptions|array|null $requestOptions = null, - ): array { + ): ProfitabilityGetHistoryResponse { $params = Util::removeNulls( ['accountPrefixedID' => $accountPrefixedID, 'months' => $months] ); @@ -72,8 +70,6 @@ public function getHistory( * @param int $year The year to calculate profitability for * @param RequestOpts|null $requestOptions * - * @return list - * * @throws APIException */ public function getProfitability( @@ -81,7 +77,7 @@ public function getProfitability( int $month, int $year, RequestOptions|array|null $requestOptions = null, - ): array { + ): ProfitabilityGetProfitabilityResponse { $params = Util::removeNulls( ['accountIDs' => $accountIDs, 'month' => $month, 'year' => $year] ); diff --git a/src/Services/Analytics/Financial/TransactionsRawService.php b/src/Services/Analytics/Financial/TransactionsRawService.php index f41418a0..6f67a5c2 100644 --- a/src/Services/Analytics/Financial/TransactionsRawService.php +++ b/src/Services/Analytics/Financial/TransactionsRawService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics\Financial; +namespace OnlyFansAPI\Services\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetByTypeParams; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetSummaryParams; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetSummaryResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Conversion\ListOf; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\Financial\TransactionsRawContract; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetByTypeParams; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetSummaryParams; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetSummaryResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Conversion\ListOf; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\Financial\TransactionsRawContract; /** * APIs for retrieving financial analytics data. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TransactionsRawService implements TransactionsRawContract { diff --git a/src/Services/Analytics/Financial/TransactionsService.php b/src/Services/Analytics/Financial/TransactionsService.php index 7591ad18..acf2108f 100644 --- a/src/Services/Analytics/Financial/TransactionsService.php +++ b/src/Services/Analytics/Financial/TransactionsService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics\Financial; +namespace OnlyFansAPI\Services\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetSummaryResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\Financial\TransactionsContract; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetByTypeResponseItem; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetSummaryResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\Financial\TransactionsContract; /** * APIs for retrieving financial analytics data. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TransactionsService implements TransactionsContract { diff --git a/src/Services/Analytics/FinancialRawService.php b/src/Services/Analytics/FinancialRawService.php index 6d104f82..1af2b5d5 100644 --- a/src/Services/Analytics/FinancialRawService.php +++ b/src/Services/Analytics/FinancialRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics; +namespace OnlyFansAPI\Services\Analytics; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams\Metric; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams\Model; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\FinancialRawContract; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams\Metric; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams\Model; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\FinancialRawContract; /** * APIs for retrieving financial analytics data. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class FinancialRawService implements FinancialRawContract { diff --git a/src/Services/Analytics/FinancialService.php b/src/Services/Analytics/FinancialService.php index a8a42698..db5f0f4f 100644 --- a/src/Services/Analytics/FinancialService.php +++ b/src/Services/Analytics/FinancialService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics; +namespace OnlyFansAPI\Services\Analytics; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams\Metric; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastParams\Model; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\FinancialContract; -use Onlyfansapi\Services\Analytics\Financial\ProfitabilityService; -use Onlyfansapi\Services\Analytics\Financial\TransactionsService; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams\Metric; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastParams\Model; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\FinancialContract; +use OnlyFansAPI\Services\Analytics\Financial\ProfitabilityService; +use OnlyFansAPI\Services\Analytics\Financial\TransactionsService; /** * APIs for retrieving financial analytics data. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class FinancialService implements FinancialContract { diff --git a/src/Services/Analytics/SummaryRawService.php b/src/Services/Analytics/SummaryRawService.php index 93b4b3e8..2c7b60a9 100644 --- a/src/Services/Analytics/SummaryRawService.php +++ b/src/Services/Analytics/SummaryRawService.php @@ -2,32 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics; +namespace OnlyFansAPI\Services\Analytics; -use Onlyfansapi\Analytics\Summary\SummaryGetEarningsOverviewParams; -use Onlyfansapi\Analytics\Summary\SummaryGetEarningsOverviewResponse; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceParams; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Conversion\ListOf; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\SummaryRawContract; +use OnlyFansAPI\Analytics\Summary\SummaryGetEarningsOverviewParams; +use OnlyFansAPI\Analytics\Summary\SummaryGetEarningsOverviewResponse; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceParams; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Conversion\ListOf; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\SummaryRawContract; /** * APIs for retrieving summary analytics data. * - * @phpstan-import-type PeriodAShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA - * @phpstan-import-type PeriodBShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type PeriodAShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA + * @phpstan-import-type PeriodBShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SummaryRawService implements SummaryRawContract { diff --git a/src/Services/Analytics/SummaryService.php b/src/Services/Analytics/SummaryService.php index e34fc92c..c96e5aef 100644 --- a/src/Services/Analytics/SummaryService.php +++ b/src/Services/Analytics/SummaryService.php @@ -2,28 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Analytics; +namespace OnlyFansAPI\Services\Analytics; -use Onlyfansapi\Analytics\Summary\SummaryGetEarningsOverviewResponse; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; -use Onlyfansapi\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Analytics\SummaryContract; +use OnlyFansAPI\Analytics\Summary\SummaryGetEarningsOverviewResponse; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceParams\TimeRange; +use OnlyFansAPI\Analytics\Summary\SummaryGetHistoricalPerformanceResponseItem; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\Granularity; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\StatType; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Analytics\SummaryContract; /** * APIs for retrieving summary analytics data. * - * @phpstan-import-type PeriodAShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA - * @phpstan-import-type PeriodBShape from \Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type PeriodAShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodA + * @phpstan-import-type PeriodBShape from \OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonParams\PeriodB + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SummaryService implements SummaryContract { diff --git a/src/Services/AnalyticsRawService.php b/src/Services/AnalyticsRawService.php index ba4c5a65..c517d826 100644 --- a/src/Services/AnalyticsRawService.php +++ b/src/Services/AnalyticsRawService.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ServiceContracts\AnalyticsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\AnalyticsRawContract; final class AnalyticsRawService implements AnalyticsRawContract { diff --git a/src/Services/AnalyticsService.php b/src/Services/AnalyticsService.php index cba855eb..37754d8a 100644 --- a/src/Services/AnalyticsService.php +++ b/src/Services/AnalyticsService.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ServiceContracts\AnalyticsContract; -use Onlyfansapi\Services\Analytics\FinancialService; -use Onlyfansapi\Services\Analytics\SummaryService; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\AnalyticsContract; +use OnlyFansAPI\Services\Analytics\FinancialService; +use OnlyFansAPI\Services\Analytics\SummaryService; final class AnalyticsService implements AnalyticsContract { diff --git a/src/Services/AuthenticateRawService.php b/src/Services/AuthenticateRawService.php index a1f30d15..68206f3d 100644 --- a/src/Services/AuthenticateRawService.php +++ b/src/Services/AuthenticateRawService.php @@ -2,29 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse; -use Onlyfansapi\Authenticate\AuthenticateReauthenticateResponse; -use Onlyfansapi\Authenticate\AuthenticateSend2faEmailResponse; -use Onlyfansapi\Authenticate\AuthenticateStartParams; -use Onlyfansapi\Authenticate\AuthenticateStartParams\AuthType; -use Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy; -use Onlyfansapi\Authenticate\AuthenticateStartParams\ProxyCountry; -use Onlyfansapi\Authenticate\AuthenticateStartResponse; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember0; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember1; -use Onlyfansapi\Authenticate\AuthenticateSubmit2faParams; -use Onlyfansapi\Authenticate\AuthenticateSubmit2faResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\AuthenticateRawContract; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse; +use OnlyFansAPI\Authenticate\AuthenticateReauthenticateResponse; +use OnlyFansAPI\Authenticate\AuthenticateSend2faEmailResponse; +use OnlyFansAPI\Authenticate\AuthenticateStartParams; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\AuthType; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\ProxyCountry; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember0; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember1; +use OnlyFansAPI\Authenticate\AuthenticateSubmit2faParams; +use OnlyFansAPI\Authenticate\AuthenticateSubmit2faResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\AuthenticateRawContract; /** - * @phpstan-import-type CustomProxyShape from \Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type CustomProxyShape from \OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class AuthenticateRawService implements AuthenticateRawContract { diff --git a/src/Services/AuthenticateService.php b/src/Services/AuthenticateService.php index aa3b72ba..5dfc5f74 100644 --- a/src/Services/AuthenticateService.php +++ b/src/Services/AuthenticateService.php @@ -2,26 +2,26 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse; -use Onlyfansapi\Authenticate\AuthenticateReauthenticateResponse; -use Onlyfansapi\Authenticate\AuthenticateSend2faEmailResponse; -use Onlyfansapi\Authenticate\AuthenticateStartParams\AuthType; -use Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy; -use Onlyfansapi\Authenticate\AuthenticateStartParams\ProxyCountry; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember0; -use Onlyfansapi\Authenticate\AuthenticateStartResponse\UnionMember1; -use Onlyfansapi\Authenticate\AuthenticateSubmit2faResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\AuthenticateContract; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse; +use OnlyFansAPI\Authenticate\AuthenticateReauthenticateResponse; +use OnlyFansAPI\Authenticate\AuthenticateSend2faEmailResponse; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\AuthType; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy; +use OnlyFansAPI\Authenticate\AuthenticateStartParams\ProxyCountry; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember0; +use OnlyFansAPI\Authenticate\AuthenticateStartResponse\UnionMember1; +use OnlyFansAPI\Authenticate\AuthenticateSubmit2faResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\AuthenticateContract; /** - * @phpstan-import-type CustomProxyShape from \Onlyfansapi\Authenticate\AuthenticateStartParams\CustomProxy - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type CustomProxyShape from \OnlyFansAPI\Authenticate\AuthenticateStartParams\CustomProxy + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class AuthenticateService implements AuthenticateContract { diff --git a/src/Services/Banking/DetailsRawService.php b/src/Services/Banking/DetailsRawService.php index 6183529a..03156c5e 100644 --- a/src/Services/Banking/DetailsRawService.php +++ b/src/Services/Banking/DetailsRawService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Banking; +namespace OnlyFansAPI\Services\Banking; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Banking\DetailsRawContract; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Banking\DetailsRawContract; /** * Operations related to user banking details, payout methods, legal and tax information, and account country settings. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class DetailsRawService implements DetailsRawContract { diff --git a/src/Services/Banking/DetailsService.php b/src/Services/Banking/DetailsService.php index 83ff55a3..3dd3365e 100644 --- a/src/Services/Banking/DetailsService.php +++ b/src/Services/Banking/DetailsService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Banking; +namespace OnlyFansAPI\Services\Banking; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Banking\DetailsContract; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Banking\DetailsContract; /** * Operations related to user banking details, payout methods, legal and tax information, and account country settings. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class DetailsService implements DetailsContract { diff --git a/src/Services/BankingRawService.php b/src/Services/BankingRawService.php index 1f915a0f..fe6ecc99 100644 --- a/src/Services/BankingRawService.php +++ b/src/Services/BankingRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse; -use Onlyfansapi\Banking\BankingListCountriesResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\BankingRawContract; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse; +use OnlyFansAPI\Banking\BankingListCountriesResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\BankingRawContract; /** * Operations related to user banking details, payout methods, legal and tax information, and account country settings. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BankingRawService implements BankingRawContract { diff --git a/src/Services/BankingService.php b/src/Services/BankingService.php index 27030945..9d81cd4a 100644 --- a/src/Services/BankingService.php +++ b/src/Services/BankingService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse; -use Onlyfansapi\Banking\BankingListCountriesResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\BankingContract; -use Onlyfansapi\Services\Banking\DetailsService; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse; +use OnlyFansAPI\Banking\BankingListCountriesResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\BankingContract; +use OnlyFansAPI\Services\Banking\DetailsService; /** * Operations related to user banking details, payout methods, legal and tax information, and account country settings. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BankingService implements BankingContract { diff --git a/src/Services/BundlesRawService.php b/src/Services/BundlesRawService.php index e601d123..45c62855 100644 --- a/src/Services/BundlesRawService.php +++ b/src/Services/BundlesRawService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Bundles\BundleCreateParams; -use Onlyfansapi\Bundles\BundleCreateParams\Discount; -use Onlyfansapi\Bundles\BundleCreateParams\Duration; -use Onlyfansapi\Bundles\BundleDeleteParams; -use Onlyfansapi\Bundles\BundleDeleteResponse; -use Onlyfansapi\Bundles\BundleListResponse; -use Onlyfansapi\Bundles\BundleNewResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\BundlesRawContract; +use OnlyFansAPI\Bundles\BundleCreateParams; +use OnlyFansAPI\Bundles\BundleCreateParams\Discount; +use OnlyFansAPI\Bundles\BundleCreateParams\Duration; +use OnlyFansAPI\Bundles\BundleDeleteParams; +use OnlyFansAPI\Bundles\BundleDeleteResponse; +use OnlyFansAPI\Bundles\BundleListResponse; +use OnlyFansAPI\Bundles\BundleNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\BundlesRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BundlesRawService implements BundlesRawContract { diff --git a/src/Services/BundlesService.php b/src/Services/BundlesService.php index 62417853..8cec0d6a 100644 --- a/src/Services/BundlesService.php +++ b/src/Services/BundlesService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Bundles\BundleCreateParams\Discount; -use Onlyfansapi\Bundles\BundleCreateParams\Duration; -use Onlyfansapi\Bundles\BundleDeleteResponse; -use Onlyfansapi\Bundles\BundleListResponse; -use Onlyfansapi\Bundles\BundleNewResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\BundlesContract; +use OnlyFansAPI\Bundles\BundleCreateParams\Discount; +use OnlyFansAPI\Bundles\BundleCreateParams\Duration; +use OnlyFansAPI\Bundles\BundleDeleteResponse; +use OnlyFansAPI\Bundles\BundleListResponse; +use OnlyFansAPI\Bundles\BundleNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\BundlesContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BundlesService implements BundlesContract { diff --git a/src/Services/ChargebacksRawService.php b/src/Services/ChargebacksRawService.php index ca01d639..cecfa501 100644 --- a/src/Services/ChargebacksRawService.php +++ b/src/Services/ChargebacksRawService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioParams; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse; -use Onlyfansapi\Chargebacks\ChargebackListParams; -use Onlyfansapi\Chargebacks\ChargebackListResponse; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsParams; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ChargebacksRawContract; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioParams; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse; +use OnlyFansAPI\Chargebacks\ChargebackListParams; +use OnlyFansAPI\Chargebacks\ChargebackListResponse; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsParams; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ChargebacksRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ChargebacksRawService implements ChargebacksRawContract { diff --git a/src/Services/ChargebacksService.php b/src/Services/ChargebacksService.php index c0f625a0..3d34bf87 100644 --- a/src/Services/ChargebacksService.php +++ b/src/Services/ChargebacksService.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse; -use Onlyfansapi\Chargebacks\ChargebackListResponse; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ChargebacksContract; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse; +use OnlyFansAPI\Chargebacks\ChargebackListResponse; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ChargebacksContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ChargebacksService implements ChargebacksContract { diff --git a/src/Services/Chats/MarkAllAsReadRawService.php b/src/Services/Chats/MarkAllAsReadRawService.php index 655e990b..b428acc8 100644 --- a/src/Services/Chats/MarkAllAsReadRawService.php +++ b/src/Services/Chats/MarkAllAsReadRawService.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Chats; +namespace OnlyFansAPI\Services\Chats; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Chats\MarkAllAsReadRawContract; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Chats\MarkAllAsReadRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MarkAllAsReadRawService implements MarkAllAsReadRawContract { diff --git a/src/Services/Chats/MarkAllAsReadService.php b/src/Services/Chats/MarkAllAsReadService.php index 9484756c..6d492d0b 100644 --- a/src/Services/Chats/MarkAllAsReadService.php +++ b/src/Services/Chats/MarkAllAsReadService.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Chats; +namespace OnlyFansAPI\Services\Chats; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Chats\MarkAllAsReadContract; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Chats\MarkAllAsReadContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MarkAllAsReadService implements MarkAllAsReadContract { diff --git a/src/Services/Chats/MessagesRawService.php b/src/Services/Chats/MessagesRawService.php index 59502a15..3994174f 100644 --- a/src/Services/Chats/MessagesRawService.php +++ b/src/Services/Chats/MessagesRawService.php @@ -2,36 +2,37 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Chats; +namespace OnlyFansAPI\Services\Chats; -use Onlyfansapi\Chats\Messages\MessageDeleteParams; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse; -use Onlyfansapi\Chats\Messages\MessageGetResponse; -use Onlyfansapi\Chats\Messages\MessageLikeParams; -use Onlyfansapi\Chats\Messages\MessageLikeResponse; -use Onlyfansapi\Chats\Messages\MessageListParams; -use Onlyfansapi\Chats\Messages\MessageListParams\Filter; -use Onlyfansapi\Chats\Messages\MessageListResponse; -use Onlyfansapi\Chats\Messages\MessagePinParams; -use Onlyfansapi\Chats\Messages\MessagePinResponse; -use Onlyfansapi\Chats\Messages\MessageRetrieveParams; -use Onlyfansapi\Chats\Messages\MessageSearchParams; -use Onlyfansapi\Chats\Messages\MessageSearchResponse; -use Onlyfansapi\Chats\Messages\MessageSendParams; -use Onlyfansapi\Chats\Messages\MessageSendResponse; -use Onlyfansapi\Chats\Messages\MessageUnlikeParams; -use Onlyfansapi\Chats\Messages\MessageUnlikeResponse; -use Onlyfansapi\Chats\Messages\MessageUnpinParams; -use Onlyfansapi\Chats\Messages\MessageUnpinResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Chats\MessagesRawContract; +use OnlyFansAPI\Chats\Messages\MessageDeleteParams; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse; +use OnlyFansAPI\Chats\Messages\MessageGetResponse; +use OnlyFansAPI\Chats\Messages\MessageLikeParams; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse; +use OnlyFansAPI\Chats\Messages\MessageListParams; +use OnlyFansAPI\Chats\Messages\MessageListParams\Filter; +use OnlyFansAPI\Chats\Messages\MessageListResponse; +use OnlyFansAPI\Chats\Messages\MessagePinParams; +use OnlyFansAPI\Chats\Messages\MessagePinResponse; +use OnlyFansAPI\Chats\Messages\MessageRetrieveParams; +use OnlyFansAPI\Chats\Messages\MessageSearchParams; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse; +use OnlyFansAPI\Chats\Messages\MessageSendParams; +use OnlyFansAPI\Chats\Messages\MessageSendParams\BlockBannedWords; +use OnlyFansAPI\Chats\Messages\MessageSendResponse; +use OnlyFansAPI\Chats\Messages\MessageUnlikeParams; +use OnlyFansAPI\Chats\Messages\MessageUnlikeResponse; +use OnlyFansAPI\Chats\Messages\MessageUnpinParams; +use OnlyFansAPI\Chats\Messages\MessageUnpinResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Chats\MessagesRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MessagesRawService implements MessagesRawContract { @@ -283,19 +284,38 @@ public function search( * * Send a new message to a chat. * + * **Idempotency.** Pass an `Idempotency-Key` header to make retries safe. The first request with a + * given key is executed normally and its response is stored for **24 hours**; any later request with + * the same key returns that stored response, plus an `Idempotent-Replayed: true` header, without + * contacting OnlyFans and without consuming credits. The replayed body is the original response with + * its `_meta._credits` block rewritten to show `used: 0` and your current balance. + * + * Keys are scoped to your team, this endpoint and the account in the URL, so the same value can be + * reused safely against a different account. Use a fresh, unique value (a UUID works well) for each + * message you send; it must be 1-255 printable ASCII characters. + * + * - `400 IDEMPOTENCY_KEY_INVALID` — the header value is empty, too long, or contains non-ASCII characters. + * - `409 IDEMPOTENCY_CONFLICT` — an earlier request with this key is still running. Retry once it finishes. + * - `422 IDEMPOTENCY_KEY_MISMATCH` — this key was already used with a different request body or chat. + * + * Responses with a `5xx` status (and `408`/`429`) are never stored, so a failed send can be retried + * with the same key. The header is optional: omit it and the endpoint behaves exactly as before. + * * @param string $chatID Path param: The ID of the chat (usually a fan's OnlyFans User ID) * @param array{ * account: string, + * blockBannedWords?: BlockBannedWords|value-of, * giphyID?: string, * lockedText?: bool, * mediaFiles?: list, * previews?: list, - * price?: int, + * price?: float, * replyToMessageID?: int, * rfGuest?: string, * rfPartner?: string, * rfTag?: string, * text?: string, + * idempotencyKey?: string, * }|MessageSendParams $params * @param RequestOpts|null $requestOptions * @@ -314,12 +334,20 @@ public function send( ); $account = $parsed['account']; unset($parsed['account']); + $header_params = ['idempotencyKey' => 'Idempotency-Key']; // @phpstan-ignore-next-line return.type return $this->client->request( method: 'post', path: ['api/%1$s/chats/%2$s/messages', $account, $chatID], - body: (object) array_diff_key($parsed, array_flip(['account'])), + headers: Util::array_transform_keys( + array_intersect_key($parsed, array_flip(array_keys($header_params))), + $header_params, + ), + body: (object) array_diff_key( + array_diff_key($parsed, array_flip(array_keys($header_params))), + array_flip(['account']), + ), options: $options, convert: MessageSendResponse::class, ); diff --git a/src/Services/Chats/MessagesService.php b/src/Services/Chats/MessagesService.php index a66909b1..50d6d106 100644 --- a/src/Services/Chats/MessagesService.php +++ b/src/Services/Chats/MessagesService.php @@ -2,26 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Chats; - -use Onlyfansapi\Chats\Messages\MessageDeleteResponse; -use Onlyfansapi\Chats\Messages\MessageGetResponse; -use Onlyfansapi\Chats\Messages\MessageLikeResponse; -use Onlyfansapi\Chats\Messages\MessageListParams\Filter; -use Onlyfansapi\Chats\Messages\MessageListResponse; -use Onlyfansapi\Chats\Messages\MessagePinResponse; -use Onlyfansapi\Chats\Messages\MessageSearchResponse; -use Onlyfansapi\Chats\Messages\MessageSendResponse; -use Onlyfansapi\Chats\Messages\MessageUnlikeResponse; -use Onlyfansapi\Chats\Messages\MessageUnpinResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Chats\MessagesContract; +namespace OnlyFansAPI\Services\Chats; + +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse; +use OnlyFansAPI\Chats\Messages\MessageGetResponse; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse; +use OnlyFansAPI\Chats\Messages\MessageListParams\Filter; +use OnlyFansAPI\Chats\Messages\MessageListResponse; +use OnlyFansAPI\Chats\Messages\MessagePinResponse; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse; +use OnlyFansAPI\Chats\Messages\MessageSendParams\BlockBannedWords; +use OnlyFansAPI\Chats\Messages\MessageSendResponse; +use OnlyFansAPI\Chats\Messages\MessageUnlikeResponse; +use OnlyFansAPI\Chats\Messages\MessageUnpinResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Chats\MessagesContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MessagesService implements MessagesContract { @@ -76,7 +77,7 @@ public function retrieve( * @param string|null $lastID Query param: Use for pagination when `order=asc` (oldest to newest). Include this message ID as the first message in the results. WARNING! The response list of messages will also be inverted (oldest messages will be first, opposite to default where `order=desc`). * @param string $limit Query param: The number of messages to return (default = 10, max = 100) * @param string $order Query param: Sort order for messages (desc or asc) - * @param string $skipUsers Query param: Whether to skip user details (all or none) + * @param string $skipUsers query param: Whether to skip user details (`all` or `none`) * @param RequestOpts|null $requestOptions * * @throws APIException @@ -219,18 +220,37 @@ public function search( * * Send a new message to a chat. * + * **Idempotency.** Pass an `Idempotency-Key` header to make retries safe. The first request with a + * given key is executed normally and its response is stored for **24 hours**; any later request with + * the same key returns that stored response, plus an `Idempotent-Replayed: true` header, without + * contacting OnlyFans and without consuming credits. The replayed body is the original response with + * its `_meta._credits` block rewritten to show `used: 0` and your current balance. + * + * Keys are scoped to your team, this endpoint and the account in the URL, so the same value can be + * reused safely against a different account. Use a fresh, unique value (a UUID works well) for each + * message you send; it must be 1-255 printable ASCII characters. + * + * - `400 IDEMPOTENCY_KEY_INVALID` — the header value is empty, too long, or contains non-ASCII characters. + * - `409 IDEMPOTENCY_CONFLICT` — an earlier request with this key is still running. Retry once it finishes. + * - `422 IDEMPOTENCY_KEY_MISMATCH` — this key was already used with a different request body or chat. + * + * Responses with a `5xx` status (and `408`/`429`) are never stored, so a failed send can be retried + * with the same key. The header is optional: omit it and the endpoint behaves exactly as before. + * * @param string $chatID Path param: The ID of the chat (usually a fan's OnlyFans User ID) * @param string $account Path param: The Account ID + * @param BlockBannedWords|value-of $blockBannedWords Body param: Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param string $giphyID Body param: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). * @param bool $lockedText Body param: Whether the text should be shown or hidden * @param list $mediaFiles Body param: Direct file uploads, OFAPI `ofapi_media_` IDs, or OF vault IDs. Will be hidden if `price` is provided. * @param list $previews Body param: Direct file uploads, OFAPI `ofapi_media_` IDs, OF vault IDs, or integer indices referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - * @param int $price Body param: Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required + * @param float $price Body param: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required * @param int $replyToMessageID Body param: Mark this message as a reply to another (can be either your own, or the recipient's) * @param string $rfGuest Body param: Array of OnlyFans Release Form Guest IDs to tag in your message * @param string $rfPartner Body param: Array of OnlyFans Release Form Partners IDs to tag in your message * @param string $rfTag Body param: Array of OnlyFans Creator User IDs to tag in your message * @param string $text Body param: The message text content. Required unless a media file is present. + * @param string $idempotencyKey Header param * @param RequestOpts|null $requestOptions * * @throws APIException @@ -238,21 +258,24 @@ public function search( public function send( string $chatID, string $account, + BlockBannedWords|string|null $blockBannedWords = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?int $replyToMessageID = null, ?string $rfGuest = null, ?string $rfPartner = null, ?string $rfTag = null, ?string $text = null, + ?string $idempotencyKey = null, RequestOptions|array|null $requestOptions = null, ): MessageSendResponse { $params = Util::removeNulls( [ 'account' => $account, + 'blockBannedWords' => $blockBannedWords, 'giphyID' => $giphyID, 'lockedText' => $lockedText, 'mediaFiles' => $mediaFiles, @@ -263,6 +286,7 @@ public function send( 'rfPartner' => $rfPartner, 'rfTag' => $rfTag, 'text' => $text, + 'idempotencyKey' => $idempotencyKey, ], ); diff --git a/src/Services/ChatsRawService.php b/src/Services/ChatsRawService.php index 40be7300..2581d2f3 100644 --- a/src/Services/ChatsRawService.php +++ b/src/Services/ChatsRawService.php @@ -2,39 +2,39 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Chats\ChatDeleteParams; -use Onlyfansapi\Chats\ChatDeleteResponse; -use Onlyfansapi\Chats\ChatHideParams; -use Onlyfansapi\Chats\ChatHideResponse; -use Onlyfansapi\Chats\ChatListMediaParams; -use Onlyfansapi\Chats\ChatListMediaParams\Type; -use Onlyfansapi\Chats\ChatListMediaResponse; -use Onlyfansapi\Chats\ChatListParams; -use Onlyfansapi\Chats\ChatListParams\Filter; -use Onlyfansapi\Chats\ChatListParams\Order; -use Onlyfansapi\Chats\ChatListParams\SkipUsers; -use Onlyfansapi\Chats\ChatListResponse; -use Onlyfansapi\Chats\ChatMarkAsReadParams; -use Onlyfansapi\Chats\ChatMarkAsReadResponse; -use Onlyfansapi\Chats\ChatMarkAsUnreadParams; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse; -use Onlyfansapi\Chats\ChatMuteParams; -use Onlyfansapi\Chats\ChatMuteResponse; -use Onlyfansapi\Chats\ChatStartTypingParams; -use Onlyfansapi\Chats\ChatStartTypingResponse; -use Onlyfansapi\Chats\ChatUnmuteParams; -use Onlyfansapi\Chats\ChatUnmuteResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ChatsRawContract; +use OnlyFansAPI\Chats\ChatDeleteParams; +use OnlyFansAPI\Chats\ChatDeleteResponse; +use OnlyFansAPI\Chats\ChatHideParams; +use OnlyFansAPI\Chats\ChatHideResponse; +use OnlyFansAPI\Chats\ChatListMediaParams; +use OnlyFansAPI\Chats\ChatListMediaParams\Type; +use OnlyFansAPI\Chats\ChatListMediaResponse; +use OnlyFansAPI\Chats\ChatListParams; +use OnlyFansAPI\Chats\ChatListParams\Filter; +use OnlyFansAPI\Chats\ChatListParams\Order; +use OnlyFansAPI\Chats\ChatListParams\SkipUsers; +use OnlyFansAPI\Chats\ChatListResponse; +use OnlyFansAPI\Chats\ChatMarkAsReadParams; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse; +use OnlyFansAPI\Chats\ChatMarkAsUnreadParams; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse; +use OnlyFansAPI\Chats\ChatMuteParams; +use OnlyFansAPI\Chats\ChatMuteResponse; +use OnlyFansAPI\Chats\ChatStartTypingParams; +use OnlyFansAPI\Chats\ChatStartTypingResponse; +use OnlyFansAPI\Chats\ChatUnmuteParams; +use OnlyFansAPI\Chats\ChatUnmuteResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ChatsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ChatsRawService implements ChatsRawContract { @@ -298,7 +298,7 @@ public function mute( /** * @api * - * Calling this endpoint will show the target fan a "Model is typing..." note in the chat for ~4 seconds. If you want to continue showing the indicator call this endpoint multiple times. Free - no credits charged. + * Calling this endpoint will show the target fan a "Model is typing..." note in the chat for ~4 seconds. Duplicate calls for the same account and chat are coalesced during that window. * * @param string $chatID The ID of the chat (usually a fan's OnlyFans User ID) * @param array{account: string}|ChatStartTypingParams $params diff --git a/src/Services/ChatsService.php b/src/Services/ChatsService.php index 9c334dd5..c42f0d43 100644 --- a/src/Services/ChatsService.php +++ b/src/Services/ChatsService.php @@ -2,31 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Chats\ChatDeleteResponse; -use Onlyfansapi\Chats\ChatHideResponse; -use Onlyfansapi\Chats\ChatListMediaParams\Type; -use Onlyfansapi\Chats\ChatListMediaResponse; -use Onlyfansapi\Chats\ChatListParams\Filter; -use Onlyfansapi\Chats\ChatListParams\Order; -use Onlyfansapi\Chats\ChatListParams\SkipUsers; -use Onlyfansapi\Chats\ChatListResponse; -use Onlyfansapi\Chats\ChatMarkAsReadResponse; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse; -use Onlyfansapi\Chats\ChatMuteResponse; -use Onlyfansapi\Chats\ChatStartTypingResponse; -use Onlyfansapi\Chats\ChatUnmuteResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ChatsContract; -use Onlyfansapi\Services\Chats\MarkAllAsReadService; -use Onlyfansapi\Services\Chats\MessagesService; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Chats\ChatDeleteResponse; +use OnlyFansAPI\Chats\ChatHideResponse; +use OnlyFansAPI\Chats\ChatListMediaParams\Type; +use OnlyFansAPI\Chats\ChatListMediaResponse; +use OnlyFansAPI\Chats\ChatListParams\Filter; +use OnlyFansAPI\Chats\ChatListParams\Order; +use OnlyFansAPI\Chats\ChatListParams\SkipUsers; +use OnlyFansAPI\Chats\ChatListResponse; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse; +use OnlyFansAPI\Chats\ChatMuteResponse; +use OnlyFansAPI\Chats\ChatStartTypingResponse; +use OnlyFansAPI\Chats\ChatUnmuteResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ChatsContract; +use OnlyFansAPI\Services\Chats\MarkAllAsReadService; +use OnlyFansAPI\Services\Chats\MessagesService; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ChatsService implements ChatsContract { @@ -66,7 +66,7 @@ public function __construct(private Client $client) * @param string $offset Number of chats to skip for pagination * @param Order|value-of $order Sort order for chats (recent or old). Default = recent * @param string $query Search query to filter chats - * @param SkipUsers|value-of $skipUsers Whether to skip user details in response (all or none). Default = all + * @param SkipUsers|value-of $skipUsers Whether to skip user details in the response (`all` or `none`). Defaults to `all`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -155,7 +155,7 @@ public function hide( * @param string $account Path param: The Account ID * @param string $limit Query param: Number of medias to return. Default = 20 * @param string $offset Query param: Number of medias to skip for pagination - * @param string $skipUsers Query param: Whether to skip user details in response (all or none). Default = all + * @param string $skipUsers Query param: Whether to skip user details in the response (`all` or `none`). Defaults to `all`. * @param Type|value-of|null $type Query param: Filter by specific media types. Keep empty to return all. * @param RequestOpts|null $requestOptions * @@ -261,7 +261,7 @@ public function mute( /** * @api * - * Calling this endpoint will show the target fan a "Model is typing..." note in the chat for ~4 seconds. If you want to continue showing the indicator call this endpoint multiple times. Free - no credits charged. + * Calling this endpoint will show the target fan a "Model is typing..." note in the chat for ~4 seconds. Duplicate calls for the same account and chat are coalesced during that window. * * @param string $chatID The ID of the chat (usually a fan's OnlyFans User ID) * @param string $account The Account ID diff --git a/src/Services/ClientSessionsRawService.php b/src/Services/ClientSessionsRawService.php index 16c8020b..488b7650 100644 --- a/src/Services/ClientSessionsRawService.php +++ b/src/Services/ClientSessionsRawService.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ClientSessions\ClientSessionCreateParams; -use Onlyfansapi\ClientSessions\ClientSessionCreateParams\ProxyCountry; -use Onlyfansapi\ClientSessions\ClientSessionNewResponse; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ClientSessionsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\ClientSessions\ClientSessionCreateParams; +use OnlyFansAPI\ClientSessions\ClientSessionCreateParams\ProxyCountry; +use OnlyFansAPI\ClientSessions\ClientSessionNewResponse; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ClientSessionsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ClientSessionsRawService implements ClientSessionsRawContract { diff --git a/src/Services/ClientSessionsService.php b/src/Services/ClientSessionsService.php index e918298a..3eac05b8 100644 --- a/src/Services/ClientSessionsService.php +++ b/src/Services/ClientSessionsService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ClientSessions\ClientSessionCreateParams\ProxyCountry; -use Onlyfansapi\ClientSessions\ClientSessionNewResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ClientSessionsContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\ClientSessions\ClientSessionCreateParams\ProxyCountry; +use OnlyFansAPI\ClientSessions\ClientSessionNewResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ClientSessionsContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ClientSessionsService implements ClientSessionsContract { diff --git a/src/Services/DataExportsRawService.php b/src/Services/DataExportsRawService.php index 4e3f6092..1ad99b59 100644 --- a/src/Services/DataExportsRawService.php +++ b/src/Services/DataExportsRawService.php @@ -2,31 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\DataExports\DataExportCancelResponse; -use Onlyfansapi\DataExports\DataExportCreateParams; -use Onlyfansapi\DataExports\DataExportCreateParams\FileType; -use Onlyfansapi\DataExports\DataExportCreateParams\Type; -use Onlyfansapi\DataExports\DataExportGetResponse; -use Onlyfansapi\DataExports\DataExportListParams; -use Onlyfansapi\DataExports\DataExportListParams\Status; -use Onlyfansapi\DataExports\DataExportListResponse; -use Onlyfansapi\DataExports\DataExportNewResponse; -use Onlyfansapi\DataExports\DataExportRetrieveParams; -use Onlyfansapi\DataExports\DataExportRetryResponse; -use Onlyfansapi\DataExports\DataExportStartResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\DataExportsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\DataExports\DataExportCancelResponse; +use OnlyFansAPI\DataExports\DataExportCreateParams; +use OnlyFansAPI\DataExports\DataExportCreateParams\FileType; +use OnlyFansAPI\DataExports\DataExportCreateParams\Type; +use OnlyFansAPI\DataExports\DataExportGetResponse; +use OnlyFansAPI\DataExports\DataExportListParams; +use OnlyFansAPI\DataExports\DataExportListParams\Status; +use OnlyFansAPI\DataExports\DataExportListResponse; +use OnlyFansAPI\DataExports\DataExportNewResponse; +use OnlyFansAPI\DataExports\DataExportRetrieveParams; +use OnlyFansAPI\DataExports\DataExportRetryResponse; +use OnlyFansAPI\DataExports\DataExportStartResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\DataExportsRawContract; /** * APIs for managing data exports. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class DataExportsRawService implements DataExportsRawContract { diff --git a/src/Services/DataExportsService.php b/src/Services/DataExportsService.php index 9a97dfa1..589e3253 100644 --- a/src/Services/DataExportsService.php +++ b/src/Services/DataExportsService.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\DataExports\DataExportCancelResponse; -use Onlyfansapi\DataExports\DataExportCreateParams\FileType; -use Onlyfansapi\DataExports\DataExportCreateParams\Type; -use Onlyfansapi\DataExports\DataExportGetResponse; -use Onlyfansapi\DataExports\DataExportListParams\Status; -use Onlyfansapi\DataExports\DataExportListResponse; -use Onlyfansapi\DataExports\DataExportNewResponse; -use Onlyfansapi\DataExports\DataExportRetryResponse; -use Onlyfansapi\DataExports\DataExportStartResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\DataExportsContract; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\DataExports\DataExportCancelResponse; +use OnlyFansAPI\DataExports\DataExportCreateParams\FileType; +use OnlyFansAPI\DataExports\DataExportCreateParams\Type; +use OnlyFansAPI\DataExports\DataExportGetResponse; +use OnlyFansAPI\DataExports\DataExportListParams\Status; +use OnlyFansAPI\DataExports\DataExportListResponse; +use OnlyFansAPI\DataExports\DataExportNewResponse; +use OnlyFansAPI\DataExports\DataExportRetryResponse; +use OnlyFansAPI\DataExports\DataExportStartResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\DataExportsContract; /** * APIs for managing data exports. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class DataExportsService implements DataExportsContract { @@ -45,13 +45,13 @@ public function __construct(private Client $client) * Create a new data export request. This will calculate the required credits and prepare the export for starting. * * @param string $endDate the end date for the export (ISO 8601 format) - * @param FileType|value-of $fileType The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + * @param FileType|value-of $fileType The output file format. Supported formats vary by export type: `csv` or `xlsx` for transactions, chat_messages, fansly_chat_messages, trial_links, tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` for media_vault. * @param string $startDate the start date for the export (ISO 8601 format) - * @param Type|value-of $type The type of data to export - * @param list $accountIDs Array of account prefixed IDs to export data from. Not required for `public_profiles` type. + * @param Type|value-of $type The type of data to export. Use `fansly_chat_messages` to export Fansly chat messages (all other types are OnlyFans). `profile_visitors` returns one row per account per day, scraped one day at a time so the daily numbers are not aggregated away by OnlyFans. + * @param list $accountIDs Array of account prefixed IDs to export data from. Not required for `public_profiles` type. For `fansly_chat_messages`, pass Fansly account prefixed IDs (`fansly_acct_...`); all other types take OnlyFans account IDs. * @param bool $autoStart when true, automatically starts the export after creation * @param list $exportColumns Array of column names to include in the export (optional, defaults to all columns for the export type) - * @param array $options Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). + * @param array $options Type-specific export options. For `chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric fan/chat IDs; filters output and can drastically reduce totals). For `fansly_chat_messages`: `maxMessages` (required per account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), `chatIds` (optional array of Fansly group ID strings; filters output and can drastically reduce totals). For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, `latest`). For `followings`: `type` (required, one of: `all`, `active`, `expired`). For `public_profiles`: `query` (optional, full-text search), `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), `maxResults` (optional, limit results). * @param RequestOpts|null $requestOptions * * @throws APIException @@ -121,7 +121,7 @@ public function retrieve( * @param int $page Page number for pagination. Default `1` * @param int $perPage Number of results per page. Default `15`, max `100` * @param Status|value-of $status Filter by status - * @param \Onlyfansapi\DataExports\DataExportListParams\Type|value-of<\Onlyfansapi\DataExports\DataExportListParams\Type> $type Filter by export type + * @param \OnlyFansAPI\DataExports\DataExportListParams\Type|value-of<\OnlyFansAPI\DataExports\DataExportListParams\Type> $type Filter by export type * @param RequestOpts|null $requestOptions * * @throws APIException @@ -131,7 +131,7 @@ public function list( ?int $page = null, ?int $perPage = null, Status|string|null $status = null, - \Onlyfansapi\DataExports\DataExportListParams\Type|string|null $type = null, + \OnlyFansAPI\DataExports\DataExportListParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): DataExportListResponse { $params = Util::removeNulls( diff --git a/src/Services/Engagement/Messages/DirectMessagesRawService.php b/src/Services/Engagement/Messages/DirectMessagesRawService.php index f2d7b1de..c568426f 100644 --- a/src/Services/Engagement/Messages/DirectMessagesRawService.php +++ b/src/Services/Engagement/Messages/DirectMessagesRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Engagement\Messages; +namespace OnlyFansAPI\Services\Engagement\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartParams; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListParams; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Engagement\Messages\DirectMessagesRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartParams; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListParams; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Engagement\Messages\DirectMessagesRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class DirectMessagesRawService implements DirectMessagesRawContract { diff --git a/src/Services/Engagement/Messages/DirectMessagesService.php b/src/Services/Engagement/Messages/DirectMessagesService.php index 1ef572e9..7e577240 100644 --- a/src/Services/Engagement/Messages/DirectMessagesService.php +++ b/src/Services/Engagement/Messages/DirectMessagesService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Engagement\Messages; +namespace OnlyFansAPI\Services\Engagement\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Engagement\Messages\DirectMessagesContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Engagement\Messages\DirectMessagesContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class DirectMessagesService implements DirectMessagesContract { @@ -36,7 +36,7 @@ public function __construct(private Client $client) * List sent direct messages with engagement stats (sent, viewed, purchased, etc.). * * @param string $account The Account ID - * @param string $endDate The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * @param string $endDate The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. * @param int $limit Number of messages to return (default = 10) * @param int $offset optional offset for manual pagination * @param string $query optionally, filter by message text @@ -76,7 +76,7 @@ public function list( * Get engagement chart metrics for direct messages: sent count and purchase amount over time. * * @param string $account The Account ID - * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. * @param string $startDate start of the chart window in `Y-m-d H:i:s` format * @param bool $withTotal Include `total` and `delta` aggregates in the response. Defaults to `true`. * @param RequestOpts|null $requestOptions diff --git a/src/Services/Engagement/Messages/MassMessagesRawService.php b/src/Services/Engagement/Messages/MassMessagesRawService.php index 3fef1e95..ac4b30e8 100644 --- a/src/Services/Engagement/Messages/MassMessagesRawService.php +++ b/src/Services/Engagement/Messages/MassMessagesRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Engagement\Messages; +namespace OnlyFansAPI\Services\Engagement\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartParams; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListParams; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Engagement\Messages\MassMessagesRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartParams; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListParams; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Engagement\Messages\MassMessagesRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MassMessagesRawService implements MassMessagesRawContract { diff --git a/src/Services/Engagement/Messages/MassMessagesService.php b/src/Services/Engagement/Messages/MassMessagesService.php index 4ca88853..7a4a8688 100644 --- a/src/Services/Engagement/Messages/MassMessagesService.php +++ b/src/Services/Engagement/Messages/MassMessagesService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Engagement\Messages; +namespace OnlyFansAPI\Services\Engagement\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Engagement\Messages\MassMessagesContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Engagement\Messages\MassMessagesContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MassMessagesService implements MassMessagesContract { @@ -36,7 +36,7 @@ public function __construct(private Client $client) * List sent mass messages with engagement stats (sent, viewed, purchased, etc.). * * @param string $account The Account ID - * @param string $endDate The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * @param string $endDate The latest message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. * @param int $limit Number of messages to return (default = 10) * @param string $query optionally, filter by message text * @param string $startDate The earliest message to retrieve. Keep empty to get all. @@ -73,7 +73,7 @@ public function list( * Get engagement chart metrics for mass messages: sent count and purchase amount over time. * * @param string $account The Account ID - * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * @param string $endDate End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. * @param string $startDate start of the chart window in `Y-m-d H:i:s` format * @param bool $withTotal Include `total` and `delta` aggregates in the response. Defaults to `true`. * @param RequestOpts|null $requestOptions diff --git a/src/Services/Engagement/MessagesRawService.php b/src/Services/Engagement/MessagesRawService.php index 0d87594d..92e24dc9 100644 --- a/src/Services/Engagement/MessagesRawService.php +++ b/src/Services/Engagement/MessagesRawService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Engagement; +namespace OnlyFansAPI\Services\Engagement; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersParams; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageParams; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Engagement\MessagesRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersParams; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageParams; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Engagement\MessagesRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MessagesRawService implements MessagesRawContract { diff --git a/src/Services/Engagement/MessagesService.php b/src/Services/Engagement/MessagesService.php index 5598432c..f3f2bcde 100644 --- a/src/Services/Engagement/MessagesService.php +++ b/src/Services/Engagement/MessagesService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Engagement; +namespace OnlyFansAPI\Services\Engagement; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Engagement\MessagesContract; -use Onlyfansapi\Services\Engagement\Messages\DirectMessagesService; -use Onlyfansapi\Services\Engagement\Messages\MassMessagesService; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Engagement\MessagesContract; +use OnlyFansAPI\Services\Engagement\Messages\DirectMessagesService; +use OnlyFansAPI\Services\Engagement\Messages\MassMessagesService; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MessagesService implements MessagesContract { @@ -54,7 +54,7 @@ public function __construct(private Client $client) * @param int $limit Query param: Number of buyers to return (default = 10) * @param int $marker Query param: Marker for pagination * @param int $offset Query param: Offset for pagination (default = 0) - * @param string $skipUsers Query param: Optional flag for subsequent pages (example: all) + * @param string $skipUsers query param: Optional flag for subsequent pages (example: all) * @param int $skipUsersDups Query param: Skip duplicate users in results (0/1). Default = 1 * @param RequestOpts|null $requestOptions * @@ -93,7 +93,7 @@ public function getMessageBuyers( * Get the top performing message by purchases in the selected timeframe. * * @param string $account The Account ID - * @param string $endDate The end date for the period. Keep empty to retrieve until now. MUST BE DATE AFTER `startDate`. + * @param string $endDate The end date for the period. Keep empty to retrieve until now. It must be after `startDate`. * @param string $startDate The start date for the period. Keep empty to retrieve from the model start date. * @param RequestOpts|null $requestOptions * diff --git a/src/Services/EngagementRawService.php b/src/Services/EngagementRawService.php index 59c3cd9f..b48a6ba9 100644 --- a/src/Services/EngagementRawService.php +++ b/src/Services/EngagementRawService.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ServiceContracts\EngagementRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\EngagementRawContract; final class EngagementRawService implements EngagementRawContract { diff --git a/src/Services/EngagementService.php b/src/Services/EngagementService.php index 597558cf..46fce4b7 100644 --- a/src/Services/EngagementService.php +++ b/src/Services/EngagementService.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ServiceContracts\EngagementContract; -use Onlyfansapi\Services\Engagement\MessagesService; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\EngagementContract; +use OnlyFansAPI\Services\Engagement\MessagesService; final class EngagementService implements EngagementContract { diff --git a/src/Services/Fans/NotesRawService.php b/src/Services/Fans/NotesRawService.php index a99880c6..eefb73f9 100644 --- a/src/Services/Fans/NotesRawService.php +++ b/src/Services/Fans/NotesRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Fans; +namespace OnlyFansAPI\Services\Fans; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\Notes\NoteClearNotesParams; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse; -use Onlyfansapi\Fans\Notes\NoteCreateEditNotesParams; -use Onlyfansapi\Fans\Notes\NoteGetNotesParams; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Fans\NotesRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\Notes\NoteClearNotesParams; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteCreateEditNotesParams; +use OnlyFansAPI\Fans\Notes\NoteGetNotesParams; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Fans\NotesRawContract; /** * APIs for managing OnlyFans fans (subscribers). * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class NotesRawService implements NotesRawContract { diff --git a/src/Services/Fans/NotesService.php b/src/Services/Fans/NotesService.php index eed5a645..ce0aced9 100644 --- a/src/Services/Fans/NotesService.php +++ b/src/Services/Fans/NotesService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Fans; +namespace OnlyFansAPI\Services\Fans; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Fans\NotesContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Fans\NotesContract; /** * APIs for managing OnlyFans fans (subscribers). * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class NotesService implements NotesContract { diff --git a/src/Services/Fans/SummaryRawService.php b/src/Services/Fans/SummaryRawService.php index d1097bc4..989d2969 100644 --- a/src/Services/Fans/SummaryRawService.php +++ b/src/Services/Fans/SummaryRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Fans; +namespace OnlyFansAPI\Services\Fans; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Fans\Summary\SummaryGenerateSummaryParams; -use Onlyfansapi\Fans\Summary\SummaryGenerateSummaryResponse; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryParams; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Fans\SummaryRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Fans\Summary\SummaryGenerateSummaryParams; +use OnlyFansAPI\Fans\Summary\SummaryGenerateSummaryResponse; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryParams; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Fans\SummaryRawContract; /** * APIs for generating and retrieving AI-powered fan profile summaries. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SummaryRawService implements SummaryRawContract { diff --git a/src/Services/Fans/SummaryService.php b/src/Services/Fans/SummaryService.php index eb6551f5..49e42b3d 100644 --- a/src/Services/Fans/SummaryService.php +++ b/src/Services/Fans/SummaryService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Fans; +namespace OnlyFansAPI\Services\Fans; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Fans\Summary\SummaryGenerateSummaryResponse; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Fans\SummaryContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Fans\Summary\SummaryGenerateSummaryResponse; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Fans\SummaryContract; /** * APIs for generating and retrieving AI-powered fan profile summaries. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SummaryService implements SummaryContract { diff --git a/src/Services/FansRawService.php b/src/Services/FansRawService.php index 06158657..0eb7b01f 100644 --- a/src/Services/FansRawService.php +++ b/src/Services/FansRawService.php @@ -2,39 +2,39 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryParams; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse; -use Onlyfansapi\Fans\FanListActiveParams; -use Onlyfansapi\Fans\FanListActiveParams\Filter; -use Onlyfansapi\Fans\FanListActiveParams\Type; -use Onlyfansapi\Fans\FanListActiveResponse; -use Onlyfansapi\Fans\FanListAllParams; -use Onlyfansapi\Fans\FanListAllResponse; -use Onlyfansapi\Fans\FanListExpiredParams; -use Onlyfansapi\Fans\FanListExpiredResponse; -use Onlyfansapi\Fans\FanListLatestParams; -use Onlyfansapi\Fans\FanListLatestResponse; -use Onlyfansapi\Fans\FanListTopParams; -use Onlyfansapi\Fans\FanListTopParams\By; -use Onlyfansapi\Fans\FanListTopResponse; -use Onlyfansapi\Fans\FanSetCustomNameParams; -use Onlyfansapi\Fans\FanSetCustomNameResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\FansRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryParams; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse; +use OnlyFansAPI\Fans\FanListActiveParams; +use OnlyFansAPI\Fans\FanListActiveParams\Filter; +use OnlyFansAPI\Fans\FanListActiveParams\Type; +use OnlyFansAPI\Fans\FanListActiveResponse; +use OnlyFansAPI\Fans\FanListAllParams; +use OnlyFansAPI\Fans\FanListAllResponse; +use OnlyFansAPI\Fans\FanListExpiredParams; +use OnlyFansAPI\Fans\FanListExpiredResponse; +use OnlyFansAPI\Fans\FanListLatestParams; +use OnlyFansAPI\Fans\FanListLatestResponse; +use OnlyFansAPI\Fans\FanListTopParams; +use OnlyFansAPI\Fans\FanListTopParams\By; +use OnlyFansAPI\Fans\FanListTopResponse; +use OnlyFansAPI\Fans\FanSetCustomNameParams; +use OnlyFansAPI\Fans\FanSetCustomNameResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\FansRawContract; /** * APIs for managing OnlyFans fans (subscribers). * - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListActiveParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListAllParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListExpiredParams\Filter as FilterShape2 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListActiveParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListAllParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListExpiredParams\Filter as FilterShape2 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class FansRawService implements FansRawContract { @@ -81,7 +81,9 @@ public function getSubscriptionHistory( /** * @api * - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. To track progress, GET `/{account}/me` returns data.subscribersCount (the current active-subscriber count) as a total. + * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * * @param string $account The Account ID * @param array{ @@ -120,7 +122,9 @@ public function listActive( /** * @api * - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * * @param string $account The Account ID * @param array{ @@ -159,7 +163,9 @@ public function listAll( /** * @api * - * Get a paginated list of expired fans for an Account. Newest fans are first. + * Get a paginated list of expired fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * * @param string $account The Account ID * @param array{ diff --git a/src/Services/FansService.php b/src/Services/FansService.php index bb7db7ca..854a49cb 100644 --- a/src/Services/FansService.php +++ b/src/Services/FansService.php @@ -2,33 +2,33 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse; -use Onlyfansapi\Fans\FanListActiveParams\Filter; -use Onlyfansapi\Fans\FanListActiveParams\Type; -use Onlyfansapi\Fans\FanListActiveResponse; -use Onlyfansapi\Fans\FanListAllResponse; -use Onlyfansapi\Fans\FanListExpiredResponse; -use Onlyfansapi\Fans\FanListLatestResponse; -use Onlyfansapi\Fans\FanListTopParams\By; -use Onlyfansapi\Fans\FanListTopResponse; -use Onlyfansapi\Fans\FanSetCustomNameResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\FansContract; -use Onlyfansapi\Services\Fans\NotesService; -use Onlyfansapi\Services\Fans\SummaryService; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse; +use OnlyFansAPI\Fans\FanListActiveParams\Filter; +use OnlyFansAPI\Fans\FanListActiveParams\Type; +use OnlyFansAPI\Fans\FanListActiveResponse; +use OnlyFansAPI\Fans\FanListAllResponse; +use OnlyFansAPI\Fans\FanListExpiredResponse; +use OnlyFansAPI\Fans\FanListLatestResponse; +use OnlyFansAPI\Fans\FanListTopParams\By; +use OnlyFansAPI\Fans\FanListTopResponse; +use OnlyFansAPI\Fans\FanSetCustomNameResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\FansContract; +use OnlyFansAPI\Services\Fans\NotesService; +use OnlyFansAPI\Services\Fans\SummaryService; /** * APIs for managing OnlyFans fans (subscribers). * - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListActiveParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListAllParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Fans\FanListExpiredParams\Filter as FilterShape2 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListActiveParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListAllParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Fans\FanListExpiredParams\Filter as FilterShape2 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class FansService implements FansContract { @@ -84,11 +84,13 @@ public function getSubscriptionHistory( /** * @api * - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. To track progress, GET `/{account}/me` returns data.subscribersCount (the current active-subscriber count) as a total. + * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * * @param string $account The Account ID * @param Filter|FilterShape $filter - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * @param int $limit Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. * @param int $offset Number of fans to skip. Must be at least 0. * @param string|null $query search within fan name/username * @param Type|value-of $type filter by fan type @@ -124,25 +126,27 @@ public function listActive( /** * @api * - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * * @param string $account The Account ID - * @param \Onlyfansapi\Fans\FanListAllParams\Filter|FilterShape1 $filter - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * @param \OnlyFansAPI\Fans\FanListAllParams\Filter|FilterShape1 $filter + * @param int $limit Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. * @param int $offset Number of fans to skip. Must be at least 0. * @param string|null $query search within fan name/username - * @param \Onlyfansapi\Fans\FanListAllParams\Type|value-of<\Onlyfansapi\Fans\FanListAllParams\Type> $type filter by fan type + * @param \OnlyFansAPI\Fans\FanListAllParams\Type|value-of<\OnlyFansAPI\Fans\FanListAllParams\Type> $type filter by fan type * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listAll( string $account, - \Onlyfansapi\Fans\FanListAllParams\Filter|array|null $filter = null, + \OnlyFansAPI\Fans\FanListAllParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, - \Onlyfansapi\Fans\FanListAllParams\Type|string|null $type = null, + \OnlyFansAPI\Fans\FanListAllParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): FanListAllResponse { $params = Util::removeNulls( @@ -164,25 +168,27 @@ public function listAll( /** * @api * - * Get a paginated list of expired fans for an Account. Newest fans are first. + * Get a paginated list of expired fans for an Account. Newest fans are first. Paginate by following `_pagination.next_page` until it is null (`data.hasMore` is the authoritative flag). Do NOT use the page's item count to detect the last page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on a non-final page because it filters entries server-side; no fans are skipped. + * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans who have never spent), which OnlyFans itself cannot do. Those requests are answered from OnlyFansAPI's own fan index rather than proxied, so the page is limited to fans we have already indexed for this account — see `data._source` in the response. * * @param string $account The Account ID - * @param \Onlyfansapi\Fans\FanListExpiredParams\Filter|FilterShape2 $filter - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 20. + * @param \OnlyFansAPI\Fans\FanListExpiredParams\Filter|FilterShape2 $filter + * @param int $limit Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. Must be at least 1. Must not be greater than 20. * @param int $offset Number of fans to skip. Must be at least 0. * @param string|null $query search within fan name/username - * @param \Onlyfansapi\Fans\FanListExpiredParams\Type|value-of<\Onlyfansapi\Fans\FanListExpiredParams\Type> $type filter by fan type + * @param \OnlyFansAPI\Fans\FanListExpiredParams\Type|value-of<\OnlyFansAPI\Fans\FanListExpiredParams\Type> $type filter by fan type * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listExpired( string $account, - \Onlyfansapi\Fans\FanListExpiredParams\Filter|array|null $filter = null, + \OnlyFansAPI\Fans\FanListExpiredParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, - \Onlyfansapi\Fans\FanListExpiredParams\Type|string|null $type = null, + \OnlyFansAPI\Fans\FanListExpiredParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): FanListExpiredResponse { $params = Util::removeNulls( @@ -207,11 +213,11 @@ public function listExpired( * Get a paginated list fans, filterable by total, only new subscribers, or only renewals. Newest fans are first. * * @param string $account The Account ID - * @param string|null $endDate End date for filtering (required with start_date). This field is required when start_date is present. - * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 100. + * @param string|null $endDate End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. + * @param int $limit Number of fans to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Number of fans to skip. Must be at least 0. - * @param string|null $startDate Start date for filtering (required with end_date). This field is required when end_date is present. - * @param \Onlyfansapi\Fans\FanListLatestParams\Type|value-of<\Onlyfansapi\Fans\FanListLatestParams\Type>|null $type filter by type: total, renew, or new + * @param string|null $startDate Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. + * @param \OnlyFansAPI\Fans\FanListLatestParams\Type|value-of<\OnlyFansAPI\Fans\FanListLatestParams\Type>|null $type filter by type: total, renew, or new * @param RequestOpts|null $requestOptions * * @throws APIException @@ -222,7 +228,7 @@ public function listLatest( ?int $limit = null, ?int $offset = null, ?string $startDate = null, - \Onlyfansapi\Fans\FanListLatestParams\Type|string|null $type = null, + \OnlyFansAPI\Fans\FanListLatestParams\Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): FanListLatestResponse { $params = Util::removeNulls( @@ -248,8 +254,8 @@ public function listLatest( * * @param string $account The Account ID * @param By|value-of|null $by sort by: total (default), subscribes, tips, messages, post, streams - * @param string|null $endDate End date for filtering (required with start_date). This field is required when start_date is present. - * @param string|null $startDate Start date for filtering (required with end_date). This field is required when end_date is present. + * @param string|null $endDate End date for filtering (required with start_date). Must be a valid date. Must not be greater than 255 characters. + * @param string|null $startDate Start date for filtering (required with end_date). Must be a valid date. Must not be greater than 255 characters. * @param RequestOpts|null $requestOptions * * @throws APIException diff --git a/src/Services/FollowingRawService.php b/src/Services/FollowingRawService.php index 832c0aa9..767f55fd 100644 --- a/src/Services/FollowingRawService.php +++ b/src/Services/FollowingRawService.php @@ -2,28 +2,30 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Following\FollowingListActiveParams; -use Onlyfansapi\Following\FollowingListActiveParams\Filter; -use Onlyfansapi\Following\FollowingListActiveResponse; -use Onlyfansapi\Following\FollowingListAllParams; -use Onlyfansapi\Following\FollowingListAllResponse; -use Onlyfansapi\Following\FollowingListExpiredParams; -use Onlyfansapi\Following\FollowingListExpiredResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\FollowingRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Following\FollowingListActiveParams; +use OnlyFansAPI\Following\FollowingListActiveParams\Filter; +use OnlyFansAPI\Following\FollowingListActiveParams\Sort; +use OnlyFansAPI\Following\FollowingListActiveParams\SortDirection; +use OnlyFansAPI\Following\FollowingListActiveResponse; +use OnlyFansAPI\Following\FollowingListAllParams; +use OnlyFansAPI\Following\FollowingListAllResponse; +use OnlyFansAPI\Following\FollowingListExpiredParams; +use OnlyFansAPI\Following\FollowingListExpiredResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\FollowingRawContract; /** * APIs for managing OnlyFans followings (people you're subscribed to). * - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListActiveParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListAllParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListExpiredParams\Filter as FilterShape2 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListActiveParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListAllParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListExpiredParams\Filter as FilterShape2 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class FollowingRawService implements FollowingRawContract { @@ -36,11 +38,16 @@ public function __construct(private Client $client) {} /** * @api * - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. By default OnlyFans returns this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. An empty page is not the end of the list: OnlyFans applies `offset` to the whole following collection before filtering it down to the requested list, so a page can come back empty while more results follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. * * @param string $account The Account ID * @param array{ - * filter?: Filter|FilterShape, limit?: int, offset?: int, query?: string|null + * filter?: Filter|FilterShape, + * limit?: int, + * offset?: int, + * query?: string|null, + * sort?: Sort|value-of|null, + * sortDirection?: SortDirection|value-of|null, * }|FollowingListActiveParams $params * @param RequestOpts|null $requestOptions * @@ -71,7 +78,7 @@ public function listActive( /** * @api * - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. By default OnlyFans returns this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. An empty page is not the end of the list: OnlyFans applies `offset` to the whole following collection before filtering it down to the requested list, so a page can come back empty while more results follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. * * @param string $account The Account ID * @param array{ @@ -79,6 +86,8 @@ public function listActive( * limit?: int, * offset?: int, * query?: string|null, + * sort?: FollowingListAllParams\Sort|value-of|null, + * sortDirection?: FollowingListAllParams\SortDirection|value-of|null, * }|FollowingListAllParams $params * @param RequestOpts|null $requestOptions * @@ -109,7 +118,7 @@ public function listAll( /** * @api * - * Get a paginated list of expired followings for an Account. Newest followings are first. + * Get a paginated list of expired followings for an Account. This list has no order guarantee. Unlike the all and active lists, it is sorted by neither `subscribedByData.subscribeAt` nor `subscribedByData.expiredAt`. To poll for new expirations, page through the full list each cycle (`limit=50`, follow `_pagination.next_page` until it is null) and diff it against your own store using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you have already seen, as that can silently skip real expirations. An empty page is not the end of the list either: OnlyFans applies `offset` to the whole following collection and only then filters that window down to expired subscriptions, so early pages can come back empty while hundreds of expired rows still follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. Pass `sort=expire_date` (optionally with `sortDirection`) to get a deterministic order instead — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. Ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection, so prefer `sortDirection=asc` or `sort=is_expired` for expired-first results; for that reason `sort=expire_date` defaults to `asc` on this list when no `sortDirection` is given. * * @param string $account The Account ID * @param array{ @@ -117,6 +126,8 @@ public function listAll( * limit?: int, * offset?: int, * query?: string|null, + * sort?: FollowingListExpiredParams\Sort|value-of|null, + * sortDirection?: FollowingListExpiredParams\SortDirection|value-of|null, * }|FollowingListExpiredParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/FollowingService.php b/src/Services/FollowingService.php index 043f821e..ee9871d9 100644 --- a/src/Services/FollowingService.php +++ b/src/Services/FollowingService.php @@ -2,25 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Following\FollowingListActiveParams\Filter; -use Onlyfansapi\Following\FollowingListActiveResponse; -use Onlyfansapi\Following\FollowingListAllResponse; -use Onlyfansapi\Following\FollowingListExpiredResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\FollowingContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Following\FollowingListActiveParams\Filter; +use OnlyFansAPI\Following\FollowingListActiveParams\Sort; +use OnlyFansAPI\Following\FollowingListActiveParams\SortDirection; +use OnlyFansAPI\Following\FollowingListActiveResponse; +use OnlyFansAPI\Following\FollowingListAllResponse; +use OnlyFansAPI\Following\FollowingListExpiredResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\FollowingContract; /** * APIs for managing OnlyFans followings (people you're subscribed to). * - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListActiveParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListAllParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Following\FollowingListExpiredParams\Filter as FilterShape2 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListActiveParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListAllParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Following\FollowingListExpiredParams\Filter as FilterShape2 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class FollowingService implements FollowingContract { @@ -40,13 +42,15 @@ public function __construct(private Client $client) /** * @api * - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. By default OnlyFans returns this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. An empty page is not the end of the list: OnlyFans applies `offset` to the whole following collection before filtering it down to the requested list, so a page can come back empty while more results follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. * * @param string $account The Account ID * @param Filter|FilterShape $filter * @param int $limit Number of followings to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Pagination offset. Must be at least 0. * @param string|null $query search within following name/username + * @param Sort|value-of|null $sort Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * @param SortDirection|value-of|null $sortDirection Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -57,6 +61,8 @@ public function listActive( ?int $limit = null, ?int $offset = null, ?string $query = null, + Sort|string|null $sort = null, + SortDirection|string|null $sortDirection = null, RequestOptions|array|null $requestOptions = null, ): FollowingListActiveResponse { $params = Util::removeNulls( @@ -65,6 +71,8 @@ public function listActive( 'limit' => $limit, 'offset' => $offset, 'query' => $query, + 'sort' => $sort, + 'sortDirection' => $sortDirection, ], ); @@ -77,23 +85,27 @@ public function listActive( /** * @api * - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. By default OnlyFans returns this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired list does not share this order, so do not assume it applies there. Pass `sort` (optionally with `sortDirection`) to reorder the list — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. An empty page is not the end of the list: OnlyFans applies `offset` to the whole following collection before filtering it down to the requested list, so a page can come back empty while more results follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. * * @param string $account The Account ID - * @param \Onlyfansapi\Following\FollowingListAllParams\Filter|FilterShape1 $filter + * @param \OnlyFansAPI\Following\FollowingListAllParams\Filter|FilterShape1 $filter * @param int $limit Number of followings to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Pagination offset. Must be at least 0. * @param string|null $query search within following name/username + * @param \OnlyFansAPI\Following\FollowingListAllParams\Sort|value-of<\OnlyFansAPI\Following\FollowingListAllParams\Sort>|null $sort Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * @param \OnlyFansAPI\Following\FollowingListAllParams\SortDirection|value-of<\OnlyFansAPI\Following\FollowingListAllParams\SortDirection>|null $sortDirection Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listAll( string $account, - \Onlyfansapi\Following\FollowingListAllParams\Filter|array|null $filter = null, + \OnlyFansAPI\Following\FollowingListAllParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, + \OnlyFansAPI\Following\FollowingListAllParams\Sort|string|null $sort = null, + \OnlyFansAPI\Following\FollowingListAllParams\SortDirection|string|null $sortDirection = null, RequestOptions|array|null $requestOptions = null, ): FollowingListAllResponse { $params = Util::removeNulls( @@ -102,6 +114,8 @@ public function listAll( 'limit' => $limit, 'offset' => $offset, 'query' => $query, + 'sort' => $sort, + 'sortDirection' => $sortDirection, ], ); @@ -114,23 +128,27 @@ public function listAll( /** * @api * - * Get a paginated list of expired followings for an Account. Newest followings are first. + * Get a paginated list of expired followings for an Account. This list has no order guarantee. Unlike the all and active lists, it is sorted by neither `subscribedByData.subscribeAt` nor `subscribedByData.expiredAt`. To poll for new expirations, page through the full list each cycle (`limit=50`, follow `_pagination.next_page` until it is null) and diff it against your own store using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you have already seen, as that can silently skip real expirations. An empty page is not the end of the list either: OnlyFans applies `offset` to the whole following collection and only then filters that window down to expired subscriptions, so early pages can come back empty while hundreds of expired rows still follow. Keep following `_pagination.next_page` until it is `null` instead of stopping at the first empty page. Pass `sort=expire_date` (optionally with `sortDirection`) to get a deterministic order instead — see the parameter description for the caveat that OnlyFans persists the chosen order account-wide. Ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection, so prefer `sortDirection=asc` or `sort=is_expired` for expired-first results; for that reason `sort=expire_date` defaults to `asc` on this list when no `sortDirection` is given. * * @param string $account The Account ID - * @param \Onlyfansapi\Following\FollowingListExpiredParams\Filter|FilterShape2 $filter + * @param \OnlyFansAPI\Following\FollowingListExpiredParams\Filter|FilterShape2 $filter * @param int $limit Number of followings to return (1-50). Must be at least 1. Must not be greater than 50. * @param int $offset Pagination offset. Must be at least 0. * @param string|null $query search within following name/username + * @param \OnlyFansAPI\Following\FollowingListExpiredParams\Sort|value-of<\OnlyFansAPI\Following\FollowingListExpiredParams\Sort>|null $sort Order the list by `last_activity` (the followed creator's last activity), `expire_date` (subscription expiry), `subscribe_date` (subscription start) or `is_expired` (expired first — OnlyFans only offers this one on the expired list). Omit it to keep whichever order is currently stored for the account. **Note:** OnlyFans persists this order account-wide, so it also applies to later requests that omit `sort` and to the creator's own onlyfans.com UI, until it is changed again. **Expired list:** OnlyFans applies `offset` to the whole following collection and only then filters it down to expired subscriptions, so ordering by expiry descending puts the still-active subscriptions first and moves the expired rows to the tail of the collection — the first several hundred offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to get expired-first results. For that reason `sort=expire_date` on the expired list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. Whatever order you pick, an empty page is **not** the end of the list: keep following `_pagination.next_page` until it is `null` rather than stopping at the first empty page. This field is required when sortDirection is present. + * @param \OnlyFansAPI\Following\FollowingListExpiredParams\SortDirection|value-of<\OnlyFansAPI\Following\FollowingListExpiredParams\SortDirection>|null $sortDirection Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. Exception: `sort=expire_date` on the expired list defaults to `asc`, because `desc` moves the expired rows to the tail of the underlying collection and leaves the early pages empty. Passing `sortDirection` explicitly always wins. * @param RequestOpts|null $requestOptions * * @throws APIException */ public function listExpired( string $account, - \Onlyfansapi\Following\FollowingListExpiredParams\Filter|array|null $filter = null, + \OnlyFansAPI\Following\FollowingListExpiredParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, ?string $query = null, + \OnlyFansAPI\Following\FollowingListExpiredParams\Sort|string|null $sort = null, + \OnlyFansAPI\Following\FollowingListExpiredParams\SortDirection|string|null $sortDirection = null, RequestOptions|array|null $requestOptions = null, ): FollowingListExpiredResponse { $params = Util::removeNulls( @@ -139,6 +157,8 @@ public function listExpired( 'limit' => $limit, 'offset' => $offset, 'query' => $query, + 'sort' => $sort, + 'sortDirection' => $sortDirection, ], ); diff --git a/src/Services/GiphyRawService.php b/src/Services/GiphyRawService.php index e1b8c14c..ebde2771 100644 --- a/src/Services/GiphyRawService.php +++ b/src/Services/GiphyRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Giphy\GiphyListTrendingParams; -use Onlyfansapi\Giphy\GiphyListTrendingResponse; -use Onlyfansapi\Giphy\GiphySearchParams; -use Onlyfansapi\Giphy\GiphySearchResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\GiphyRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Giphy\GiphyListTrendingParams; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse; +use OnlyFansAPI\Giphy\GiphySearchParams; +use OnlyFansAPI\Giphy\GiphySearchResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\GiphyRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class GiphyRawService implements GiphyRawContract { diff --git a/src/Services/GiphyService.php b/src/Services/GiphyService.php index 8b7c965e..4fd18ad7 100644 --- a/src/Services/GiphyService.php +++ b/src/Services/GiphyService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Giphy\GiphyListTrendingResponse; -use Onlyfansapi\Giphy\GiphySearchResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\GiphyContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse; +use OnlyFansAPI\Giphy\GiphySearchResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\GiphyContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class GiphyService implements GiphyContract { diff --git a/src/Services/LinkTagsRawService.php b/src/Services/LinkTagsRawService.php index 0e236177..bbbb4ea3 100644 --- a/src/Services/LinkTagsRawService.php +++ b/src/Services/LinkTagsRawService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\LinkTags\LinkTagListParams; -use Onlyfansapi\LinkTags\LinkTagListParams\Type; -use Onlyfansapi\LinkTags\LinkTagListResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\LinkTagsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\LinkTags\LinkTagListParams; +use OnlyFansAPI\LinkTags\LinkTagListParams\Type; +use OnlyFansAPI\LinkTags\LinkTagListResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\LinkTagsRawContract; /** - * APIs for managing tags on free trial links and tracking links. + * APIs for managing tags on free trial links, tracking links, and Smart Links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class LinkTagsRawService implements LinkTagsRawContract { @@ -29,7 +29,7 @@ public function __construct(private Client $client) {} /** * @api * - * Get all existing tags that have been used on free trial links and/or tracking links for this account. This is a free endpoint. + * Get all existing tags that have been used on free trial links, tracking links, and/or Smart Links for this account. This is a free endpoint. * * @param array{type?: Type|value-of}|LinkTagListParams $params * @param RequestOpts|null $requestOptions diff --git a/src/Services/LinkTagsService.php b/src/Services/LinkTagsService.php index aeafd9a3..4785b453 100644 --- a/src/Services/LinkTagsService.php +++ b/src/Services/LinkTagsService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\LinkTags\LinkTagListParams\Type; -use Onlyfansapi\LinkTags\LinkTagListResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\LinkTagsContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\LinkTags\LinkTagListParams\Type; +use OnlyFansAPI\LinkTags\LinkTagListResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\LinkTagsContract; /** - * APIs for managing tags on free trial links and tracking links. + * APIs for managing tags on free trial links, tracking links, and Smart Links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class LinkTagsService implements LinkTagsContract { @@ -35,9 +35,9 @@ public function __construct(private Client $client) /** * @api * - * Get all existing tags that have been used on free trial links and/or tracking links for this account. This is a free endpoint. + * Get all existing tags that have been used on free trial links, tracking links, and/or Smart Links for this account. This is a free endpoint. * - * @param Type|value-of $type Filter by link type. If not provided, returns tags for both types. + * @param Type|value-of $type Filter by link type. If not provided, returns tags for all types. * @param RequestOpts|null $requestOptions * * @throws APIException diff --git a/src/Services/MassMessagingRawService.php b/src/Services/MassMessagingRawService.php index 4a4bfc7a..82b55020 100644 --- a/src/Services/MassMessagingRawService.php +++ b/src/Services/MassMessagingRawService.php @@ -2,27 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\MassMessaging\MassMessagingDeleteParams; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse; -use Onlyfansapi\MassMessaging\MassMessagingListResponse; -use Onlyfansapi\MassMessaging\MassMessagingRetrieveOverviewParams; -use Onlyfansapi\MassMessaging\MassMessagingRetrieveParams; -use Onlyfansapi\MassMessaging\MassMessagingSendParams; -use Onlyfansapi\MassMessaging\MassMessagingSendResponse; -use Onlyfansapi\MassMessaging\MassMessagingUpdateParams; -use Onlyfansapi\MassMessaging\MassMessagingUpdateResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MassMessagingRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteParams; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse; +use OnlyFansAPI\MassMessaging\MassMessagingRetrieveOverviewParams; +use OnlyFansAPI\MassMessaging\MassMessagingRetrieveParams; +use OnlyFansAPI\MassMessaging\MassMessagingSendParams; +use OnlyFansAPI\MassMessaging\MassMessagingSendResponse; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateParams; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateParams\BlockBannedWords; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\MassMessagingRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MassMessagingRawService implements MassMessagingRawContract { @@ -35,7 +36,7 @@ public function __construct(private Client $client) {} /** * @api * - * Get the content of a mass message. + * Get the content and settings of a mass message, including a message scheduled for later. * * @param string $id The ID of the message queue item. Can be retrieved from the above store and list endpoints. * @param array{account: string}|MassMessagingRetrieveParams $params @@ -69,17 +70,18 @@ public function retrieve( /** * @api * - * Update a mass message. + * Update the content, recipients, media, price, or scheduled send time of an existing mass message. * * @param string $id Path param: The ID of the message queue item. Can be retrieved from the above store and list endpoints. * @param array{ * account: string, * text: string, + * blockBannedWords?: BlockBannedWords|value-of, * giphyID?: string, * lockedText?: bool, * mediaFiles?: list, * previews?: list, - * price?: int, + * price?: float, * scheduledDate?: string, * userIDs?: list, * userLists?: list, @@ -115,7 +117,7 @@ public function update( /** * @api * - * List the pending or recently sent mass messages in the message queue. + * List pending, scheduled, and recently sent mass messages. Use an item ID to retrieve, update, reschedule, delete, or unsend the message. * * @param string $account The Account ID * @param RequestOpts|null $requestOptions @@ -214,12 +216,13 @@ public function retrieveOverview( * @param string $account The Account ID * @param array{ * text: string, + * blockBannedWords?: MassMessagingSendParams\BlockBannedWords|value-of, * excludedLists?: list, * giphyID?: string, * lockedText?: bool, * mediaFiles?: list, * previews?: list, - * price?: int, + * price?: float, * rfGuest?: string, * rfPartner?: string, * rfTag?: string, diff --git a/src/Services/MassMessagingService.php b/src/Services/MassMessagingService.php index df5d9756..36653af2 100644 --- a/src/Services/MassMessagingService.php +++ b/src/Services/MassMessagingService.php @@ -2,22 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse; -use Onlyfansapi\MassMessaging\MassMessagingListResponse; -use Onlyfansapi\MassMessaging\MassMessagingSendResponse; -use Onlyfansapi\MassMessaging\MassMessagingUpdateResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MassMessagingContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse; +use OnlyFansAPI\MassMessaging\MassMessagingSendResponse; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateParams\BlockBannedWords; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\MassMessagingContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MassMessagingService implements MassMessagingContract { @@ -37,7 +38,7 @@ public function __construct(private Client $client) /** * @api * - * Get the content of a mass message. + * Get the content and settings of a mass message, including a message scheduled for later. * * @param string $id The ID of the message queue item. Can be retrieved from the above store and list endpoints. * @param string $account The Account ID @@ -61,16 +62,17 @@ public function retrieve( /** * @api * - * Update a mass message. + * Update the content, recipients, media, price, or scheduled send time of an existing mass message. * * @param string $id Path param: The ID of the message queue item. Can be retrieved from the above store and list endpoints. * @param string $account Path param: The Account ID * @param string $text Body param: The message text content + * @param BlockBannedWords|value-of $blockBannedWords Body param: Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param string $giphyID Body param: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). * @param bool $lockedText Body param: Whether the text should be shown or hidden * @param list $mediaFiles Body param: Array of media file upload prefixed_ids, or OF media IDs (required if price is not 0). Will be hidden if `price` is provided. * @param list $previews Body param: Array of media file upload prefixed_ids, or OF media IDs (required if price is not 0). Will be shown if `price` is provided. All `previews` values must also exist in the `mediaFiles` array. - * @param int $price Body param: Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required + * @param float $price Body param: Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required * @param string $scheduledDate body param: Schedule the chat message in the future (UTC timezone) * @param list $userIDs body param: Array of user IDs that the mass message will be sent to * @param list $userLists body param: Array of user list IDs that the mass message will be sent to @@ -82,11 +84,12 @@ public function update( string $id, string $account, string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?string $scheduledDate = null, ?array $userIDs = null, ?array $userLists = null, @@ -96,6 +99,7 @@ public function update( [ 'account' => $account, 'text' => $text, + 'blockBannedWords' => $blockBannedWords, 'giphyID' => $giphyID, 'lockedText' => $lockedText, 'mediaFiles' => $mediaFiles, @@ -116,7 +120,7 @@ public function update( /** * @api * - * List the pending or recently sent mass messages in the message queue. + * List pending, scheduled, and recently sent mass messages. Use an item ID to retrieve, update, reschedule, delete, or unsend the message. * * @param string $account The Account ID * @param RequestOpts|null $requestOptions @@ -163,7 +167,7 @@ public function delete( * Get an overview of mass messages, showing the send count and view count. * * @param string $account The Account ID - * @param string $endDate The latest mass message to retrieve. Keep empty to get all. MUST BE DATE AFTER `startDate`. This is also used for pagination. + * @param string $endDate The latest mass message to retrieve. Keep empty to get all. It must be after `startDate` and is also used for pagination. * @param int $limit Number of mass messages to return (default = 10) * @param string $query optionally, find a mass message by the message text * @param string $startDate The earliest mass message to retrieve. Keep empty to get all. @@ -201,12 +205,13 @@ public function retrieveOverview( * * @param string $account The Account ID * @param string $text The message text content + * @param \OnlyFansAPI\MassMessaging\MassMessagingSendParams\BlockBannedWords|value-of<\OnlyFansAPI\MassMessaging\MassMessagingSendParams\BlockBannedWords> $blockBannedWords Screen `text` for OnlyFans banned words and block the send if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param list $excludedLists array of user list IDs that the mass message will NOT be sent to * @param string $giphyID The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). * @param bool $lockedText Whether the text should be shown or hidden * @param list $mediaFiles Direct file uploads, OFAPI `ofapi_media_` IDs, or OF vault IDs. Will be hidden if `price` is provided. * @param list $previews Direct file uploads, OFAPI `ofapi_media_` IDs, OF vault IDs, or integer indices referencing uploaded files in `mediaFiles`. Will be shown if `price` is provided. - * @param int $price Price for paid content (0 or between 3-200). In case this is not zero, **mediaFiles** is required + * @param float $price Price for paid content in USD (0 or between 3-200). In case this is not zero, **mediaFiles** is required * @param string $rfGuest Array of OnlyFans Release Form Guest IDs to tag in your mass message * @param string $rfPartner Array of OnlyFans Release Form Partners IDs to tag in your mass message * @param string $rfTag Array of OnlyFans Creator User IDs to tag in your mass message @@ -221,12 +226,13 @@ public function retrieveOverview( public function send( string $account, string $text, + \OnlyFansAPI\MassMessaging\MassMessagingSendParams\BlockBannedWords|string|null $blockBannedWords = null, ?array $excludedLists = null, ?string $giphyID = null, ?bool $lockedText = null, ?array $mediaFiles = null, ?array $previews = null, - ?int $price = null, + ?float $price = null, ?string $rfGuest = null, ?string $rfPartner = null, ?string $rfTag = null, @@ -239,6 +245,7 @@ public function send( $params = Util::removeNulls( [ 'text' => $text, + 'blockBannedWords' => $blockBannedWords, 'excludedLists' => $excludedLists, 'giphyID' => $giphyID, 'lockedText' => $lockedText, diff --git a/src/Services/MeRawService.php b/src/Services/MeRawService.php index a906c586..caefe3fb 100644 --- a/src/Services/MeRawService.php +++ b/src/Services/MeRawService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Me\MeGetModelStartDateResponse; -use Onlyfansapi\Me\MeGetResponse; -use Onlyfansapi\Me\MeGetTopPercentageResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MeRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Me\MeGetModelStartDateResponse; +use OnlyFansAPI\Me\MeGetResponse; +use OnlyFansAPI\Me\MeGetTopPercentageResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\MeRawContract; /** * Endpoints for your linked accounts. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MeRawService implements MeRawContract { diff --git a/src/Services/MeService.php b/src/Services/MeService.php index 359d9e78..9a50e31c 100644 --- a/src/Services/MeService.php +++ b/src/Services/MeService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Me\MeGetModelStartDateResponse; -use Onlyfansapi\Me\MeGetResponse; -use Onlyfansapi\Me\MeGetTopPercentageResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MeContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Me\MeGetModelStartDateResponse; +use OnlyFansAPI\Me\MeGetResponse; +use OnlyFansAPI\Me\MeGetTopPercentageResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\MeContract; /** * Endpoints for your linked accounts. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MeService implements MeContract { diff --git a/src/Services/Media/UploadsRawService.php b/src/Services/Media/UploadsRawService.php index b73ea152..c591c056 100644 --- a/src/Services/Media/UploadsRawService.php +++ b/src/Services/Media/UploadsRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media; +namespace OnlyFansAPI\Services\Media; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Uploads\UploadGetStatusParams; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember0; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember1; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember2; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember3; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\UploadsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Uploads\UploadGetStatusParams; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember0; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember1; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember2; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember3; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\UploadsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UploadsRawService implements UploadsRawContract { @@ -38,6 +38,8 @@ public function __construct(private Client $client) {} * - `completed` — Upload finished, `media` and `credits_used` are included * - `failed` — Upload failed, `error` is included * + * Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events. They carry the same fields as this endpoint and are only sent for async (`async=true`) uploads — synchronous uploads return their result directly. + * * @param string $upload the prefixed ID of the upload * @param array{account: string}|UploadGetStatusParams $params * @param RequestOpts|null $requestOptions diff --git a/src/Services/Media/UploadsService.php b/src/Services/Media/UploadsService.php index 9dc3d14b..16a8e10b 100644 --- a/src/Services/Media/UploadsService.php +++ b/src/Services/Media/UploadsService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media; +namespace OnlyFansAPI\Services\Media; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember0; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember1; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember2; -use Onlyfansapi\Media\Uploads\UploadGetStatusResponse\UnionMember3; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\UploadsContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember0; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember1; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember2; +use OnlyFansAPI\Media\Uploads\UploadGetStatusResponse\UnionMember3; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\UploadsContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UploadsService implements UploadsContract { @@ -43,6 +43,8 @@ public function __construct(private Client $client) * - `completed` — Upload finished, `media` and `credits_used` are included * - `failed` — Upload failed, `error` is included * + * Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events. They carry the same fields as this endpoint and are only sent for async (`async=true`) uploads — synchronous uploads return their result directly. + * * @param string $upload the prefixed ID of the upload * @param string $account The Account ID * @param RequestOpts|null $requestOptions diff --git a/src/Services/Media/Vault/Lists/MediaRawService.php b/src/Services/Media/Vault/Lists/MediaRawService.php index ec6c0d20..d6ae50d5 100644 --- a/src/Services/Media/Vault/Lists/MediaRawService.php +++ b/src/Services/Media/Vault/Lists/MediaRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media\Vault\Lists; +namespace OnlyFansAPI\Services\Media\Vault\Lists; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddParams; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveParams; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\Vault\Lists\MediaRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddParams; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveParams; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\Vault\Lists\MediaRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MediaRawService implements MediaRawContract { diff --git a/src/Services/Media/Vault/Lists/MediaService.php b/src/Services/Media/Vault/Lists/MediaService.php index 5b784fc8..58223714 100644 --- a/src/Services/Media/Vault/Lists/MediaService.php +++ b/src/Services/Media/Vault/Lists/MediaService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media\Vault\Lists; +namespace OnlyFansAPI\Services\Media\Vault\Lists; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\Vault\Lists\MediaContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\Vault\Lists\MediaContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MediaService implements MediaContract { diff --git a/src/Services/Media/Vault/ListsRawService.php b/src/Services/Media/Vault/ListsRawService.php index d7795734..871d7669 100644 --- a/src/Services/Media/Vault/ListsRawService.php +++ b/src/Services/Media/Vault/ListsRawService.php @@ -2,26 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media\Vault; +namespace OnlyFansAPI\Services\Media\Vault; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Media\Vault\Lists\ListCreateParams; -use Onlyfansapi\Media\Vault\Lists\ListDeleteParams; -use Onlyfansapi\Media\Vault\Lists\ListDeleteResponse; -use Onlyfansapi\Media\Vault\Lists\ListGetResponse; -use Onlyfansapi\Media\Vault\Lists\ListListParams; -use Onlyfansapi\Media\Vault\Lists\ListListResponse; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse; -use Onlyfansapi\Media\Vault\Lists\ListRetrieveParams; -use Onlyfansapi\Media\Vault\Lists\ListUpdateParams; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\Vault\ListsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Media\Vault\Lists\ListCreateParams; +use OnlyFansAPI\Media\Vault\Lists\ListDeleteParams; +use OnlyFansAPI\Media\Vault\Lists\ListDeleteResponse; +use OnlyFansAPI\Media\Vault\Lists\ListGetResponse; +use OnlyFansAPI\Media\Vault\Lists\ListListParams; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember1; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse; +use OnlyFansAPI\Media\Vault\Lists\ListRetrieveParams; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateParams; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\Vault\ListsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ListsRawService implements ListsRawContract { @@ -103,8 +105,8 @@ public function retrieve( * * Rename a Vault list. * - * @param string $listID The ID of the list - * @param array{account: string}|ListUpdateParams $params + * @param string $listID Path param: The ID of the list + * @param array{account: string, name: string}|ListUpdateParams $params * @param RequestOpts|null $requestOptions * * @return BaseResponse @@ -127,6 +129,7 @@ public function update( return $this->client->request( method: 'put', path: ['api/%1$s/media/vault/lists/%2$s', $account, $listID], + body: (object) array_diff_key($parsed, array_flip(['account'])), options: $options, convert: ListUpdateResponse::class, ); @@ -137,11 +140,24 @@ public function update( * * List your Vault lists (categories). * + * Every response carries an `ETag` computed over the `data` payload. Send it back as `If-None-Match` on your next + * call and you will get a `304 Not Modified` with an empty body when nothing changed, so you can keep serving your + * cached copy instead of re-parsing the full list. Credits are debited either way — we still have to ask OnlyFans + * for the current state to know whether it changed. + * + * The `ETag` covers `data` only, never `_meta` — your credits balance changes on every call, so including it would + * mean the `ETag` never matches. Because a `304` has no body, it also has no `_meta`: read the current credits and + * rate-limit counters from the `X-OFAPI-Credits-Used`, `X-OFAPI-Credits-Balance`, `X-Rate-Limit-Limit-Minute` and + * `X-Rate-Limit-Remaining-Minute` response headers, which are sent on `304` responses too. The `_meta` inside a + * body you cached earlier is stale by definition. + * * @param string $account The Account ID - * @param array{limit?: int, offset?: int, query?: string}|ListListParams $params + * @param array{ + * lightweight?: bool, limit?: int, offset?: int, query?: string + * }|ListListParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse + * @return BaseResponse * * @throws APIException */ diff --git a/src/Services/Media/Vault/ListsService.php b/src/Services/Media/Vault/ListsService.php index 0fa84651..50d7590e 100644 --- a/src/Services/Media/Vault/ListsService.php +++ b/src/Services/Media/Vault/ListsService.php @@ -2,22 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media\Vault; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\Vault\Lists\ListDeleteResponse; -use Onlyfansapi\Media\Vault\Lists\ListGetResponse; -use Onlyfansapi\Media\Vault\Lists\ListListResponse; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\Vault\ListsContract; -use Onlyfansapi\Services\Media\Vault\Lists\MediaService; +namespace OnlyFansAPI\Services\Media\Vault; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\Vault\Lists\ListDeleteResponse; +use OnlyFansAPI\Media\Vault\Lists\ListGetResponse; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember0; +use OnlyFansAPI\Media\Vault\Lists\ListListResponse\UnionMember1; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\Vault\ListsContract; +use OnlyFansAPI\Services\Media\Vault\Lists\MediaService; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ListsService implements ListsContract { @@ -93,8 +94,9 @@ public function retrieve( * * Rename a Vault list. * - * @param string $listID The ID of the list - * @param string $account The Account ID + * @param string $listID Path param: The ID of the list + * @param string $account Path param: The Account ID + * @param string $name Body param: The new name for the vault list. Must not be greater than 255 characters. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -102,9 +104,10 @@ public function retrieve( public function update( string $listID, string $account, + string $name, RequestOptions|array|null $requestOptions = null, ): ListUpdateResponse { - $params = Util::removeNulls(['account' => $account]); + $params = Util::removeNulls(['account' => $account, 'name' => $name]); // @phpstan-ignore-next-line argument.type $response = $this->raw->update($listID, params: $params, requestOptions: $requestOptions); @@ -117,7 +120,19 @@ public function update( * * List your Vault lists (categories). * + * Every response carries an `ETag` computed over the `data` payload. Send it back as `If-None-Match` on your next + * call and you will get a `304 Not Modified` with an empty body when nothing changed, so you can keep serving your + * cached copy instead of re-parsing the full list. Credits are debited either way — we still have to ask OnlyFans + * for the current state to know whether it changed. + * + * The `ETag` covers `data` only, never `_meta` — your credits balance changes on every call, so including it would + * mean the `ETag` never matches. Because a `304` has no body, it also has no `_meta`: read the current credits and + * rate-limit counters from the `X-OFAPI-Credits-Used`, `X-OFAPI-Credits-Balance`, `X-Rate-Limit-Limit-Minute` and + * `X-Rate-Limit-Remaining-Minute` response headers, which are sent on `304` responses too. The `_meta` inside a + * body you cached earlier is stale by definition. + * * @param string $account The Account ID + * @param bool $lightweight Set to `true` to return only `id`, `name`, `type`, `canUpdate` and a rolled-up `mediaCount` per list, dropping the `medias` previews. Much smaller payload — ideal for rendering a folder picker. Default: `false` * @param int $limit Number of media to return per page. Default: `24` * @param int $offset The offset used for pagination. Default `0` * @param string $query optionally, find a list by its name @@ -127,13 +142,19 @@ public function update( */ public function list( string $account, + ?bool $lightweight = null, ?int $limit = null, ?int $offset = null, ?string $query = null, RequestOptions|array|null $requestOptions = null, - ): ListListResponse { + ): UnionMember0|UnionMember1 { $params = Util::removeNulls( - ['limit' => $limit, 'offset' => $offset, 'query' => $query] + [ + 'lightweight' => $lightweight, + 'limit' => $limit, + 'offset' => $offset, + 'query' => $query, + ], ); // @phpstan-ignore-next-line argument.type diff --git a/src/Services/Media/VaultRawService.php b/src/Services/Media/VaultRawService.php index ce00b94c..7cbae255 100644 --- a/src/Services/Media/VaultRawService.php +++ b/src/Services/Media/VaultRawService.php @@ -2,28 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media; +namespace OnlyFansAPI\Services\Media; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\FileParam; -use Onlyfansapi\Media\Vault\VaultDeleteParams; -use Onlyfansapi\Media\Vault\VaultDeleteResponse; -use Onlyfansapi\Media\Vault\VaultGetResponse; -use Onlyfansapi\Media\Vault\VaultListParams; -use Onlyfansapi\Media\Vault\VaultListParams\Field; -use Onlyfansapi\Media\Vault\VaultListParams\Sort; -use Onlyfansapi\Media\Vault\VaultListParams\Type; -use Onlyfansapi\Media\Vault\VaultListResponse; -use Onlyfansapi\Media\Vault\VaultRetrieveParams; -use Onlyfansapi\Media\Vault\VaultUploadParams; -use Onlyfansapi\Media\Vault\VaultUploadResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\VaultRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\FileParam; +use OnlyFansAPI\Media\Vault\VaultDeleteParams; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse; +use OnlyFansAPI\Media\Vault\VaultGetResponse; +use OnlyFansAPI\Media\Vault\VaultListParams; +use OnlyFansAPI\Media\Vault\VaultListParams\Field; +use OnlyFansAPI\Media\Vault\VaultListParams\Sort; +use OnlyFansAPI\Media\Vault\VaultListParams\Type; +use OnlyFansAPI\Media\Vault\VaultListResponse; +use OnlyFansAPI\Media\Vault\VaultRetrieveParams; +use OnlyFansAPI\Media\Vault\VaultUploadParams; +use OnlyFansAPI\Media\Vault\VaultUploadResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\VaultRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class VaultRawService implements VaultRawContract { diff --git a/src/Services/Media/VaultService.php b/src/Services/Media/VaultService.php index 8b40f25c..92817377 100644 --- a/src/Services/Media/VaultService.php +++ b/src/Services/Media/VaultService.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Media; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\FileParam; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\Vault\VaultDeleteResponse; -use Onlyfansapi\Media\Vault\VaultGetResponse; -use Onlyfansapi\Media\Vault\VaultListParams\Field; -use Onlyfansapi\Media\Vault\VaultListParams\Sort; -use Onlyfansapi\Media\Vault\VaultListParams\Type; -use Onlyfansapi\Media\Vault\VaultListResponse; -use Onlyfansapi\Media\Vault\VaultUploadResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Media\VaultContract; -use Onlyfansapi\Services\Media\Vault\ListsService; +namespace OnlyFansAPI\Services\Media; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\FileParam; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse; +use OnlyFansAPI\Media\Vault\VaultGetResponse; +use OnlyFansAPI\Media\Vault\VaultListParams\Field; +use OnlyFansAPI\Media\Vault\VaultListParams\Sort; +use OnlyFansAPI\Media\Vault\VaultListParams\Type; +use OnlyFansAPI\Media\Vault\VaultListResponse; +use OnlyFansAPI\Media\Vault\VaultUploadResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Media\VaultContract; +use OnlyFansAPI\Services\Media\Vault\ListsService; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class VaultService implements VaultContract { @@ -143,7 +143,7 @@ public function delete( * Upload a media file directly to your vault. * * @param string $account The Account ID - * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. + * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events — they only fire for async uploads. * @param string|FileParam $file The file to upload. Required if `file_url` is not provided. Maximum file size: 100 MB (limited by Cloudflare). * @param string $fileURL A URL to download the file from. Required if `file` is not provided. Maximum file size depends on the subscription configuration. * @param RequestOpts|null $requestOptions diff --git a/src/Services/MediaRawService.php b/src/Services/MediaRawService.php index 745b16cd..3734c5f0 100644 --- a/src/Services/MediaRawService.php +++ b/src/Services/MediaRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\FileParam; -use Onlyfansapi\Media\MediaDownloadParams; -use Onlyfansapi\Media\MediaScrapeParams; -use Onlyfansapi\Media\MediaScrapeParams\FileType; -use Onlyfansapi\Media\MediaScrapeResponse; -use Onlyfansapi\Media\MediaUploadParams; -use Onlyfansapi\Media\MediaUploadParams\Type; -use Onlyfansapi\Media\MediaUploadResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MediaRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\FileParam; +use OnlyFansAPI\Media\MediaDownloadParams; +use OnlyFansAPI\Media\MediaScrapeParams; +use OnlyFansAPI\Media\MediaScrapeParams\FileType; +use OnlyFansAPI\Media\MediaScrapeResponse; +use OnlyFansAPI\Media\MediaUploadParams; +use OnlyFansAPI\Media\MediaUploadParams\Type; +use OnlyFansAPI\Media\MediaUploadResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\MediaRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MediaRawService implements MediaRawContract { @@ -32,13 +32,13 @@ public function __construct(private Client $client) {} /** * @api * - * Downloads a file directly from a `https://cdn*.onlyfans.com/*` URL. When the file is already cached on our CDN, this endpoint returns a `302` redirect to a `https://cdn.fansapi.com/*` URL. Most HTTP clients follow redirects automatically (`curl` requires `-L`). Otherwise, the file is streamed through our proxies and queued for caching. + * Downloads a file directly from a `https://cdn*.onlyfans.com/*` URL. When the file is already cached on our CDN, this endpoint returns a `302` redirect to a `https://cdn.fansapi.com/*` URL. Most HTTP clients follow redirects automatically (`curl` requires `-L`). Otherwise, the file is redirected to `dl.fansapi.com`, which streams it through the account proxy and reports billing back to the API. * * @param string $cdnURL Optional parameter. The CDN URL to scrape. **Keep in mind that these URLs expire in approx. 20 minutes.** So for example, if you fetched Media Vault Items at 01:00pm, the URLs will expire at around 01:20pm * @param array{account: string}|MediaDownloadParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse + * @return BaseResponse * * @throws APIException */ @@ -58,9 +58,8 @@ public function download( return $this->client->request( method: 'get', path: ['api/%1$s/media/download/%2$s', $account, $cdnURL], - headers: ['Accept' => 'text/plain'], options: $options, - convert: 'string', + convert: null, ); } diff --git a/src/Services/MediaService.php b/src/Services/MediaService.php index 743ea0ef..74d92d9d 100644 --- a/src/Services/MediaService.php +++ b/src/Services/MediaService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\FileParam; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\MediaScrapeParams\FileType; -use Onlyfansapi\Media\MediaScrapeResponse; -use Onlyfansapi\Media\MediaUploadParams\Type; -use Onlyfansapi\Media\MediaUploadResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MediaContract; -use Onlyfansapi\Services\Media\UploadsService; -use Onlyfansapi\Services\Media\VaultService; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\FileParam; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\MediaScrapeParams\FileType; +use OnlyFansAPI\Media\MediaScrapeResponse; +use OnlyFansAPI\Media\MediaUploadParams\Type; +use OnlyFansAPI\Media\MediaUploadResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\MediaContract; +use OnlyFansAPI\Services\Media\UploadsService; +use OnlyFansAPI\Services\Media\VaultService; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MediaService implements MediaContract { @@ -50,7 +50,7 @@ public function __construct(private Client $client) /** * @api * - * Downloads a file directly from a `https://cdn*.onlyfans.com/*` URL. When the file is already cached on our CDN, this endpoint returns a `302` redirect to a `https://cdn.fansapi.com/*` URL. Most HTTP clients follow redirects automatically (`curl` requires `-L`). Otherwise, the file is streamed through our proxies and queued for caching. + * Downloads a file directly from a `https://cdn*.onlyfans.com/*` URL. When the file is already cached on our CDN, this endpoint returns a `302` redirect to a `https://cdn.fansapi.com/*` URL. Most HTTP clients follow redirects automatically (`curl` requires `-L`). Otherwise, the file is redirected to `dl.fansapi.com`, which streams it through the account proxy and reports billing back to the API. * * @param string $cdnURL Optional parameter. The CDN URL to scrape. **Keep in mind that these URLs expire in approx. 20 minutes.** So for example, if you fetched Media Vault Items at 01:00pm, the URLs will expire at around 01:20pm * @param string $account The Account ID @@ -62,7 +62,7 @@ public function download( string $cdnURL, string $account, RequestOptions|array|null $requestOptions = null, - ): string { + ): mixed { $params = Util::removeNulls(['account' => $account]); // @phpstan-ignore-next-line argument.type @@ -117,7 +117,7 @@ public function scrape( * The response can be used **only once** to manually include media in a post or message. This endpoint does not upload media to the Vault. You must provide either `file` or `file_url`. * * @param string $account The Account ID - * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. + * @param bool $async Set to `true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files. Instead of polling, you can subscribe to the `media_uploads.completed` and `media_uploads.failed` webhook events — they only fire for async uploads. * @param string|FileParam $file The file to upload. Required if `file_url` is not provided. Maximum file size: 100 MB (limited by Cloudflare). * @param string $fileURL A URL to download the file from. Required if `file` is not provided. Maximum file size depends on the subscription configuration. * @param Type|value-of $type set to `avatar` if this file will be used as a profile picture, `header` for a profile banner, or keep empty if this file will be for anything else diff --git a/src/Services/MessagesRawService.php b/src/Services/MessagesRawService.php index a7a0d9f9..711ff73e 100644 --- a/src/Services/MessagesRawService.php +++ b/src/Services/MessagesRawService.php @@ -2,19 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Messages\MessageAttachTagsParams; -use Onlyfansapi\Messages\MessageAttachTagsResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MessagesRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\MessagesRawContract; -/** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions - */ final class MessagesRawService implements MessagesRawContract { // @phpstan-ignore-next-line @@ -22,41 +14,4 @@ final class MessagesRawService implements MessagesRawContract * @internal */ public function __construct(private Client $client) {} - - /** - * @api - * - * Attach Tags (Release Forms) to a message that has already been sent. Please note, that this is a "sync" operation - for example, if you provide empty `rfTag` it will remove all existing tags already attached to the message. - * - * @param string $messageID Path param: The ID of the message to attach the release forms to. This can be ONLY a message sent by the creator. - * @param array{ - * account: string, rfGuest?: string, rfPartner?: string, rfTag?: string - * }|MessageAttachTagsParams $params - * @param RequestOpts|null $requestOptions - * - * @return BaseResponse - * - * @throws APIException - */ - public function attachTags( - string $messageID, - array|MessageAttachTagsParams $params, - RequestOptions|array|null $requestOptions = null, - ): BaseResponse { - [$parsed, $options] = MessageAttachTagsParams::parseRequest( - $params, - $requestOptions, - ); - $account = $parsed['account']; - unset($parsed['account']); - - // @phpstan-ignore-next-line return.type - return $this->client->request( - method: 'post', - path: ['api/%1$s/messages/%2$s/attach-tags', $account, $messageID], - body: (object) array_diff_key($parsed, array_flip(['account'])), - options: $options, - convert: MessageAttachTagsResponse::class, - ); - } } diff --git a/src/Services/MessagesService.php b/src/Services/MessagesService.php index ec163aa6..7b612b67 100644 --- a/src/Services/MessagesService.php +++ b/src/Services/MessagesService.php @@ -2,18 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Messages\MessageAttachTagsResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\MessagesContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\MessagesContract; -/** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions - */ final class MessagesService implements MessagesContract { /** @@ -21,6 +14,7 @@ final class MessagesService implements MessagesContract */ public MessagesRawService $raw; + // @phpstan-ignore-next-line /** * @internal */ @@ -28,41 +22,4 @@ public function __construct(private Client $client) { $this->raw = new MessagesRawService($client); } - - /** - * @api - * - * Attach Tags (Release Forms) to a message that has already been sent. Please note, that this is a "sync" operation - for example, if you provide empty `rfTag` it will remove all existing tags already attached to the message. - * - * @param string $messageID Path param: The ID of the message to attach the release forms to. This can be ONLY a message sent by the creator. - * @param string $account Path param: The Account ID - * @param string $rfGuest Body param: Array of OnlyFans Release Form Guest IDs to tag in your message - * @param string $rfPartner Body param: Array of OnlyFans Release Form Partners IDs to tag in your message - * @param string $rfTag Body param: Array of OnlyFans Creator User IDs to tag in your message - * @param RequestOpts|null $requestOptions - * - * @throws APIException - */ - public function attachTags( - string $messageID, - string $account, - ?string $rfGuest = null, - ?string $rfPartner = null, - ?string $rfTag = null, - RequestOptions|array|null $requestOptions = null, - ): MessageAttachTagsResponse { - $params = Util::removeNulls( - [ - 'account' => $account, - 'rfGuest' => $rfGuest, - 'rfPartner' => $rfPartner, - 'rfTag' => $rfTag, - ], - ); - - // @phpstan-ignore-next-line argument.type - $response = $this->raw->attachTags($messageID, params: $params, requestOptions: $requestOptions); - - return $response->parse(); - } } diff --git a/src/Services/Notifications/TabsOrderRawService.php b/src/Services/Notifications/TabsOrderRawService.php index 76c8f669..dee81193 100644 --- a/src/Services/Notifications/TabsOrderRawService.php +++ b/src/Services/Notifications/TabsOrderRawService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Notifications; +namespace OnlyFansAPI\Services\Notifications; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateParams; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Notifications\TabsOrderRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateParams; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Notifications\TabsOrderRawContract; /** * Endpoints for managingr account notifications. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TabsOrderRawService implements TabsOrderRawContract { diff --git a/src/Services/Notifications/TabsOrderService.php b/src/Services/Notifications/TabsOrderService.php index c9c47de8..7a185d5c 100644 --- a/src/Services/Notifications/TabsOrderService.php +++ b/src/Services/Notifications/TabsOrderService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Notifications; +namespace OnlyFansAPI\Services\Notifications; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Notifications\TabsOrderContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Notifications\TabsOrderContract; /** * Endpoints for managingr account notifications. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TabsOrderService implements TabsOrderContract { diff --git a/src/Services/NotificationsRawService.php b/src/Services/NotificationsRawService.php index ca6bf8e4..866eeb13 100644 --- a/src/Services/NotificationsRawService.php +++ b/src/Services/NotificationsRawService.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Notifications\NotificationGetCountsResponse; -use Onlyfansapi\Notifications\NotificationListParams; -use Onlyfansapi\Notifications\NotificationListParams\SkipUsers; -use Onlyfansapi\Notifications\NotificationListParams\Type; -use Onlyfansapi\Notifications\NotificationListResponse; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse; -use Onlyfansapi\Notifications\NotificationSearchUsersParams; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\NotificationsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse; +use OnlyFansAPI\Notifications\NotificationListParams; +use OnlyFansAPI\Notifications\NotificationListParams\SkipUsers; +use OnlyFansAPI\Notifications\NotificationListParams\Type; +use OnlyFansAPI\Notifications\NotificationListResponse; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse; +use OnlyFansAPI\Notifications\NotificationSearchUsersParams; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\NotificationsRawContract; /** * Endpoints for managingr account notifications. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class NotificationsRawService implements NotificationsRawContract { diff --git a/src/Services/NotificationsService.php b/src/Services/NotificationsService.php index b84612b5..2a459cca 100644 --- a/src/Services/NotificationsService.php +++ b/src/Services/NotificationsService.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Notifications\NotificationGetCountsResponse; -use Onlyfansapi\Notifications\NotificationListParams\SkipUsers; -use Onlyfansapi\Notifications\NotificationListParams\Type; -use Onlyfansapi\Notifications\NotificationListResponse; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\NotificationsContract; -use Onlyfansapi\Services\Notifications\TabsOrderService; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse; +use OnlyFansAPI\Notifications\NotificationListParams\SkipUsers; +use OnlyFansAPI\Notifications\NotificationListParams\Type; +use OnlyFansAPI\Notifications\NotificationListResponse; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\NotificationsContract; +use OnlyFansAPI\Services\Notifications\TabsOrderService; /** * Endpoints for managingr account notifications. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class NotificationsService implements NotificationsContract { @@ -51,7 +51,7 @@ public function __construct(private Client $client) * @param string $account The Account ID * @param int $fromID Used for pagination. This value should be the ID of the previous response's last notification. * @param int $limit The number of notifications. Default `10` - * @param SkipUsers|value-of $skipUsers Whether to skip user details. Default `all` + * @param SkipUsers|value-of $skipUsers Whether to skip user details. Defaults to `all`. * @param Type|value-of $type Filter notifications by a specific type * @param RequestOpts|null $requestOptions * diff --git a/src/Services/PayoutsRawService.php b/src/Services/PayoutsRawService.php index 9ec54bb8..85b470f9 100644 --- a/src/Services/PayoutsRawService.php +++ b/src/Services/PayoutsRawService.php @@ -2,29 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse; -use Onlyfansapi\Payouts\PayoutListRequestsParams; -use Onlyfansapi\Payouts\PayoutListRequestsResponse; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalParams; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; -use Onlyfansapi\Payouts\PayoutRetrieveEarningStatisticsParams; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyParams; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyParams\Frequency; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\PayoutsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse; +use OnlyFansAPI\Payouts\PayoutListRequestsParams; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalParams; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; +use OnlyFansAPI\Payouts\PayoutRetrieveEarningStatisticsParams; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyParams; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyParams\Frequency; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\PayoutsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PayoutsRawService implements PayoutsRawContract { diff --git a/src/Services/PayoutsService.php b/src/Services/PayoutsService.php index dc33db80..d35eaa31 100644 --- a/src/Services/PayoutsService.php +++ b/src/Services/PayoutsService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse; -use Onlyfansapi\Payouts\PayoutListRequestsResponse; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; -use Onlyfansapi\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyParams\Frequency; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\PayoutsContract; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember0; +use OnlyFansAPI\Payouts\PayoutRequestManualWithdrawalResponse\UnionMember1; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyParams\Frequency; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\PayoutsContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PayoutsService implements PayoutsContract { diff --git a/src/Services/Posts/CommentsRawService.php b/src/Services/Posts/CommentsRawService.php index f8ae52a6..6b780bc4 100644 --- a/src/Services/Posts/CommentsRawService.php +++ b/src/Services/Posts/CommentsRawService.php @@ -2,32 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Posts; +namespace OnlyFansAPI\Services\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\Comments\CommentCreateParams; -use Onlyfansapi\Posts\Comments\CommentDeleteParams; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse; -use Onlyfansapi\Posts\Comments\CommentLikeParams; -use Onlyfansapi\Posts\Comments\CommentLikeResponse; -use Onlyfansapi\Posts\Comments\CommentListParams; -use Onlyfansapi\Posts\Comments\CommentListParams\Sort; -use Onlyfansapi\Posts\Comments\CommentListResponse; -use Onlyfansapi\Posts\Comments\CommentNewResponse; -use Onlyfansapi\Posts\Comments\CommentPinParams; -use Onlyfansapi\Posts\Comments\CommentPinResponse; -use Onlyfansapi\Posts\Comments\CommentUnlikeParams; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse; -use Onlyfansapi\Posts\Comments\CommentUnpinParams; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Posts\CommentsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\Comments\CommentCreateParams; +use OnlyFansAPI\Posts\Comments\CommentDeleteParams; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse; +use OnlyFansAPI\Posts\Comments\CommentLikeParams; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse; +use OnlyFansAPI\Posts\Comments\CommentListParams; +use OnlyFansAPI\Posts\Comments\CommentListParams\Sort; +use OnlyFansAPI\Posts\Comments\CommentListResponse; +use OnlyFansAPI\Posts\Comments\CommentNewResponse; +use OnlyFansAPI\Posts\Comments\CommentPinParams; +use OnlyFansAPI\Posts\Comments\CommentPinResponse; +use OnlyFansAPI\Posts\Comments\CommentUnlikeParams; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse; +use OnlyFansAPI\Posts\Comments\CommentUnpinParams; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Posts\CommentsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class CommentsRawService implements CommentsRawContract { diff --git a/src/Services/Posts/CommentsService.php b/src/Services/Posts/CommentsService.php index b48ea5e1..a8fd899c 100644 --- a/src/Services/Posts/CommentsService.php +++ b/src/Services/Posts/CommentsService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Posts; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse; -use Onlyfansapi\Posts\Comments\CommentLikeResponse; -use Onlyfansapi\Posts\Comments\CommentListParams\Sort; -use Onlyfansapi\Posts\Comments\CommentListResponse; -use Onlyfansapi\Posts\Comments\CommentNewResponse; -use Onlyfansapi\Posts\Comments\CommentPinResponse; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Posts\CommentsContract; +namespace OnlyFansAPI\Services\Posts; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse; +use OnlyFansAPI\Posts\Comments\CommentListParams\Sort; +use OnlyFansAPI\Posts\Comments\CommentListResponse; +use OnlyFansAPI\Posts\Comments\CommentNewResponse; +use OnlyFansAPI\Posts\Comments\CommentPinResponse; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Posts\CommentsContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class CommentsService implements CommentsContract { diff --git a/src/Services/Posts/LabelsRawService.php b/src/Services/Posts/LabelsRawService.php index 40db546c..4abce60c 100644 --- a/src/Services/Posts/LabelsRawService.php +++ b/src/Services/Posts/LabelsRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Posts; +namespace OnlyFansAPI\Services\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Posts\Labels\LabelCreateParams; -use Onlyfansapi\Posts\Labels\LabelListParams; -use Onlyfansapi\Posts\Labels\LabelListResponse; -use Onlyfansapi\Posts\Labels\LabelNewResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Posts\LabelsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Posts\Labels\LabelCreateParams; +use OnlyFansAPI\Posts\Labels\LabelListParams; +use OnlyFansAPI\Posts\Labels\LabelListResponse; +use OnlyFansAPI\Posts\Labels\LabelNewResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Posts\LabelsRawContract; /** * APIs for managing your post labels. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class LabelsRawService implements LabelsRawContract { diff --git a/src/Services/Posts/LabelsService.php b/src/Services/Posts/LabelsService.php index 6932ff4d..94749536 100644 --- a/src/Services/Posts/LabelsService.php +++ b/src/Services/Posts/LabelsService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Posts; +namespace OnlyFansAPI\Services\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\Labels\LabelListResponse; -use Onlyfansapi\Posts\Labels\LabelNewResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Posts\LabelsContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\Labels\LabelListResponse; +use OnlyFansAPI\Posts\Labels\LabelNewResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Posts\LabelsContract; /** * APIs for managing your post labels. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class LabelsService implements LabelsContract { diff --git a/src/Services/PostsRawService.php b/src/Services/PostsRawService.php index e486e65e..0ee1b4de 100644 --- a/src/Services/PostsRawService.php +++ b/src/Services/PostsRawService.php @@ -2,39 +2,40 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\PostArchiveParams; -use Onlyfansapi\Posts\PostArchiveResponse; -use Onlyfansapi\Posts\PostCreateParams; -use Onlyfansapi\Posts\PostCreateParams\VotingType; -use Onlyfansapi\Posts\PostDeleteParams; -use Onlyfansapi\Posts\PostDeleteResponse; -use Onlyfansapi\Posts\PostGetResponse; -use Onlyfansapi\Posts\PostListParams; -use Onlyfansapi\Posts\PostListParams\Order; -use Onlyfansapi\Posts\PostListParams\Sort; -use Onlyfansapi\Posts\PostListResponse; -use Onlyfansapi\Posts\PostNewResponse; -use Onlyfansapi\Posts\PostPinParams; -use Onlyfansapi\Posts\PostPinResponse; -use Onlyfansapi\Posts\PostRetrieveParams; -use Onlyfansapi\Posts\PostStatsParams; -use Onlyfansapi\Posts\PostStatsResponse; -use Onlyfansapi\Posts\PostUnarchiveParams; -use Onlyfansapi\Posts\PostUnarchiveResponse; -use Onlyfansapi\Posts\PostUpdateParams; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\PostsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\PostArchiveParams; +use OnlyFansAPI\Posts\PostArchiveResponse; +use OnlyFansAPI\Posts\PostCreateParams; +use OnlyFansAPI\Posts\PostCreateParams\BlockBannedWords; +use OnlyFansAPI\Posts\PostCreateParams\VotingType; +use OnlyFansAPI\Posts\PostDeleteParams; +use OnlyFansAPI\Posts\PostDeleteResponse; +use OnlyFansAPI\Posts\PostGetResponse; +use OnlyFansAPI\Posts\PostListParams; +use OnlyFansAPI\Posts\PostListParams\Order; +use OnlyFansAPI\Posts\PostListParams\Sort; +use OnlyFansAPI\Posts\PostListResponse; +use OnlyFansAPI\Posts\PostNewResponse; +use OnlyFansAPI\Posts\PostPinParams; +use OnlyFansAPI\Posts\PostPinResponse; +use OnlyFansAPI\Posts\PostRetrieveParams; +use OnlyFansAPI\Posts\PostStatsParams; +use OnlyFansAPI\Posts\PostStatsResponse; +use OnlyFansAPI\Posts\PostUnarchiveParams; +use OnlyFansAPI\Posts\PostUnarchiveResponse; +use OnlyFansAPI\Posts\PostUpdateParams; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\PostsRawContract; /** * APIs for managing OnlyFans posts. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PostsRawService implements PostsRawContract { @@ -52,6 +53,7 @@ public function __construct(private Client $client) {} * @param string $account The Account ID * @param array{ * text: string, + * blockBannedWords?: BlockBannedWords|value-of, * expireDays?: int, * fundRaisingTargetAmount?: int, * fundRaisingTipsPresets?: list, @@ -135,6 +137,7 @@ public function retrieve( * @param array{ * account: string, * text: string, + * blockBannedWords?: PostUpdateParams\BlockBannedWords|value-of, * expireDays?: int, * fundRaisingTargetAmount?: int, * fundRaisingTipsPresets?: list, diff --git a/src/Services/PostsService.php b/src/Services/PostsService.php index a92af03d..ab4c60ad 100644 --- a/src/Services/PostsService.php +++ b/src/Services/PostsService.php @@ -2,31 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\PostArchiveResponse; -use Onlyfansapi\Posts\PostCreateParams\VotingType; -use Onlyfansapi\Posts\PostDeleteResponse; -use Onlyfansapi\Posts\PostGetResponse; -use Onlyfansapi\Posts\PostListParams\Order; -use Onlyfansapi\Posts\PostListParams\Sort; -use Onlyfansapi\Posts\PostListResponse; -use Onlyfansapi\Posts\PostNewResponse; -use Onlyfansapi\Posts\PostPinResponse; -use Onlyfansapi\Posts\PostStatsResponse; -use Onlyfansapi\Posts\PostUnarchiveResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\PostsContract; -use Onlyfansapi\Services\Posts\CommentsService; -use Onlyfansapi\Services\Posts\LabelsService; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\PostArchiveResponse; +use OnlyFansAPI\Posts\PostCreateParams\BlockBannedWords; +use OnlyFansAPI\Posts\PostCreateParams\VotingType; +use OnlyFansAPI\Posts\PostDeleteResponse; +use OnlyFansAPI\Posts\PostGetResponse; +use OnlyFansAPI\Posts\PostListParams\Order; +use OnlyFansAPI\Posts\PostListParams\Sort; +use OnlyFansAPI\Posts\PostListResponse; +use OnlyFansAPI\Posts\PostNewResponse; +use OnlyFansAPI\Posts\PostPinResponse; +use OnlyFansAPI\Posts\PostStatsResponse; +use OnlyFansAPI\Posts\PostUnarchiveResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\PostsContract; +use OnlyFansAPI\Services\Posts\CommentsService; +use OnlyFansAPI\Services\Posts\LabelsService; /** * APIs for managing OnlyFans posts. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PostsService implements PostsContract { @@ -62,6 +63,7 @@ public function __construct(private Client $client) * * @param string $account The Account ID * @param string $text The post text content + * @param BlockBannedWords|value-of $blockBannedWords Screen `text` for OnlyFans banned words and block the post if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param int $expireDays Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. * @param int $fundRaisingTargetAmount Add a fundraising target to your post. If present, value must be at least 10. * @param list $fundRaisingTipsPresets Specify which tip amounts will be listed under the fundraising card. Required with `fundRaisingTargetAmount`, and you must provide at least 1 option. Array items cannot be higher than the `fundRaisingTargetAmount`. @@ -82,6 +84,7 @@ public function __construct(private Client $client) public function create( string $account, string $text, + BlockBannedWords|string|null $blockBannedWords = null, ?int $expireDays = null, ?int $fundRaisingTargetAmount = null, ?array $fundRaisingTipsPresets = null, @@ -100,6 +103,7 @@ public function create( $params = Util::removeNulls( [ 'text' => $text, + 'blockBannedWords' => $blockBannedWords, 'expireDays' => $expireDays, 'fundRaisingTargetAmount' => $fundRaisingTargetAmount, 'fundRaisingTipsPresets' => $fundRaisingTipsPresets, @@ -154,6 +158,7 @@ public function retrieve( * @param int $postID Path param: The ID of the post * @param string $account Path param: The Account ID * @param string $text Body param: The post text content + * @param \OnlyFansAPI\Posts\PostUpdateParams\BlockBannedWords|value-of<\OnlyFansAPI\Posts\PostUpdateParams\BlockBannedWords> $blockBannedWords Body param: Screen `text` for OnlyFans banned words and block the update if any are found (returns a 422 listing the offending words). `strict_ban` blocks all tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften only. Omit to disable screening. * @param int $expireDays Body param: Number of days after which the post will expire. Between 1 and 30 days. Keep empty for no expiration. * @param int $fundRaisingTargetAmount Body param: Add a fundraising target to your post. If present, value must be at least 10. * @param list $fundRaisingTipsPresets Body param: Specify which tip amounts will be listed under the fundraising card. Required with `fundRaisingTargetAmount`, and you must provide at least 1 option. Array items cannot be higher than the `fundRaisingTargetAmount`. @@ -166,7 +171,7 @@ public function retrieve( * @param int $votingCorrectIndex Body param: The array key of your quiz' correct answer. Required when `votingType` is "quiz". Keep in mind that arrays start at `0` * @param int $votingDue Body param: The due date (in days) of your poll/quiz. Can be 1, 3, 7 or 30 days. Can only be filled with `votingType`. * @param list $votingOptions Body param: The options of your poll/quiz. Required with `votingType`. - * @param \Onlyfansapi\Posts\PostUpdateParams\VotingType|value-of<\Onlyfansapi\Posts\PostUpdateParams\VotingType> $votingType body param: Include a poll or quiz within your post + * @param \OnlyFansAPI\Posts\PostUpdateParams\VotingType|value-of<\OnlyFansAPI\Posts\PostUpdateParams\VotingType> $votingType body param: Include a poll or quiz within your post * @param RequestOpts|null $requestOptions * * @throws APIException @@ -175,6 +180,7 @@ public function update( int $postID, string $account, string $text, + \OnlyFansAPI\Posts\PostUpdateParams\BlockBannedWords|string|null $blockBannedWords = null, ?int $expireDays = null, ?int $fundRaisingTargetAmount = null, ?array $fundRaisingTipsPresets = null, @@ -187,13 +193,14 @@ public function update( ?int $votingCorrectIndex = null, ?int $votingDue = null, ?array $votingOptions = null, - \Onlyfansapi\Posts\PostUpdateParams\VotingType|string|null $votingType = null, + \OnlyFansAPI\Posts\PostUpdateParams\VotingType|string|null $votingType = null, RequestOptions|array|null $requestOptions = null, ): string { $params = Util::removeNulls( [ 'account' => $account, 'text' => $text, + 'blockBannedWords' => $blockBannedWords, 'expireDays' => $expireDays, 'fundRaisingTargetAmount' => $fundRaisingTargetAmount, 'fundRaisingTipsPresets' => $fundRaisingTipsPresets, diff --git a/src/Services/ProfilesRawService.php b/src/Services/ProfilesRawService.php index 85a40f97..43f71b33 100644 --- a/src/Services/ProfilesRawService.php +++ b/src/Services/ProfilesRawService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Profiles\ProfileGetResponse; -use Onlyfansapi\Profiles\ProfileRetrieveParams; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ProfilesRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Profiles\ProfileGetResponse; +use OnlyFansAPI\Profiles\ProfileRetrieveParams; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ProfilesRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ProfilesRawService implements ProfilesRawContract { diff --git a/src/Services/ProfilesService.php b/src/Services/ProfilesService.php index 65519bc1..02b9e5f7 100644 --- a/src/Services/ProfilesService.php +++ b/src/Services/ProfilesService.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Profiles\ProfileGetResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ProfilesContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Profiles\ProfileGetResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ProfilesContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ProfilesService implements ProfilesContract { diff --git a/src/Services/PromotionsRawService.php b/src/Services/PromotionsRawService.php index 2c0d69a0..cceba2b4 100644 --- a/src/Services/PromotionsRawService.php +++ b/src/Services/PromotionsRawService.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Promotions\PromotionCreateParams; -use Onlyfansapi\Promotions\PromotionCreateParams\Type; -use Onlyfansapi\Promotions\PromotionDeleteParams; -use Onlyfansapi\Promotions\PromotionDeleteResponse; -use Onlyfansapi\Promotions\PromotionListParams; -use Onlyfansapi\Promotions\PromotionListResponse; -use Onlyfansapi\Promotions\PromotionNewResponse; -use Onlyfansapi\Promotions\PromotionStopParams; -use Onlyfansapi\Promotions\PromotionStopResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\PromotionsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Promotions\PromotionCreateParams; +use OnlyFansAPI\Promotions\PromotionCreateParams\Type; +use OnlyFansAPI\Promotions\PromotionDeleteParams; +use OnlyFansAPI\Promotions\PromotionDeleteResponse; +use OnlyFansAPI\Promotions\PromotionListParams; +use OnlyFansAPI\Promotions\PromotionListResponse; +use OnlyFansAPI\Promotions\PromotionNewResponse; +use OnlyFansAPI\Promotions\PromotionStopParams; +use OnlyFansAPI\Promotions\PromotionStopResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\PromotionsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PromotionsRawService implements PromotionsRawContract { diff --git a/src/Services/PromotionsService.php b/src/Services/PromotionsService.php index e6b61600..8584c4c7 100644 --- a/src/Services/PromotionsService.php +++ b/src/Services/PromotionsService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Promotions\PromotionCreateParams\Type; -use Onlyfansapi\Promotions\PromotionDeleteResponse; -use Onlyfansapi\Promotions\PromotionListResponse; -use Onlyfansapi\Promotions\PromotionNewResponse; -use Onlyfansapi\Promotions\PromotionStopResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\PromotionsContract; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Promotions\PromotionCreateParams\Type; +use OnlyFansAPI\Promotions\PromotionDeleteResponse; +use OnlyFansAPI\Promotions\PromotionListResponse; +use OnlyFansAPI\Promotions\PromotionNewResponse; +use OnlyFansAPI\Promotions\PromotionStopResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\PromotionsContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PromotionsService implements PromotionsContract { diff --git a/src/Services/QueueRawService.php b/src/Services/QueueRawService.php index 632d65cc..6ca392bd 100644 --- a/src/Services/QueueRawService.php +++ b/src/Services/QueueRawService.php @@ -2,22 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Queue\QueueCountParams; -use Onlyfansapi\Queue\QueueCountResponse; -use Onlyfansapi\Queue\QueueListParams; -use Onlyfansapi\Queue\QueueListResponse; -use Onlyfansapi\Queue\QueuePublishParams; -use Onlyfansapi\Queue\QueuePublishResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\QueueRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Queue\QueueCountParams; +use OnlyFansAPI\Queue\QueueCountResponse; +use OnlyFansAPI\Queue\QueueListParams; +use OnlyFansAPI\Queue\QueueListParams\Type; +use OnlyFansAPI\Queue\QueueListResponse; +use OnlyFansAPI\Queue\QueuePublishParams; +use OnlyFansAPI\Queue\QueuePublishResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\QueueRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class QueueRawService implements QueueRawContract { @@ -30,11 +31,15 @@ public function __construct(private Client $client) {} /** * @api * - * List posts and messages in the queue. + * List scheduled posts and mass messages for a date range. Use the type filter to return only posts, messages, or both. * * @param string $account The Account ID * @param array{ - * limit: int, publishDateEnd: string, publishDateStart: string, timezone: string + * publishDateEnd: string, + * publishDateStart: string, + * timezone: string, + * limit?: int, + * type?: list>, * }|QueueListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/QueueService.php b/src/Services/QueueService.php index 5b33d08c..5de7c088 100644 --- a/src/Services/QueueService.php +++ b/src/Services/QueueService.php @@ -2,19 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Queue\QueueCountResponse; -use Onlyfansapi\Queue\QueueListResponse; -use Onlyfansapi\Queue\QueuePublishResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\QueueContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Queue\QueueCountResponse; +use OnlyFansAPI\Queue\QueueListParams\Type; +use OnlyFansAPI\Queue\QueueListResponse; +use OnlyFansAPI\Queue\QueuePublishResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\QueueContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class QueueService implements QueueContract { @@ -34,31 +35,34 @@ public function __construct(private Client $client) /** * @api * - * List posts and messages in the queue. + * List scheduled posts and mass messages for a date range. Use the type filter to return only posts, messages, or both. * * @param string $account The Account ID - * @param int $limit Maximum number of queue items to return (default = 20) - * @param string $publishDateEnd Latest publish date to return - * @param string $publishDateStart Earliest publish date to return (must be at least today) - * @param string $timezone Time timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php) + * @param string $publishDateEnd Latest publish date to return. Must be a valid date. Must be a valid date. Must be a date after or equal to publishDateStart. + * @param string $publishDateStart Earliest publish date to return (must be at least today). Must be a valid date. Must be a valid date. Must be a date after or equal to today. + * @param string $timezone Timezone of the provided dates. [View available timezone values](https://www.php.net/manual/en/timezones.php). Must be a valid time zone, such as Africa/Accra. + * @param int $limit Maximum number of queue items to return (default 20). Must be at least 1. Must not be greater than 100. + * @param list> $type * @param RequestOpts|null $requestOptions * * @throws APIException */ public function list( string $account, - int $limit, string $publishDateEnd, string $publishDateStart, string $timezone, + ?int $limit = null, + ?array $type = null, RequestOptions|array|null $requestOptions = null, ): QueueListResponse { $params = Util::removeNulls( [ - 'limit' => $limit, 'publishDateEnd' => $publishDateEnd, 'publishDateStart' => $publishDateStart, 'timezone' => $timezone, + 'limit' => $limit, + 'type' => $type, ], ); diff --git a/src/Services/ReleaseFormsRawService.php b/src/Services/ReleaseFormsRawService.php index 6c914582..525a9954 100644 --- a/src/Services/ReleaseFormsRawService.php +++ b/src/Services/ReleaseFormsRawService.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\ReleaseForms\ReleaseFormCreateInvitationLinkParams; -use Onlyfansapi\ReleaseForms\ReleaseFormCreateReleaseFormParams; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ReleaseFormsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\ReleaseForms\ReleaseFormCreateInvitationLinkParams; +use OnlyFansAPI\ReleaseForms\ReleaseFormCreateReleaseFormParams; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ReleaseFormsRawContract; /** * APIs for managing OnlyFans release forms. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ReleaseFormsRawService implements ReleaseFormsRawContract { @@ -101,7 +101,7 @@ public function createReleaseForm( /** * @api * - * Get a paginated list of users that can be tagged in release forms. These are verified creators who have signed release forms to appear in your content. Use `offset` and `limit` for pagination. + * Get a paginated list of users that can be tagged in release forms. These are verified creators who have signed release forms to appear in your content. Use `offset` and `limit` for pagination, following `_pagination.next_page` until it is `null`. * * @param string $account The Account ID * @param array{ diff --git a/src/Services/ReleaseFormsService.php b/src/Services/ReleaseFormsService.php index c84ca249..9ccd407b 100644 --- a/src/Services/ReleaseFormsService.php +++ b/src/Services/ReleaseFormsService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\ReleaseFormsContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Filter; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\Sort; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersParams\SortDirection; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\ReleaseFormsContract; /** * APIs for managing OnlyFans release forms. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ReleaseFormsService implements ReleaseFormsContract { @@ -87,7 +87,7 @@ public function createReleaseForm( /** * @api * - * Get a paginated list of users that can be tagged in release forms. These are verified creators who have signed release forms to appear in your content. Use `offset` and `limit` for pagination. + * Get a paginated list of users that can be tagged in release forms. These are verified creators who have signed release forms to appear in your content. Use `offset` and `limit` for pagination, following `_pagination.next_page` until it is `null`. * * @param string $account The Account ID * @param Filter|value-of|null $filter filter users by type: `all` or `pending` diff --git a/src/Services/SavedForLater/Messages/SettingsRawService.php b/src/Services/SavedForLater/Messages/SettingsRawService.php index e8f6d36e..75fad63e 100644 --- a/src/Services/SavedForLater/Messages/SettingsRawService.php +++ b/src/Services/SavedForLater/Messages/SettingsRawService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater\Messages; +namespace OnlyFansAPI\Services\SavedForLater\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\Messages\SettingsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\Messages\SettingsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SettingsRawService implements SettingsRawContract { diff --git a/src/Services/SavedForLater/Messages/SettingsService.php b/src/Services/SavedForLater/Messages/SettingsService.php index d5fed71e..22a313b8 100644 --- a/src/Services/SavedForLater/Messages/SettingsService.php +++ b/src/Services/SavedForLater/Messages/SettingsService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater\Messages; +namespace OnlyFansAPI\Services\SavedForLater\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\Messages\SettingsContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingParams\Period; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\Messages\SettingsContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SettingsService implements SettingsContract { diff --git a/src/Services/SavedForLater/MessagesRawService.php b/src/Services/SavedForLater/MessagesRawService.php index dc61009b..02b5c694 100644 --- a/src/Services/SavedForLater/MessagesRawService.php +++ b/src/Services/SavedForLater/MessagesRawService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater; +namespace OnlyFansAPI\Services\SavedForLater; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\MessageListParams; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\MessagesRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\MessageListParams; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\MessagesRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MessagesRawService implements MessagesRawContract { diff --git a/src/Services/SavedForLater/MessagesService.php b/src/Services/SavedForLater/MessagesService.php index 988a89ad..fe36f6ee 100644 --- a/src/Services/SavedForLater/MessagesService.php +++ b/src/Services/SavedForLater/MessagesService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater; +namespace OnlyFansAPI\Services\SavedForLater; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\MessagesContract; -use Onlyfansapi\Services\SavedForLater\Messages\SettingsService; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\MessagesContract; +use OnlyFansAPI\Services\SavedForLater\Messages\SettingsService; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class MessagesService implements MessagesContract { diff --git a/src/Services/SavedForLater/Posts/SettingsRawService.php b/src/Services/SavedForLater/Posts/SettingsRawService.php index cf6067a8..df8d12a2 100644 --- a/src/Services/SavedForLater/Posts/SettingsRawService.php +++ b/src/Services/SavedForLater/Posts/SettingsRawService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater\Posts; +namespace OnlyFansAPI\Services\SavedForLater\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\Posts\SettingsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\Posts\SettingsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SettingsRawService implements SettingsRawContract { diff --git a/src/Services/SavedForLater/Posts/SettingsService.php b/src/Services/SavedForLater/Posts/SettingsService.php index 5a5e68de..7d9487a6 100644 --- a/src/Services/SavedForLater/Posts/SettingsService.php +++ b/src/Services/SavedForLater/Posts/SettingsService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater\Posts; +namespace OnlyFansAPI\Services\SavedForLater\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\Posts\SettingsContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingParams\Period; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\Posts\SettingsContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SettingsService implements SettingsContract { diff --git a/src/Services/SavedForLater/PostsRawService.php b/src/Services/SavedForLater/PostsRawService.php index 4f3e0c5b..917dd00c 100644 --- a/src/Services/SavedForLater/PostsRawService.php +++ b/src/Services/SavedForLater/PostsRawService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater; +namespace OnlyFansAPI\Services\SavedForLater; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\PostListParams; -use Onlyfansapi\SavedForLater\Posts\PostListResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\PostsRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\PostListParams; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\PostsRawContract; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PostsRawService implements PostsRawContract { diff --git a/src/Services/SavedForLater/PostsService.php b/src/Services/SavedForLater/PostsService.php index dc6483b3..ae09603f 100644 --- a/src/Services/SavedForLater/PostsService.php +++ b/src/Services/SavedForLater/PostsService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SavedForLater; +namespace OnlyFansAPI\Services\SavedForLater; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\SavedForLater\Posts\PostListResponse; -use Onlyfansapi\ServiceContracts\SavedForLater\PostsContract; -use Onlyfansapi\Services\SavedForLater\Posts\SettingsService; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse; +use OnlyFansAPI\ServiceContracts\SavedForLater\PostsContract; +use OnlyFansAPI\Services\SavedForLater\Posts\SettingsService; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class PostsService implements PostsContract { diff --git a/src/Services/SavedForLaterRawService.php b/src/Services/SavedForLaterRawService.php index 32a4114e..1977b644 100644 --- a/src/Services/SavedForLaterRawService.php +++ b/src/Services/SavedForLaterRawService.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ServiceContracts\SavedForLaterRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\SavedForLaterRawContract; final class SavedForLaterRawService implements SavedForLaterRawContract { diff --git a/src/Services/SavedForLaterService.php b/src/Services/SavedForLaterService.php index 66f12c43..7e3efff3 100644 --- a/src/Services/SavedForLaterService.php +++ b/src/Services/SavedForLaterService.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ServiceContracts\SavedForLaterContract; -use Onlyfansapi\Services\SavedForLater\MessagesService; -use Onlyfansapi\Services\SavedForLater\PostsService; +use OnlyFansAPI\Client; +use OnlyFansAPI\ServiceContracts\SavedForLaterContract; +use OnlyFansAPI\Services\SavedForLater\MessagesService; +use OnlyFansAPI\Services\SavedForLater\PostsService; final class SavedForLaterService implements SavedForLaterContract { diff --git a/src/Services/SearchRawService.php b/src/Services/SearchRawService.php index e0fd15db..3e6d9b4e 100644 --- a/src/Services/SearchRawService.php +++ b/src/Services/SearchRawService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Search\SearchProfilesParams; -use Onlyfansapi\Search\SearchProfilesParams\Filter; -use Onlyfansapi\Search\SearchProfilesParams\Sort; -use Onlyfansapi\Search\SearchProfilesParams\SortDirection; -use Onlyfansapi\Search\SearchProfilesResponse; -use Onlyfansapi\ServiceContracts\SearchRawContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Search\SearchProfilesParams; +use OnlyFansAPI\Search\SearchProfilesParams\Filter; +use OnlyFansAPI\Search\SearchProfilesParams\Sort; +use OnlyFansAPI\Search\SearchProfilesParams\SortDirection; +use OnlyFansAPI\Search\SearchProfilesResponse; +use OnlyFansAPI\ServiceContracts\SearchRawContract; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Search\SearchProfilesParams\Filter - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Search\SearchProfilesParams\Filter + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SearchRawService implements SearchRawContract { diff --git a/src/Services/SearchService.php b/src/Services/SearchService.php index 7eabc91f..5d9e2a6e 100644 --- a/src/Services/SearchService.php +++ b/src/Services/SearchService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\Search\SearchProfilesParams\Filter; -use Onlyfansapi\Search\SearchProfilesParams\Sort; -use Onlyfansapi\Search\SearchProfilesParams\SortDirection; -use Onlyfansapi\Search\SearchProfilesResponse; -use Onlyfansapi\ServiceContracts\SearchContract; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\Search\SearchProfilesParams\Filter; +use OnlyFansAPI\Search\SearchProfilesParams\Sort; +use OnlyFansAPI\Search\SearchProfilesParams\SortDirection; +use OnlyFansAPI\Search\SearchProfilesResponse; +use OnlyFansAPI\ServiceContracts\SearchContract; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Search\SearchProfilesParams\Filter - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Search\SearchProfilesParams\Filter + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SearchService implements SearchContract { diff --git a/src/Services/Settings/BlockedCountriesRawService.php b/src/Services/Settings/BlockedCountriesRawService.php index a351f86a..be6b6c38 100644 --- a/src/Services/Settings/BlockedCountriesRawService.php +++ b/src/Services/Settings/BlockedCountriesRawService.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Settings; +namespace OnlyFansAPI\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Settings\BlockedCountriesRawContract; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateParams; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Settings\BlockedCountriesRawContract; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateParams; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BlockedCountriesRawService implements BlockedCountriesRawContract { diff --git a/src/Services/Settings/BlockedCountriesService.php b/src/Services/Settings/BlockedCountriesService.php index acf0e62c..44288e02 100644 --- a/src/Services/Settings/BlockedCountriesService.php +++ b/src/Services/Settings/BlockedCountriesService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Settings; +namespace OnlyFansAPI\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Settings\BlockedCountriesContract; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Settings\BlockedCountriesContract; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BlockedCountriesService implements BlockedCountriesContract { diff --git a/src/Services/Settings/SocialMediaButtonsRawService.php b/src/Services/Settings/SocialMediaButtonsRawService.php index 898f989a..e9544c5c 100644 --- a/src/Services/Settings/SocialMediaButtonsRawService.php +++ b/src/Services/Settings/SocialMediaButtonsRawService.php @@ -2,26 +2,26 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Settings; +namespace OnlyFansAPI\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Settings\SocialMediaButtonsRawContract; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateParams; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Settings\SocialMediaButtonsRawContract; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateParams; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SocialMediaButtonsRawService implements SocialMediaButtonsRawContract { diff --git a/src/Services/Settings/SocialMediaButtonsService.php b/src/Services/Settings/SocialMediaButtonsService.php index 03e5aa97..7c52dafa 100644 --- a/src/Services/Settings/SocialMediaButtonsService.php +++ b/src/Services/Settings/SocialMediaButtonsService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Settings; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Settings\SocialMediaButtonsContract; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; +namespace OnlyFansAPI\Services\Settings; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Settings\SocialMediaButtonsContract; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SocialMediaButtonsService implements SocialMediaButtonsContract { diff --git a/src/Services/Settings/WelcomeMessageRawService.php b/src/Services/Settings/WelcomeMessageRawService.php index 8d6fa106..96b33fed 100644 --- a/src/Services/Settings/WelcomeMessageRawService.php +++ b/src/Services/Settings/WelcomeMessageRawService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Settings; +namespace OnlyFansAPI\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Settings\WelcomeMessageRawContract; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleParams; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateParams; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Settings\WelcomeMessageRawContract; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleParams; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateParams; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class WelcomeMessageRawService implements WelcomeMessageRawContract { diff --git a/src/Services/Settings/WelcomeMessageService.php b/src/Services/Settings/WelcomeMessageService.php index 7781c0cf..da2523a0 100644 --- a/src/Services/Settings/WelcomeMessageService.php +++ b/src/Services/Settings/WelcomeMessageService.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Settings; +namespace OnlyFansAPI\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Settings\WelcomeMessageContract; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Settings\WelcomeMessageContract; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class WelcomeMessageService implements WelcomeMessageContract { diff --git a/src/Services/SettingsRawService.php b/src/Services/SettingsRawService.php index 3762d3c6..6a7fcc06 100644 --- a/src/Services/SettingsRawService.php +++ b/src/Services/SettingsRawService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SettingsRawContract; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityParams; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse; -use Onlyfansapi\Settings\SettingGetResponse; -use Onlyfansapi\Settings\SettingUpdateProfileParams; -use Onlyfansapi\Settings\SettingUpdateProfileResponse; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceParams; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SettingsRawContract; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityParams; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse; +use OnlyFansAPI\Settings\SettingGetResponse; +use OnlyFansAPI\Settings\SettingUpdateProfileParams; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceParams; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SettingsRawService implements SettingsRawContract { diff --git a/src/Services/SettingsService.php b/src/Services/SettingsService.php index 978732b9..32f01ba1 100644 --- a/src/Services/SettingsService.php +++ b/src/Services/SettingsService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SettingsContract; -use Onlyfansapi\Services\Settings\BlockedCountriesService; -use Onlyfansapi\Services\Settings\SocialMediaButtonsService; -use Onlyfansapi\Services\Settings\WelcomeMessageService; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse; -use Onlyfansapi\Settings\SettingGetResponse; -use Onlyfansapi\Settings\SettingUpdateProfileResponse; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SettingsContract; +use OnlyFansAPI\Services\Settings\BlockedCountriesService; +use OnlyFansAPI\Services\Settings\SocialMediaButtonsService; +use OnlyFansAPI\Services\Settings\WelcomeMessageService; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse; +use OnlyFansAPI\Settings\SettingGetResponse; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SettingsService implements SettingsContract { diff --git a/src/Services/SharedTrackingLinks/TagsRawService.php b/src/Services/SharedTrackingLinks/TagsRawService.php index 6dfa7aa5..cf3fd6aa 100644 --- a/src/Services/SharedTrackingLinks/TagsRawService.php +++ b/src/Services/SharedTrackingLinks/TagsRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SharedTrackingLinks; +namespace OnlyFansAPI\Services\SharedTrackingLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrackingLinks\TagsRawContract; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddParams; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListParams; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveParams; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrackingLinks\TagsRawContract; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddParams; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListParams; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveParams; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse; /** * APIs for Tracking Links (campaigns) that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared campaigns. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsRawService implements TagsRawContract { diff --git a/src/Services/SharedTrackingLinks/TagsService.php b/src/Services/SharedTrackingLinks/TagsService.php index b9de554c..5ac2cd2b 100644 --- a/src/Services/SharedTrackingLinks/TagsService.php +++ b/src/Services/SharedTrackingLinks/TagsService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SharedTrackingLinks; +namespace OnlyFansAPI\Services\SharedTrackingLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrackingLinks\TagsContract; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrackingLinks\TagsContract; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse; /** * APIs for Tracking Links (campaigns) that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared campaigns. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsService implements TagsContract { diff --git a/src/Services/SharedTrackingLinksRawService.php b/src/Services/SharedTrackingLinksRawService.php index eddb8a28..ca5bc6b3 100644 --- a/src/Services/SharedTrackingLinksRawService.php +++ b/src/Services/SharedTrackingLinksRawService.php @@ -2,22 +2,26 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrackingLinksRawContract; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListParams; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessParams; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrackingLinksRawContract; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\Pagination; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\SortingDeleted; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\WithDeleted; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessParams; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; /** * APIs for Tracking Links (campaigns) that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared campaigns. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SharedTrackingLinksRawService implements SharedTrackingLinksRawContract { @@ -34,7 +38,13 @@ public function __construct(private Client $client) {} * * @param string $account The Account ID * @param array{ - * limit?: int, offset?: int, synchronous?: bool|null + * limit?: int, + * offset?: int, + * pagination?: Pagination|value-of, + * sortingDeleted?: SortingDeleted|value-of, + * stats?: string, + * synchronous?: bool, + * withDeleted?: WithDeleted|value-of, * }|SharedTrackingLinkListParams $params * @param RequestOpts|null $requestOptions * @@ -56,7 +66,12 @@ public function list( return $this->client->request( method: 'get', path: ['api/%1$s/shared-tracking-links', $account], - query: $parsed, + query: Util::array_transform_keys( + $parsed, + [ + 'sortingDeleted' => 'sorting_deleted', 'withDeleted' => 'with_deleted', + ], + ), options: $options, convert: SharedTrackingLinkListResponse::class, ); diff --git a/src/Services/SharedTrackingLinksService.php b/src/Services/SharedTrackingLinksService.php index 13ceccfb..0290992e 100644 --- a/src/Services/SharedTrackingLinksService.php +++ b/src/Services/SharedTrackingLinksService.php @@ -2,21 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrackingLinksContract; -use Onlyfansapi\Services\SharedTrackingLinks\TagsService; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrackingLinksContract; +use OnlyFansAPI\Services\SharedTrackingLinks\TagsService; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\Pagination; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\SortingDeleted; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\WithDeleted; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; /** * APIs for Tracking Links (campaigns) that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared campaigns. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SharedTrackingLinksService implements SharedTrackingLinksContract { @@ -45,9 +48,13 @@ public function __construct(private Client $client) * List all Tracking Links (campaigns) shared with the account by other OF creators. Calls OnlyFans live and syncs to our cache. * * @param string $account The Account ID - * @param int $limit The number of shared tracking links to return. Default `10` - * @param int $offset The offset used for pagination. Default `0` - * @param bool|null $synchronous Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false` + * @param int $limit The number of shared tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Pagination|value-of $pagination Whether pagination metadata is enabled. Default `1`. + * @param SortingDeleted|value-of $sortingDeleted Whether deleted links participate in sorting. Default `1`. + * @param string $stats Whether statistics are included. Default `true`. Must not be greater than 10 characters. + * @param bool $synchronous wait for the database sync instead of processing it in the background + * @param WithDeleted|value-of $withDeleted Whether to include deleted shared tracking links. Default `1`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -56,11 +63,23 @@ public function list( string $account, ?int $limit = null, ?int $offset = null, + Pagination|int|null $pagination = null, + SortingDeleted|int|null $sortingDeleted = null, + ?string $stats = null, ?bool $synchronous = null, + WithDeleted|int|null $withDeleted = null, RequestOptions|array|null $requestOptions = null, ): SharedTrackingLinkListResponse { $params = Util::removeNulls( - ['limit' => $limit, 'offset' => $offset, 'synchronous' => $synchronous] + [ + 'limit' => $limit, + 'offset' => $offset, + 'pagination' => $pagination, + 'sortingDeleted' => $sortingDeleted, + 'stats' => $stats, + 'synchronous' => $synchronous, + 'withDeleted' => $withDeleted, + ], ); // @phpstan-ignore-next-line argument.type diff --git a/src/Services/SharedTrialLinks/TagsRawService.php b/src/Services/SharedTrialLinks/TagsRawService.php index 1de7ecfa..474d73fd 100644 --- a/src/Services/SharedTrialLinks/TagsRawService.php +++ b/src/Services/SharedTrialLinks/TagsRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SharedTrialLinks; +namespace OnlyFansAPI\Services\SharedTrialLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrialLinks\TagsRawContract; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddParams; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagListParams; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveParams; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrialLinks\TagsRawContract; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddParams; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListParams; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveParams; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse; /** * APIs for Free Trial Links that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsRawService implements TagsRawContract { diff --git a/src/Services/SharedTrialLinks/TagsService.php b/src/Services/SharedTrialLinks/TagsService.php index cf482893..306f253f 100644 --- a/src/Services/SharedTrialLinks/TagsService.php +++ b/src/Services/SharedTrialLinks/TagsService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\SharedTrialLinks; +namespace OnlyFansAPI\Services\SharedTrialLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrialLinks\TagsContract; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrialLinks\TagsContract; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse; /** * APIs for Free Trial Links that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsService implements TagsContract { diff --git a/src/Services/SharedTrialLinksRawService.php b/src/Services/SharedTrialLinksRawService.php index 98954dfc..1c27dd18 100644 --- a/src/Services/SharedTrialLinksRawService.php +++ b/src/Services/SharedTrialLinksRawService.php @@ -2,22 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrialLinksRawContract; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListParams; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessParams; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrialLinksRawContract; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListParams; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListParams\Pagination; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessParams; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; /** * APIs for Free Trial Links that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SharedTrialLinksRawService implements SharedTrialLinksRawContract { @@ -34,7 +35,10 @@ public function __construct(private Client $client) {} * * @param string $account The Account ID * @param array{ - * limit?: int, offset?: int, synchronous?: bool|null + * limit?: int, + * offset?: int, + * pagination?: Pagination|value-of, + * synchronous?: bool, * }|SharedTrialLinkListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/SharedTrialLinksService.php b/src/Services/SharedTrialLinksService.php index 75c64920..7f3e3c6e 100644 --- a/src/Services/SharedTrialLinksService.php +++ b/src/Services/SharedTrialLinksService.php @@ -2,21 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SharedTrialLinksContract; -use Onlyfansapi\Services\SharedTrialLinks\TagsService; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SharedTrialLinksContract; +use OnlyFansAPI\Services\SharedTrialLinks\TagsService; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListParams\Pagination; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; /** * APIs for Free Trial Links that other OF creators have shared with this account. Revenue, cost, and spender data are not available for shared links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SharedTrialLinksService implements SharedTrialLinksContract { @@ -45,9 +46,10 @@ public function __construct(private Client $client) * List all Free Trial Links shared with the account by other OF creators. Calls OnlyFans live and syncs to our cache. * * @param string $account The Account ID - * @param int $limit The number of shared trial links to return. Default `10` - * @param int $offset The offset used for pagination. Default `0` - * @param bool|null $synchronous Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false` + * @param int $limit The number of shared trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Pagination|value-of $pagination + * @param bool $synchronous wait for the database sync instead of processing it in the background * @param RequestOpts|null $requestOptions * * @throws APIException @@ -56,11 +58,17 @@ public function list( string $account, ?int $limit = null, ?int $offset = null, + Pagination|int|null $pagination = null, ?bool $synchronous = null, RequestOptions|array|null $requestOptions = null, ): SharedTrialLinkListResponse { $params = Util::removeNulls( - ['limit' => $limit, 'offset' => $offset, 'synchronous' => $synchronous] + [ + 'limit' => $limit, + 'offset' => $offset, + 'pagination' => $pagination, + 'synchronous' => $synchronous, + ], ); // @phpstan-ignore-next-line argument.type diff --git a/src/Services/SmartLinkPostbacksRawService.php b/src/Services/SmartLinkPostbacksRawService.php index 8c6e16fb..1f31da8c 100644 --- a/src/Services/SmartLinkPostbacksRawService.php +++ b/src/Services/SmartLinkPostbacksRawService.php @@ -2,26 +2,30 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Conversion\MapOf; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SmartLinkPostbacksRawContract; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackCreateParams; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Conversion\MapOf; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SmartLinkPostbacksRawContract; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\HTTPMethod; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; /** * APIs for managing Smart Link postback destinations. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\Header as HeaderShape1 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SmartLinkPostbacksRawService implements SmartLinkPostbacksRawContract { @@ -40,6 +44,9 @@ public function __construct(private Client $client) {} * conversionTypes: list, * smartLinkScope: SmartLinkScope|value-of, * url: string, + * body?: string, + * headers?: list, + * httpMethod?: HTTPMethod|value-of, * smartLinkIDs?: list, * }|SmartLinkPostbackCreateParams $params * @param RequestOpts|null $requestOptions @@ -102,6 +109,9 @@ public function retrieve( * conversionTypes: list, * smartLinkScope: SmartLinkPostbackUpdateParams\SmartLinkScope|value-of, * url: string, + * body?: string, + * headers?: list, + * httpMethod?: SmartLinkPostbackUpdateParams\HTTPMethod|value-of, * smartLinkIDs?: list, * }|SmartLinkPostbackUpdateParams $params * @param RequestOpts|null $requestOptions diff --git a/src/Services/SmartLinkPostbacksService.php b/src/Services/SmartLinkPostbacksService.php index 28cc47d6..9bb180dc 100644 --- a/src/Services/SmartLinkPostbacksService.php +++ b/src/Services/SmartLinkPostbacksService.php @@ -2,23 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SmartLinkPostbacksContract; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SmartLinkPostbacksContract; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\HTTPMethod; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; /** * APIs for managing Smart Link postback destinations. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\Header as HeaderShape1 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SmartLinkPostbacksService implements SmartLinkPostbacksContract { @@ -42,7 +46,10 @@ public function __construct(private Client $client) * * @param list $conversionTypes one or more Smart Link conversion types that should trigger this postback * @param SmartLinkScope|value-of $smartLinkScope `global` fires for all Smart Links. `campaign_specific` fires only for selected Smart Links. - * @param string $url The destination URL. Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + * @param string $url The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + * @param string $body Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + * @param list $headers Optional request headers. Header values may include postback variables. + * @param HTTPMethod|value-of $httpMethod HTTP method used for the postback request. Defaults to `GET` when omitted. * @param list $smartLinkIDs Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * @param RequestOpts|null $requestOptions * @@ -52,6 +59,9 @@ public function create( array $conversionTypes, SmartLinkScope|string $smartLinkScope, string $url, + ?string $body = null, + ?array $headers = null, + HTTPMethod|string|null $httpMethod = null, ?array $smartLinkIDs = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkPostbackNewResponse { @@ -60,6 +70,9 @@ public function create( 'conversionTypes' => $conversionTypes, 'smartLinkScope' => $smartLinkScope, 'url' => $url, + 'body' => $body, + 'headers' => $headers, + 'httpMethod' => $httpMethod, 'smartLinkIDs' => $smartLinkIDs, ], ); @@ -97,8 +110,11 @@ public function retrieve( * * @param int $postbackID The postback ID * @param list $conversionTypes one or more Smart Link conversion types that should trigger this postback - * @param \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|value-of<\Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope> $smartLinkScope `global` or `campaign_specific` + * @param \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|value-of<\OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope> $smartLinkScope `global` or `campaign_specific` * @param string $url the destination URL + * @param string $body Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + * @param list<\OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\Header|HeaderShape1> $headers Optional request headers. Header values may include postback variables. + * @param \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\HTTPMethod|value-of<\OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\HTTPMethod> $httpMethod HTTP method used for the postback request. Existing value is kept when omitted. * @param list $smartLinkIDs Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * @param RequestOpts|null $requestOptions * @@ -107,8 +123,11 @@ public function retrieve( public function update( int $postbackID, array $conversionTypes, - \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|string $smartLinkScope, + \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope|string $smartLinkScope, string $url, + ?string $body = null, + ?array $headers = null, + \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\HTTPMethod|string|null $httpMethod = null, ?array $smartLinkIDs = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkPostbackUpdateResponse { @@ -117,6 +136,9 @@ public function update( 'conversionTypes' => $conversionTypes, 'smartLinkScope' => $smartLinkScope, 'url' => $url, + 'body' => $body, + 'headers' => $headers, + 'httpMethod' => $httpMethod, 'smartLinkIDs' => $smartLinkIDs, ], ); diff --git a/src/Services/SmartLinksRawService.php b/src/Services/SmartLinksRawService.php index 9abbbdf4..c5280b12 100644 --- a/src/Services/SmartLinksRawService.php +++ b/src/Services/SmartLinksRawService.php @@ -2,40 +2,42 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SmartLinksRawContract; -use Onlyfansapi\SmartLinks\SmartLinkCreateParams; -use Onlyfansapi\SmartLinks\SmartLinkCreateParams\LinkType; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListClicksParams; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsParams; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsParams\ConversionType; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListFansParams; -use Onlyfansapi\SmartLinks\SmartLinkListFansParams\Sort; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse; -use Onlyfansapi\SmartLinks\SmartLinkListParams; -use Onlyfansapi\SmartLinks\SmartLinkListResponse; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersParams; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveCohortArpsParams; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveStatsParams; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SmartLinksRawContract; +use OnlyFansAPI\SmartLinks\SmartLinkCreateParams; +use OnlyFansAPI\SmartLinks\SmartLinkCreateParams\LinkType; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksParams; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsParams; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsParams\ConversionType; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListFansParams; +use OnlyFansAPI\SmartLinks\SmartLinkListFansParams\Sort; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListParams; +use OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersParams; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveCohortArpsParams; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveStatsParams; /** * APIs for managing Smart Links (Free Trial Links and Tracking Links with pooled inventory). * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SmartLinksRawService implements SmartLinksRawContract { @@ -113,10 +115,11 @@ public function retrieve( * * @param array{ * accountIDs?: string|null, + * filter?: Filter|FilterShape, * limit?: int, - * metaPixelIDs?: string|null, * name?: string|null, * offset?: int, + * pixelIDs?: string|null, * }|SmartLinkListParams $params * @param RequestOpts|null $requestOptions * @@ -139,7 +142,7 @@ public function list( path: 'api/smart-links', query: Util::array_transform_keys( $parsed, - ['accountIDs' => 'account_ids', 'metaPixelIDs' => 'meta_pixel_ids'], + ['accountIDs' => 'account_ids', 'pixelIDs' => 'pixel_ids'] ), options: $options, convert: SmartLinkListResponse::class, @@ -226,7 +229,7 @@ public function listClicks( * * @param string $smartLinkID the ID of the smart link * @param array{ - * conversionType?: ConversionType|value-of, + * conversionType?: value-of, * dateEnd?: string, * dateStart?: string, * includeBots?: bool, @@ -284,7 +287,9 @@ public function listConversions( * minRevenueNet?: float, * minTipsNet?: float, * offset?: int, + * previouslySubscribed?: bool, * sort?: value-of, + * subscribedUsingPromo?: bool, * }|SmartLinkListFansParams $params * @param RequestOpts|null $requestOptions * @@ -313,6 +318,8 @@ public function listFans( 'minMessagesSentByFan' => 'min_messages_sent_by_fan', 'minRevenueNet' => 'min_revenue_net', 'minTipsNet' => 'min_tips_net', + 'previouslySubscribed' => 'previously_subscribed', + 'subscribedUsingPromo' => 'subscribed_using_promo', ], ), options: $options, diff --git a/src/Services/SmartLinksService.php b/src/Services/SmartLinksService.php index 664522e0..938a9e22 100644 --- a/src/Services/SmartLinksService.php +++ b/src/Services/SmartLinksService.php @@ -2,31 +2,33 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SmartLinksContract; -use Onlyfansapi\SmartLinks\SmartLinkCreateParams\LinkType; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsParams\ConversionType; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListFansParams\Sort; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse; -use Onlyfansapi\SmartLinks\SmartLinkListResponse; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SmartLinksContract; +use OnlyFansAPI\SmartLinks\SmartLinkCreateParams\LinkType; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsParams\ConversionType; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListFansParams\Sort; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; /** * APIs for managing Smart Links (Free Trial Links and Tracking Links with pooled inventory). * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SmartLinksService implements SmartLinksContract { @@ -104,29 +106,32 @@ public function retrieve( * List all Smart Links * * @param string|null $accountIDs comma-separated account prefixed IDs to include + * @param Filter|FilterShape $filter * @param int $limit The number of Smart Links to return. Default `50`. Must be at least 1. Must not be greater than 1000. - * @param string|null $metaPixelIDs comma-separated Meta Pixel IDs to include * @param string|null $name Filter Smart Links by name. Must not be greater than 255 characters. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param string|null $pixelIDs comma-separated ad platform Pixel IDs to include * @param RequestOpts|null $requestOptions * * @throws APIException */ public function list( ?string $accountIDs = null, + Filter|array|null $filter = null, ?int $limit = null, - ?string $metaPixelIDs = null, ?string $name = null, ?int $offset = null, + ?string $pixelIDs = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkListResponse { $params = Util::removeNulls( [ 'accountIDs' => $accountIDs, + 'filter' => $filter, 'limit' => $limit, - 'metaPixelIDs' => $metaPixelIDs, 'name' => $name, 'offset' => $offset, + 'pixelIDs' => $pixelIDs, ], ); @@ -260,7 +265,9 @@ public function listConversions( * @param float $minRevenueNet Optional minimum net revenue * @param float $minTipsNet Optional minimum net tips * @param int $offset Offset for pagination. Default `0` + * @param bool $previouslySubscribed Optional - Filter to returning subscribers (fans previously subscribed before this subscription) * @param Sort|value-of $sort Optional sort field. Default `-revenue_net` + * @param bool $subscribedUsingPromo Optional - Filter to fans who subscribed via a promotion/offer * @param RequestOpts|null $requestOptions * * @throws APIException @@ -273,7 +280,9 @@ public function listFans( ?float $minRevenueNet = null, ?float $minTipsNet = null, ?int $offset = null, + ?bool $previouslySubscribed = null, Sort|string|null $sort = null, + ?bool $subscribedUsingPromo = null, RequestOptions|array|null $requestOptions = null, ): SmartLinkListFansResponse { $params = Util::removeNulls( @@ -284,7 +293,9 @@ public function listFans( 'minRevenueNet' => $minRevenueNet, 'minTipsNet' => $minTipsNet, 'offset' => $offset, + 'previouslySubscribed' => $previouslySubscribed, 'sort' => $sort, + 'subscribedUsingPromo' => $subscribedUsingPromo, ], ); diff --git a/src/Services/Statistics/ReachRawService.php b/src/Services/Statistics/ReachRawService.php index 08e37f0f..075147c5 100644 --- a/src/Services/Statistics/ReachRawService.php +++ b/src/Services/Statistics/ReachRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Statistics; +namespace OnlyFansAPI\Services\Statistics; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Statistics\ReachRawContract; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Type; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Statistics\ReachRawContract; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Type; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ReachRawService implements ReachRawContract { diff --git a/src/Services/Statistics/ReachService.php b/src/Services/Statistics/ReachService.php index e2820193..c31cfe2f 100644 --- a/src/Services/Statistics/ReachService.php +++ b/src/Services/Statistics/ReachService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Statistics; +namespace OnlyFansAPI\Services\Statistics; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Statistics\ReachContract; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Type; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Statistics\ReachContract; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Type; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class ReachService implements ReachContract { @@ -40,7 +40,7 @@ public function __construct(private Client $client) * * @param string $account The Account ID * @param string $endDate the end date for the period - * @param string $startDate The start date for the period + * @param string $startDate the start date for the period * @param Filter|value-of|null $filter Optionally, filter the results by `chart` or `topCountries`. See example responses. * @param int|null $limit Number of results to return * @param Type|value-of|null $type Filter all / users / guests diff --git a/src/Services/Statistics/StatementsRawService.php b/src/Services/Statistics/StatementsRawService.php index 3cb904c4..a418dff9 100644 --- a/src/Services/Statistics/StatementsRawService.php +++ b/src/Services/Statistics/StatementsRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Statistics; +namespace OnlyFansAPI\Services\Statistics; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Statistics\StatementsRawContract; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsParams; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsParams\Type; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Statistics\StatementsRawContract; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsParams; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsParams\Type; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StatementsRawService implements StatementsRawContract { @@ -32,7 +32,7 @@ public function __construct(private Client $client) {} * * @param string $account The Account ID * @param array{ - * startDate: string, endDate?: string, type?: Type|value-of + * endDate: string, startDate: string, type?: Type|value-of * }|StatementGetEarningsParams $params * @param RequestOpts|null $requestOptions * @@ -56,7 +56,7 @@ public function getEarnings( path: ['api/%1$s/statistics/statements/earnings', $account], query: Util::array_transform_keys( $parsed, - ['startDate' => 'start_date', 'endDate' => 'end_date'] + ['endDate' => 'end_date', 'startDate' => 'start_date'] ), options: $options, convert: StatementGetEarningsResponse::class, diff --git a/src/Services/Statistics/StatementsService.php b/src/Services/Statistics/StatementsService.php index f8da3b55..b6b3da11 100644 --- a/src/Services/Statistics/StatementsService.php +++ b/src/Services/Statistics/StatementsService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Statistics; +namespace OnlyFansAPI\Services\Statistics; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Statistics\StatementsContract; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsParams\Type; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Statistics\StatementsContract; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsParams\Type; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StatementsService implements StatementsContract { @@ -36,8 +36,8 @@ public function __construct(private Client $client) * Get the earnings for a given period. * * @param string $account The Account ID - * @param string $startDate The start date for the period * @param string $endDate the end date for the period + * @param string $startDate the start date for the period * @param Type|value-of $type Filter by All / Subscriptions / Tips / Posts / Messages / Streams * @param RequestOpts|null $requestOptions * @@ -45,13 +45,13 @@ public function __construct(private Client $client) */ public function getEarnings( string $account, + string $endDate, string $startDate, - ?string $endDate = null, Type|string|null $type = null, RequestOptions|array|null $requestOptions = null, ): StatementGetEarningsResponse { $params = Util::removeNulls( - ['startDate' => $startDate, 'endDate' => $endDate, 'type' => $type] + ['endDate' => $endDate, 'startDate' => $startDate, 'type' => $type] ); // @phpstan-ignore-next-line argument.type diff --git a/src/Services/StatisticsRawService.php b/src/Services/StatisticsRawService.php index 17585e62..6759a9eb 100644 --- a/src/Services/StatisticsRawService.php +++ b/src/Services/StatisticsRawService.php @@ -2,24 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\StatisticsRawContract; -use Onlyfansapi\Statistics\StatisticCalculateTotalTransactionsParams; -use Onlyfansapi\Statistics\StatisticCalculateTotalTransactionsResponse; -use Onlyfansapi\Statistics\StatisticGetOverviewParams; -use Onlyfansapi\Statistics\StatisticGetOverviewParams\Type; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse; -use Onlyfansapi\Statistics\StatisticGetSubscriberMetricsParams; -use Onlyfansapi\Statistics\StatisticGetSubscriberMetricsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\StatisticsRawContract; +use OnlyFansAPI\Statistics\StatisticCalculateTotalTransactionsParams; +use OnlyFansAPI\Statistics\StatisticCalculateTotalTransactionsResponse; +use OnlyFansAPI\Statistics\StatisticGetOverviewParams; +use OnlyFansAPI\Statistics\StatisticGetOverviewParams\Type; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsParams; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsParams\DetailedType; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StatisticsRawService implements StatisticsRawContract { @@ -36,7 +37,7 @@ public function __construct(private Client $client) {} * * @param string $account The Account ID * @param array{ - * endDate: string, startDate: string + * endDate?: string, startDate?: string * }|StatisticCalculateTotalTransactionsParams $params * @param RequestOpts|null $requestOptions * @@ -112,7 +113,10 @@ public function getOverview( * * @param string $account The Account ID * @param array{ - * endDate: string, startDate: string, detailed?: bool|null + * endDate: string, + * startDate: string, + * detailed?: bool|null, + * detailedType?: DetailedType|value-of|null, * }|StatisticGetSubscriberMetricsParams $params * @param RequestOpts|null $requestOptions * @@ -136,7 +140,11 @@ public function getSubscriberMetrics( path: ['api/%1$s/statistics/subscriber-metrics', $account], query: Util::array_transform_keys( $parsed, - ['endDate' => 'end_date', 'startDate' => 'start_date'] + [ + 'endDate' => 'end_date', + 'startDate' => 'start_date', + 'detailedType' => 'detailed_type', + ], ), options: $options, convert: StatisticGetSubscriberMetricsResponse::class, diff --git a/src/Services/StatisticsService.php b/src/Services/StatisticsService.php index 89f0a192..5f01b570 100644 --- a/src/Services/StatisticsService.php +++ b/src/Services/StatisticsService.php @@ -2,22 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\StatisticsContract; -use Onlyfansapi\Services\Statistics\ReachService; -use Onlyfansapi\Services\Statistics\StatementsService; -use Onlyfansapi\Statistics\StatisticCalculateTotalTransactionsResponse; -use Onlyfansapi\Statistics\StatisticGetOverviewParams\Type; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse; -use Onlyfansapi\Statistics\StatisticGetSubscriberMetricsResponse; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\StatisticsContract; +use OnlyFansAPI\Services\Statistics\ReachService; +use OnlyFansAPI\Services\Statistics\StatementsService; +use OnlyFansAPI\Statistics\StatisticCalculateTotalTransactionsResponse; +use OnlyFansAPI\Statistics\StatisticGetOverviewParams\Type; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsParams\DetailedType; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StatisticsService implements StatisticsContract { @@ -60,8 +61,8 @@ public function __construct(private Client $client) */ public function calculateTotalTransactions( string $account, - string $endDate, - string $startDate, + ?string $endDate = null, + ?string $startDate = null, RequestOptions|array|null $requestOptions = null, ): StatisticCalculateTotalTransactionsResponse { $params = Util::removeNulls( @@ -113,6 +114,7 @@ public function getOverview( * @param string $endDate the end date for the metrics * @param string $startDate the start date for the metrics * @param bool|null $detailed Include paid and free fan metrics. Will slow down the response time, and might time out if timeframe is too large. Default = `false` + * @param DetailedType|value-of|null $detailedType Use only with `detailed=true` - otherwise, it has no effect. Filter the subscriber statistics (default = total) * @param RequestOpts|null $requestOptions * * @throws APIException @@ -122,6 +124,7 @@ public function getSubscriberMetrics( string $endDate, string $startDate, ?bool $detailed = null, + DetailedType|string|null $detailedType = null, RequestOptions|array|null $requestOptions = null, ): StatisticGetSubscriberMetricsResponse { $params = Util::removeNulls( @@ -129,6 +132,7 @@ public function getSubscriberMetrics( 'endDate' => $endDate, 'startDate' => $startDate, 'detailed' => $detailed, + 'detailedType' => $detailedType, ], ); diff --git a/src/Services/StoredRawService.php b/src/Services/StoredRawService.php index 6939a5ee..656a1b74 100644 --- a/src/Services/StoredRawService.php +++ b/src/Services/StoredRawService.php @@ -2,29 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\StoredRawContract; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksParams; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksParams\Filter; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListSharedTrialLinksParams; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Stored\StoredListTrackingLinksParams; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListTrialLinksParams; -use Onlyfansapi\Stored\StoredListTrialLinksResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\StoredRawContract; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams\Filter; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksParams; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; +use OnlyFansAPI\Stored\StoredListTrackingLinksParams; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListTrialLinksParams; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListSharedTrackingLinksParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter as FilterShape2 - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter as FilterShape3 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter as FilterShape2 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter as FilterShape3 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StoredRawService implements StoredRawContract { diff --git a/src/Services/StoredService.php b/src/Services/StoredService.php index ae5f4a21..b2bfe608 100644 --- a/src/Services/StoredService.php +++ b/src/Services/StoredService.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\StoredContract; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksParams\Filter; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListTrialLinksResponse; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\StoredContract; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams\Filter; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse; /** - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListSharedTrackingLinksParams\Filter - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter as FilterShape1 - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter as FilterShape2 - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter as FilterShape3 - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListSharedTrackingLinksParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter as FilterShape1 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter as FilterShape2 + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter as FilterShape3 + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StoredService implements StoredContract { @@ -73,7 +73,7 @@ public function listSharedTrackingLinks( * List all shared Free Trial Links from the OnlyFansAPI Cache. This is a free endpoint that does not call the OnlyFans API. * * @param string $account The Account ID - * @param \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter|FilterShape1 $filter + * @param \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter|FilterShape1 $filter * @param int $limit The number of shared trial links to return. Default `10`. Must be at least 1. Must not be greater than 1000. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. * @param RequestOpts|null $requestOptions @@ -82,7 +82,7 @@ public function listSharedTrackingLinks( */ public function listSharedTrialLinks( string $account, - \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter|array|null $filter = null, + \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, RequestOptions|array|null $requestOptions = null, @@ -103,7 +103,7 @@ public function listSharedTrialLinks( * List all stored tracking links from the OnlyFansAPI Cache. This is a free endpoint that does not call the OnlyFans API. * * @param string $account The Account ID - * @param \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter|FilterShape2 $filter + * @param \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter|FilterShape2 $filter * @param int $limit The number of tracking links to return. Default `10`. Must be at least 1. Must not be greater than 1000. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. * @param RequestOpts|null $requestOptions @@ -112,7 +112,7 @@ public function listSharedTrialLinks( */ public function listTrackingLinks( string $account, - \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter|array|null $filter = null, + \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, RequestOptions|array|null $requestOptions = null, @@ -133,7 +133,7 @@ public function listTrackingLinks( * List all stored free trial links from the OnlyFansAPI Cache. This is a free endpoint that does not call the OnlyFans API. * * @param string $account The Account ID - * @param \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter|FilterShape3 $filter + * @param \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter|FilterShape3 $filter * @param int $limit The number of trial links to return. Default `10`. Must be at least 1. Must not be greater than 1000. * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. * @param RequestOpts|null $requestOptions @@ -142,7 +142,7 @@ public function listTrackingLinks( */ public function listTrialLinks( string $account, - \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter|array|null $filter = null, + \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter|array|null $filter = null, ?int $limit = null, ?int $offset = null, RequestOptions|array|null $requestOptions = null, diff --git a/src/Services/Stories/HighlightsRawService.php b/src/Services/Stories/HighlightsRawService.php index f34f8034..c032a51b 100644 --- a/src/Services/Stories/HighlightsRawService.php +++ b/src/Services/Stories/HighlightsRawService.php @@ -2,32 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Stories; +namespace OnlyFansAPI\Services\Stories; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Stories\HighlightsRawContract; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryParams; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightCreateParams; -use Onlyfansapi\Stories\Highlights\HighlightDeleteParams; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse; -use Onlyfansapi\Stories\Highlights\HighlightListParams; -use Onlyfansapi\Stories\Highlights\HighlightListResponse; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryParams; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightRetrieveParams; -use Onlyfansapi\Stories\Highlights\HighlightUpdateParams; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Stories\HighlightsRawContract; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryParams; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightCreateParams; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteParams; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse; +use OnlyFansAPI\Stories\Highlights\HighlightListParams; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryParams; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightRetrieveParams; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateParams; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse; /** * APIs for managing OnlyFans story highlights. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class HighlightsRawService implements HighlightsRawContract { diff --git a/src/Services/Stories/HighlightsService.php b/src/Services/Stories/HighlightsService.php index cd6dfdc0..af8fc3c6 100644 --- a/src/Services/Stories/HighlightsService.php +++ b/src/Services/Stories/HighlightsService.php @@ -2,25 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Stories; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Stories\HighlightsContract; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse; -use Onlyfansapi\Stories\Highlights\HighlightListResponse; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse; +namespace OnlyFansAPI\Services\Stories; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Stories\HighlightsContract; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse; /** * APIs for managing OnlyFans story highlights. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class HighlightsService implements HighlightsContract { diff --git a/src/Services/StoriesRawService.php b/src/Services/StoriesRawService.php index 3ee119bb..65b443c3 100644 --- a/src/Services/StoriesRawService.php +++ b/src/Services/StoriesRawService.php @@ -2,33 +2,37 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\StoriesRawContract; -use Onlyfansapi\Stories\StoryCreateParams; -use Onlyfansapi\Stories\StoryDeleteParams; -use Onlyfansapi\Stories\StoryDeleteResponse; -use Onlyfansapi\Stories\StoryGetResponse; -use Onlyfansapi\Stories\StoryGetStatsResponse; -use Onlyfansapi\Stories\StoryListActiveResponse; -use Onlyfansapi\Stories\StoryListArchiveParams; -use Onlyfansapi\Stories\StoryListArchiveResponse; -use Onlyfansapi\Stories\StoryListViewersParams; -use Onlyfansapi\Stories\StoryListViewersResponse; -use Onlyfansapi\Stories\StoryMarkAsWatchedParams; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse; -use Onlyfansapi\Stories\StoryNewResponse; -use Onlyfansapi\Stories\StoryRetrieveParams; -use Onlyfansapi\Stories\StoryRetrieveStatsParams; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\StoriesRawContract; +use OnlyFansAPI\Stories\StoryCreateParams; +use OnlyFansAPI\Stories\StoryCreateParams\Question; +use OnlyFansAPI\Stories\StoryCreateParams\Text; +use OnlyFansAPI\Stories\StoryDeleteParams; +use OnlyFansAPI\Stories\StoryDeleteResponse; +use OnlyFansAPI\Stories\StoryGetResponse; +use OnlyFansAPI\Stories\StoryGetStatsResponse; +use OnlyFansAPI\Stories\StoryListActiveResponse; +use OnlyFansAPI\Stories\StoryListArchiveParams; +use OnlyFansAPI\Stories\StoryListArchiveResponse; +use OnlyFansAPI\Stories\StoryListViewersParams; +use OnlyFansAPI\Stories\StoryListViewersResponse; +use OnlyFansAPI\Stories\StoryMarkAsWatchedParams; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse; +use OnlyFansAPI\Stories\StoryNewResponse; +use OnlyFansAPI\Stories\StoryRetrieveParams; +use OnlyFansAPI\Stories\StoryRetrieveStatsParams; /** * APIs for managing OnlyFans stories. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type QuestionShape from \OnlyFansAPI\Stories\StoryCreateParams\Question + * @phpstan-import-type TextShape from \OnlyFansAPI\Stories\StoryCreateParams\Text + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StoriesRawService implements StoriesRawContract { @@ -41,10 +45,16 @@ public function __construct(private Client $client) {} /** * @api * - * Post a new media or vault file to your story. + * Post a new media or vault file to your story, optionally with text overlays, @mentions, and a question sticker. Overlay elements are rendered by OnlyFans on top of your story media at view time. * * @param string $account The Account ID - * @param array{mediaFiles: list}|StoryCreateParams $params + * @param array{ + * mediaFiles: list, + * canvasHeight?: int, + * canvasWidth?: int, + * question?: Question|QuestionShape, + * texts?: list, + * }|StoryCreateParams $params * @param RequestOpts|null $requestOptions * * @return BaseResponse diff --git a/src/Services/StoriesService.php b/src/Services/StoriesService.php index 680ac4ca..9096782f 100644 --- a/src/Services/StoriesService.php +++ b/src/Services/StoriesService.php @@ -2,27 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\StoriesContract; -use Onlyfansapi\Services\Stories\HighlightsService; -use Onlyfansapi\Stories\StoryDeleteResponse; -use Onlyfansapi\Stories\StoryGetResponse; -use Onlyfansapi\Stories\StoryGetStatsResponse; -use Onlyfansapi\Stories\StoryListActiveResponse; -use Onlyfansapi\Stories\StoryListArchiveResponse; -use Onlyfansapi\Stories\StoryListViewersResponse; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse; -use Onlyfansapi\Stories\StoryNewResponse; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\StoriesContract; +use OnlyFansAPI\Services\Stories\HighlightsService; +use OnlyFansAPI\Stories\StoryCreateParams\Question; +use OnlyFansAPI\Stories\StoryCreateParams\Text; +use OnlyFansAPI\Stories\StoryDeleteResponse; +use OnlyFansAPI\Stories\StoryGetResponse; +use OnlyFansAPI\Stories\StoryGetStatsResponse; +use OnlyFansAPI\Stories\StoryListActiveResponse; +use OnlyFansAPI\Stories\StoryListArchiveResponse; +use OnlyFansAPI\Stories\StoryListViewersResponse; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse; +use OnlyFansAPI\Stories\StoryNewResponse; /** * APIs for managing OnlyFans stories. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type QuestionShape from \OnlyFansAPI\Stories\StoryCreateParams\Question + * @phpstan-import-type TextShape from \OnlyFansAPI\Stories\StoryCreateParams\Text + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class StoriesService implements StoriesContract { @@ -48,10 +52,14 @@ public function __construct(private Client $client) /** * @api * - * Post a new media or vault file to your story. + * Post a new media or vault file to your story, optionally with text overlays, @mentions, and a question sticker. Overlay elements are rendered by OnlyFans on top of your story media at view time. * * @param string $account The Account ID - * @param list $mediaFiles array of media file upload prefixed_ids, or OF media IDs (required if price is not 0) + * @param list $mediaFiles array of media file upload prefixed_ids, or OF vault media IDs + * @param int $canvasHeight Canvas height overlay positions are relative to. Default `1920`. + * @param int $canvasWidth Canvas width overlay positions are relative to. Default `1080`. + * @param Question|QuestionShape $question interactive question sticker viewers can answer + * @param list $texts text and @mention overlays * @param RequestOpts|null $requestOptions * * @throws APIException @@ -59,9 +67,21 @@ public function __construct(private Client $client) public function create( string $account, array $mediaFiles, + ?int $canvasHeight = null, + ?int $canvasWidth = null, + Question|array|null $question = null, + ?array $texts = null, RequestOptions|array|null $requestOptions = null, ): StoryNewResponse { - $params = Util::removeNulls(['mediaFiles' => $mediaFiles]); + $params = Util::removeNulls( + [ + 'mediaFiles' => $mediaFiles, + 'canvasHeight' => $canvasHeight, + 'canvasWidth' => $canvasWidth, + 'question' => $question, + 'texts' => $texts, + ], + ); // @phpstan-ignore-next-line argument.type $response = $this->raw->create($account, params: $params, requestOptions: $requestOptions); diff --git a/src/Services/SubscribersRawService.php b/src/Services/SubscribersRawService.php index c3c54a62..9880a3c1 100644 --- a/src/Services/SubscribersRawService.php +++ b/src/Services/SubscribersRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SubscribersRawContract; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse; -use Onlyfansapi\Subscribers\SubscriberRetrieveStatisticsParams; -use Onlyfansapi\Subscribers\SubscriberRetrieveStatisticsParams\Type; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SubscribersRawContract; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse; +use OnlyFansAPI\Subscribers\SubscriberRetrieveStatisticsParams; +use OnlyFansAPI\Subscribers\SubscriberRetrieveStatisticsParams\Type; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SubscribersRawService implements SubscribersRawContract { diff --git a/src/Services/SubscribersService.php b/src/Services/SubscribersService.php index 66f18030..391cd76b 100644 --- a/src/Services/SubscribersService.php +++ b/src/Services/SubscribersService.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\SubscribersContract; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse; -use Onlyfansapi\Subscribers\SubscriberRetrieveStatisticsParams\Type; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\SubscribersContract; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse; +use OnlyFansAPI\Subscribers\SubscriberRetrieveStatisticsParams\Type; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SubscribersService implements SubscribersContract { diff --git a/src/Services/TrackingLinks/TagsRawService.php b/src/Services/TrackingLinks/TagsRawService.php index b796d7d5..fe1e6189 100644 --- a/src/Services/TrackingLinks/TagsRawService.php +++ b/src/Services/TrackingLinks/TagsRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\TrackingLinks; +namespace OnlyFansAPI\Services\TrackingLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrackingLinks\TagsRawContract; -use Onlyfansapi\TrackingLinks\Tags\TagAddParams; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\TrackingLinks\Tags\TagListParams; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveParams; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrackingLinks\TagsRawContract; +use OnlyFansAPI\TrackingLinks\Tags\TagAddParams; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagListParams; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveParams; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse; /** * APIs for managing tracking links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsRawService implements TagsRawContract { diff --git a/src/Services/TrackingLinks/TagsService.php b/src/Services/TrackingLinks/TagsService.php index f201aa5f..843088e3 100644 --- a/src/Services/TrackingLinks/TagsService.php +++ b/src/Services/TrackingLinks/TagsService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\TrackingLinks; +namespace OnlyFansAPI\Services\TrackingLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrackingLinks\TagsContract; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrackingLinks\TagsContract; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse; /** * APIs for managing tracking links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsService implements TagsContract { diff --git a/src/Services/TrackingLinksRawService.php b/src/Services/TrackingLinksRawService.php index 21f4673c..e57ff2e8 100644 --- a/src/Services/TrackingLinksRawService.php +++ b/src/Services/TrackingLinksRawService.php @@ -2,37 +2,39 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrackingLinksRawContract; -use Onlyfansapi\TrackingLinks\TrackingLinkCreateParams; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteParams; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetCohortArpsParams; -use Onlyfansapi\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsParams; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sort; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sortby; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersParams; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersParams; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkRetrieveParams; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrackingLinksRawContract; +use OnlyFansAPI\TrackingLinks\TrackingLinkCreateParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetCohortArpsParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Pagination; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sort; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sortby; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\WithDeleted; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersParams; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkRetrieveParams; /** * APIs for managing tracking links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TrackingLinksRawService implements TrackingLinksRawContract { @@ -117,13 +119,14 @@ public function retrieve( * @param string $account The Account ID * @param array{ * endDate?: string|null, - * limit?: int|null, - * offset?: int|null, - * sort?: Sort|value-of|null, - * sortby?: Sortby|value-of|null, + * limit?: int, + * offset?: int, + * pagination?: Pagination|value-of, + * sort?: Sort|value-of, + * sortby?: Sortby|value-of, * startDate?: string|null, - * synchronous?: bool|null, - * withDeleted?: bool|null, + * synchronous?: bool, + * withDeleted?: WithDeleted|value-of, * }|TrackingLinkListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/TrackingLinksService.php b/src/Services/TrackingLinksService.php index d5e19024..f330fc39 100644 --- a/src/Services/TrackingLinksService.php +++ b/src/Services/TrackingLinksService.php @@ -2,29 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrackingLinksContract; -use Onlyfansapi\Services\TrackingLinks\TagsService; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sort; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sortby; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrackingLinksContract; +use OnlyFansAPI\Services\TrackingLinks\TagsService; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Pagination; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sort; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sortby; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\WithDeleted; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse; /** * APIs for managing tracking links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TrackingLinksService implements TrackingLinksContract { @@ -103,14 +105,15 @@ public function retrieve( * List all tracking links for the account and revenue data * * @param string $account The Account ID - * @param string|null $endDate The end date for Tracking Links. Keep empty to get all. - * @param int|null $limit The number of tracking links to return. Default `3` - * @param int|null $offset The offset used for pagination. Default `0` - * @param Sort|value-of|null $sort Sort the results. Default `desc` - * @param Sortby|value-of|null $sortby Sort by subscriber count (claims), or creation date - * @param string|null $startDate The start date for Tracking Links. Keep empty to get all. - * @param bool|null $synchronous Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false` - * @param bool|null $withDeleted Whether or not to include deleted tracking links in the response. Default `false` + * @param string|null $endDate The end date for tracking links. Keep empty to get all. Must not be greater than 255 characters. + * @param int $limit The number of tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Pagination|value-of $pagination + * @param Sort|value-of $sort Sort direction. Default `desc`. + * @param Sortby|value-of $sortby sort by subscriber count (`claims`) or creation date (`created_date`) + * @param string|null $startDate The start date for tracking links. Keep empty to get all. Must not be greater than 255 characters. + * @param bool $synchronous wait for revenue calculation instead of processing it in the background + * @param WithDeleted|value-of $withDeleted Whether to include deleted tracking links. Default `true`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -120,11 +123,12 @@ public function list( ?string $endDate = null, ?int $limit = null, ?int $offset = null, + Pagination|int|null $pagination = null, Sort|string|null $sort = null, Sortby|string|null $sortby = null, ?string $startDate = null, ?bool $synchronous = null, - ?bool $withDeleted = null, + WithDeleted|int|null $withDeleted = null, RequestOptions|array|null $requestOptions = null, ): TrackingLinkListResponse { $params = Util::removeNulls( @@ -132,6 +136,7 @@ public function list( 'endDate' => $endDate, 'limit' => $limit, 'offset' => $offset, + 'pagination' => $pagination, 'sort' => $sort, 'sortby' => $sortby, 'startDate' => $startDate, diff --git a/src/Services/TransactionsRawService.php b/src/Services/TransactionsRawService.php index 8b13e9f3..121f22b5 100644 --- a/src/Services/TransactionsRawService.php +++ b/src/Services/TransactionsRawService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TransactionsRawContract; -use Onlyfansapi\Transactions\TransactionListParams; -use Onlyfansapi\Transactions\TransactionListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TransactionsRawContract; +use OnlyFansAPI\Transactions\TransactionListParams; +use OnlyFansAPI\Transactions\TransactionListResponse; /** * APIs for managing OnlyFans transactions. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TransactionsRawService implements TransactionsRawContract { diff --git a/src/Services/TransactionsService.php b/src/Services/TransactionsService.php index 1d7cd85f..7dd99349 100644 --- a/src/Services/TransactionsService.php +++ b/src/Services/TransactionsService.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TransactionsContract; -use Onlyfansapi\Transactions\TransactionListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TransactionsContract; +use OnlyFansAPI\Transactions\TransactionListResponse; /** * APIs for managing OnlyFans transactions. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TransactionsService implements TransactionsContract { @@ -39,7 +39,7 @@ public function __construct(private Client $client) * @param string $account The Account ID * @param string $limit The number of transactions to return. Recommended: `10` * @param string $marker The marker used for pagination. Default: `null` - * @param string $startDate The start date for transactions list. Default: `-30days` + * @param string $startDate The start date for the transactions list. Defaults to 30 days ago. * @param string $tipsSource Filter tips by source. Only applies when `type=tips`. Options: `profile`, `post_all`, `chat`, `stream`, `story` * @param string $type Filter by transaction type. Options: `subscribes`, `tips`, `post`, `chat_messages`, `stream` * @param RequestOpts|null $requestOptions diff --git a/src/Services/TrialLinks/TagsRawService.php b/src/Services/TrialLinks/TagsRawService.php index ce7a9d87..25e37eb3 100644 --- a/src/Services/TrialLinks/TagsRawService.php +++ b/src/Services/TrialLinks/TagsRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\TrialLinks; +namespace OnlyFansAPI\Services\TrialLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrialLinks\TagsRawContract; -use Onlyfansapi\TrialLinks\Tags\TagAddParams; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse; -use Onlyfansapi\TrialLinks\Tags\TagListParams; -use Onlyfansapi\TrialLinks\Tags\TagListResponse; -use Onlyfansapi\TrialLinks\Tags\TagRemoveParams; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrialLinks\TagsRawContract; +use OnlyFansAPI\TrialLinks\Tags\TagAddParams; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrialLinks\Tags\TagListParams; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveParams; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse; /** * APIs for managing Free Trial Links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsRawService implements TagsRawContract { diff --git a/src/Services/TrialLinks/TagsService.php b/src/Services/TrialLinks/TagsService.php index bfe04405..9e69442c 100644 --- a/src/Services/TrialLinks/TagsService.php +++ b/src/Services/TrialLinks/TagsService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\TrialLinks; +namespace OnlyFansAPI\Services\TrialLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrialLinks\TagsContract; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse; -use Onlyfansapi\TrialLinks\Tags\TagListResponse; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrialLinks\TagsContract; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse; /** * APIs for managing Free Trial Links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TagsService implements TagsContract { diff --git a/src/Services/TrialLinksRawService.php b/src/Services/TrialLinksRawService.php index 05d6dc74..07e9f67c 100644 --- a/src/Services/TrialLinksRawService.php +++ b/src/Services/TrialLinksRawService.php @@ -2,39 +2,39 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrialLinksRawContract; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\Duration; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\OfferLimit; -use Onlyfansapi\TrialLinks\TrialLinkDeleteParams; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse; -use Onlyfansapi\TrialLinks\TrialLinkListParams; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Field; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Sort; -use Onlyfansapi\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersParams; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersParams; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveCohortArpsParams; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveParams; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveStatsParams; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrialLinksRawContract; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\Duration; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\OfferLimit; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteParams; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListParams; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Field; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Sort; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersParams; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersParams; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveCohortArpsParams; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveParams; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveStatsParams; /** * APIs for managing Free Trial Links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TrialLinksRawService implements TrialLinksRawContract { @@ -124,11 +124,13 @@ public function retrieve( * * @param string $account The Account ID * @param array{ - * limit: int, - * offset: int, - * field?: Field|value-of|null, - * sort?: Sort|value-of|null, - * synchronous?: bool|null, + * endDate?: string|null, + * field?: Field|value-of, + * limit?: int, + * offset?: int, + * sort?: Sort|value-of, + * startDate?: string|null, + * synchronous?: bool, * }|TrialLinkListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/TrialLinksService.php b/src/Services/TrialLinksService.php index 9aa21abc..649486c4 100644 --- a/src/Services/TrialLinksService.php +++ b/src/Services/TrialLinksService.php @@ -2,31 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\TrialLinksContract; -use Onlyfansapi\Services\TrialLinks\TagsService; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\Duration; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\OfferLimit; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Field; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Sort; -use Onlyfansapi\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\TrialLinksContract; +use OnlyFansAPI\Services\TrialLinks\TagsService; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\Duration; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\OfferLimit; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Field; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Sort; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; /** * APIs for managing Free Trial Links. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class TrialLinksService implements TrialLinksContract { @@ -119,30 +119,36 @@ public function retrieve( * List all free trial links for the account, including the details and statistics * * @param string $account The Account ID - * @param int $limit The number of trial links to return. Default `10` - * @param int $offset The offset used for pagination. Default `0` - * @param Field|value-of|null $field Sort the results by a field. Default `create_date` - * @param Sort|value-of|null $sort Sort the results. Default `desc` - * @param bool|null $synchronous Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false` + * @param string|null $endDate The end date for trial links. Keep empty to get all. Must not be greater than 255 characters. + * @param Field|value-of $field Field to sort by. Default `create_date`. + * @param int $limit The number of trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. + * @param int $offset The offset used for pagination. Default `0`. Must be at least 0. + * @param Sort|value-of $sort Sort direction. Default `desc`. + * @param string|null $startDate The start date for trial links. Keep empty to get all. Must not be greater than 255 characters. + * @param bool $synchronous wait for revenue calculation instead of processing it in the background * @param RequestOpts|null $requestOptions * * @throws APIException */ public function list( string $account, - int $limit, - int $offset, + ?string $endDate = null, Field|string|null $field = null, + ?int $limit = null, + ?int $offset = null, Sort|string|null $sort = null, + ?string $startDate = null, ?bool $synchronous = null, RequestOptions|array|null $requestOptions = null, ): TrialLinkListResponse { $params = Util::removeNulls( [ + 'endDate' => $endDate, + 'field' => $field, 'limit' => $limit, 'offset' => $offset, - 'field' => $field, 'sort' => $sort, + 'startDate' => $startDate, 'synchronous' => $synchronous, ], ); diff --git a/src/Services/UserLists/UsersRawService.php b/src/Services/UserLists/UsersRawService.php index b6e883b2..8323695e 100644 --- a/src/Services/UserLists/UsersRawService.php +++ b/src/Services/UserLists/UsersRawService.php @@ -2,28 +2,30 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\UserLists; +namespace OnlyFansAPI\Services\UserLists; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\UserLists\UsersRawContract; -use Onlyfansapi\UserLists\Users\UserAddParams; -use Onlyfansapi\UserLists\Users\UserAddResponse; -use Onlyfansapi\UserLists\Users\UserClearParams; -use Onlyfansapi\UserLists\Users\UserClearResponse; -use Onlyfansapi\UserLists\Users\UserListParams; -use Onlyfansapi\UserLists\Users\UserListPinnedParams; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse; -use Onlyfansapi\UserLists\Users\UserListResponse; -use Onlyfansapi\UserLists\Users\UserPinParams; -use Onlyfansapi\UserLists\Users\UserPinResponse; -use Onlyfansapi\UserLists\Users\UserRemoveParams; -use Onlyfansapi\UserLists\Users\UserRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\UserLists\UsersRawContract; +use OnlyFansAPI\UserLists\Users\UserAddParams; +use OnlyFansAPI\UserLists\Users\UserAddResponse; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1; +use OnlyFansAPI\UserLists\Users\UserClearParams; +use OnlyFansAPI\UserLists\Users\UserClearResponse; +use OnlyFansAPI\UserLists\Users\UserListParams; +use OnlyFansAPI\UserLists\Users\UserListPinnedParams; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse; +use OnlyFansAPI\UserLists\Users\UserListResponse; +use OnlyFansAPI\UserLists\Users\UserPinParams; +use OnlyFansAPI\UserLists\Users\UserPinResponse; +use OnlyFansAPI\UserLists\Users\UserRemoveParams; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UsersRawService implements UsersRawContract { @@ -76,10 +78,12 @@ public function list( * Add multiple Users To OnlyFans User List * * @param string $userListID Path param: OnlyFans User List ID, or a default list name like `tagged` - * @param array{account: string, ids: list}|UserAddParams $params + * @param array{ + * account: string, ids: list, skipInvalid?: bool + * }|UserAddParams $params * @param RequestOpts|null $requestOptions * - * @return BaseResponse + * @return BaseResponse * * @throws APIException */ diff --git a/src/Services/UserLists/UsersService.php b/src/Services/UserLists/UsersService.php index 7744816c..afb31b84 100644 --- a/src/Services/UserLists/UsersService.php +++ b/src/Services/UserLists/UsersService.php @@ -2,22 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\UserLists; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\UserLists\UsersContract; -use Onlyfansapi\UserLists\Users\UserAddResponse; -use Onlyfansapi\UserLists\Users\UserClearResponse; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse; -use Onlyfansapi\UserLists\Users\UserListResponse; -use Onlyfansapi\UserLists\Users\UserPinResponse; -use Onlyfansapi\UserLists\Users\UserRemoveResponse; +namespace OnlyFansAPI\Services\UserLists; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\UserLists\UsersContract; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1; +use OnlyFansAPI\UserLists\Users\UserClearResponse; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse; +use OnlyFansAPI\UserLists\Users\UserListResponse; +use OnlyFansAPI\UserLists\Users\UserPinResponse; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UsersService implements UsersContract { @@ -72,6 +73,7 @@ public function list( * @param string $userListID Path param: OnlyFans User List ID, or a default list name like `tagged` * @param string $account Path param: The Account ID * @param list $ids Body param: Array of OnlyFans User IDs to be added into the list + * @param bool $skipInvalid Body param: Set to `true` to skip the User IDs OnlyFans refuses instead of failing the whole batch. We drop the rejected IDs and retry the remainder for you (up to 5 OnlyFans attempts, each costing 1 credit), then respond `200` with `data.added` (the IDs that made it in) and `data.failed` (an object mapping each rejected User ID to the reason OnlyFans gave). Note this changes the shape of `data` — see the example responses. Failures that are not about individual users (e.g. an invalid or inaccessible list ID) still return the regular `400`. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -80,9 +82,12 @@ public function add( string $userListID, string $account, array $ids, + ?bool $skipInvalid = null, RequestOptions|array|null $requestOptions = null, - ): UserAddResponse { - $params = Util::removeNulls(['account' => $account, 'ids' => $ids]); + ): UnionMember0|UnionMember1 { + $params = Util::removeNulls( + ['account' => $account, 'ids' => $ids, 'skipInvalid' => $skipInvalid] + ); // @phpstan-ignore-next-line argument.type $response = $this->raw->add($userListID, params: $params, requestOptions: $requestOptions); diff --git a/src/Services/UserListsRawService.php b/src/Services/UserListsRawService.php index 7ec6b93b..50c80667 100644 --- a/src/Services/UserListsRawService.php +++ b/src/Services/UserListsRawService.php @@ -2,26 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\UserListsRawContract; -use Onlyfansapi\UserLists\UserListCreateParams; -use Onlyfansapi\UserLists\UserListDeleteParams; -use Onlyfansapi\UserLists\UserListDeleteResponse; -use Onlyfansapi\UserLists\UserListGetResponse; -use Onlyfansapi\UserLists\UserListListParams; -use Onlyfansapi\UserLists\UserListListResponse; -use Onlyfansapi\UserLists\UserListNewResponse; -use Onlyfansapi\UserLists\UserListRetrieveParams; -use Onlyfansapi\UserLists\UserListUpdateParams; -use Onlyfansapi\UserLists\UserListUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\UserListsRawContract; +use OnlyFansAPI\UserLists\UserListCreateParams; +use OnlyFansAPI\UserLists\UserListDeleteParams; +use OnlyFansAPI\UserLists\UserListDeleteResponse; +use OnlyFansAPI\UserLists\UserListGetResponse; +use OnlyFansAPI\UserLists\UserListListParams; +use OnlyFansAPI\UserLists\UserListListParams\View; +use OnlyFansAPI\UserLists\UserListListResponse; +use OnlyFansAPI\UserLists\UserListNewResponse; +use OnlyFansAPI\UserLists\UserListRetrieveParams; +use OnlyFansAPI\UserLists\UserListUpdateParams; +use OnlyFansAPI\UserLists\UserListUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UserListsRawService implements UserListsRawContract { @@ -138,10 +139,12 @@ public function update( /** * @api * - * Get a list of OnlyFans Collections - User Lists + * Get a list of OnlyFans Collections - User Lists. If you only want to get User Lists available for sending a Mass-Message, use `?view=queue` * * @param string $account The Account ID - * @param array{limit?: int|null, offset?: int|null}|UserListListParams $params + * @param array{ + * limit?: int|null, offset?: int|null, view?: View|value-of + * }|UserListListParams $params * @param RequestOpts|null $requestOptions * * @return BaseResponse diff --git a/src/Services/UserListsService.php b/src/Services/UserListsService.php index 28cb2508..4efb6753 100644 --- a/src/Services/UserListsService.php +++ b/src/Services/UserListsService.php @@ -2,22 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\UserListsContract; -use Onlyfansapi\Services\UserLists\UsersService; -use Onlyfansapi\UserLists\UserListDeleteResponse; -use Onlyfansapi\UserLists\UserListGetResponse; -use Onlyfansapi\UserLists\UserListListResponse; -use Onlyfansapi\UserLists\UserListNewResponse; -use Onlyfansapi\UserLists\UserListUpdateResponse; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\UserListsContract; +use OnlyFansAPI\Services\UserLists\UsersService; +use OnlyFansAPI\UserLists\UserListDeleteResponse; +use OnlyFansAPI\UserLists\UserListGetResponse; +use OnlyFansAPI\UserLists\UserListListParams\View; +use OnlyFansAPI\UserLists\UserListListResponse; +use OnlyFansAPI\UserLists\UserListNewResponse; +use OnlyFansAPI\UserLists\UserListUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UserListsService implements UserListsContract { @@ -125,11 +126,12 @@ public function update( /** * @api * - * Get a list of OnlyFans Collections - User Lists + * Get a list of OnlyFans Collections - User Lists. If you only want to get User Lists available for sending a Mass-Message, use `?view=queue` * * @param string $account The Account ID * @param int|null $limit How many results to return in the request. Max. 50 user lists. Must be at least 10. Must not be greater than 50. * @param int|null $offset must be at least 0 + * @param View|value-of $view How to return the results. `queue` returns the user lists that are available for Mass-Messaging. * @param RequestOpts|null $requestOptions * * @throws APIException @@ -138,9 +140,12 @@ public function list( string $account, ?int $limit = null, ?int $offset = null, + View|string|null $view = null, RequestOptions|array|null $requestOptions = null, ): UserListListResponse { - $params = Util::removeNulls(['limit' => $limit, 'offset' => $offset]); + $params = Util::removeNulls( + ['limit' => $limit, 'offset' => $offset, 'view' => $view] + ); // @phpstan-ignore-next-line argument.type $response = $this->raw->list($account, params: $params, requestOptions: $requestOptions); diff --git a/src/Services/Users/BlockRawService.php b/src/Services/Users/BlockRawService.php index 1b4183cb..e63c2675 100644 --- a/src/Services/Users/BlockRawService.php +++ b/src/Services/Users/BlockRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Users; +namespace OnlyFansAPI\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Users\BlockRawContract; -use Onlyfansapi\Users\Block\BlockCreateParams; -use Onlyfansapi\Users\Block\BlockDeleteParams; -use Onlyfansapi\Users\Block\BlockDeleteResponse; -use Onlyfansapi\Users\Block\BlockNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Users\BlockRawContract; +use OnlyFansAPI\Users\Block\BlockCreateParams; +use OnlyFansAPI\Users\Block\BlockDeleteParams; +use OnlyFansAPI\Users\Block\BlockDeleteResponse; +use OnlyFansAPI\Users\Block\BlockNewResponse; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BlockRawService implements BlockRawContract { diff --git a/src/Services/Users/BlockService.php b/src/Services/Users/BlockService.php index 33d28f58..9015ab05 100644 --- a/src/Services/Users/BlockService.php +++ b/src/Services/Users/BlockService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Users; +namespace OnlyFansAPI\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Users\BlockContract; -use Onlyfansapi\Users\Block\BlockDeleteResponse; -use Onlyfansapi\Users\Block\BlockNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Users\BlockContract; +use OnlyFansAPI\Users\Block\BlockDeleteResponse; +use OnlyFansAPI\Users\Block\BlockNewResponse; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class BlockService implements BlockContract { diff --git a/src/Services/Users/RestrictRawService.php b/src/Services/Users/RestrictRawService.php index b1eff478..01871eae 100644 --- a/src/Services/Users/RestrictRawService.php +++ b/src/Services/Users/RestrictRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Users; +namespace OnlyFansAPI\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Users\RestrictRawContract; -use Onlyfansapi\Users\Restrict\RestrictCreateParams; -use Onlyfansapi\Users\Restrict\RestrictDeleteParams; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse; -use Onlyfansapi\Users\Restrict\RestrictNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Users\RestrictRawContract; +use OnlyFansAPI\Users\Restrict\RestrictCreateParams; +use OnlyFansAPI\Users\Restrict\RestrictDeleteParams; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class RestrictRawService implements RestrictRawContract { diff --git a/src/Services/Users/RestrictService.php b/src/Services/Users/RestrictService.php index a5795c71..109cc510 100644 --- a/src/Services/Users/RestrictService.php +++ b/src/Services/Users/RestrictService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Users; +namespace OnlyFansAPI\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Users\RestrictContract; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse; -use Onlyfansapi\Users\Restrict\RestrictNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Users\RestrictContract; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class RestrictService implements RestrictContract { diff --git a/src/Services/Users/SubscribeRawService.php b/src/Services/Users/SubscribeRawService.php index dd68f534..5fbf6b98 100644 --- a/src/Services/Users/SubscribeRawService.php +++ b/src/Services/Users/SubscribeRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Users; +namespace OnlyFansAPI\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Users\SubscribeRawContract; -use Onlyfansapi\Users\Subscribe\SubscribeCreateParams; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteParams; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Users\SubscribeRawContract; +use OnlyFansAPI\Users\Subscribe\SubscribeCreateParams; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteParams; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SubscribeRawService implements SubscribeRawContract { diff --git a/src/Services/Users/SubscribeService.php b/src/Services/Users/SubscribeService.php index f8dc4068..c958a05f 100644 --- a/src/Services/Users/SubscribeService.php +++ b/src/Services/Users/SubscribeService.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Services\Users; +namespace OnlyFansAPI\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\Users\SubscribeContract; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\Users\SubscribeContract; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class SubscribeService implements SubscribeContract { diff --git a/src/Services/UsersRawService.php b/src/Services/UsersRawService.php index b598bb30..ca89cae3 100644 --- a/src/Services/UsersRawService.php +++ b/src/Services/UsersRawService.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\UsersRawContract; -use Onlyfansapi\Users\UserGetResponse; -use Onlyfansapi\Users\UserListParams; -use Onlyfansapi\Users\UserListResponse; -use Onlyfansapi\Users\UserRetrieveParams; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\UsersRawContract; +use OnlyFansAPI\Users\UserGetResponse; +use OnlyFansAPI\Users\UserListParams; +use OnlyFansAPI\Users\UserListResponse; +use OnlyFansAPI\Users\UserRetrieveParams; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UsersRawService implements UsersRawContract { diff --git a/src/Services/UsersService.php b/src/Services/UsersService.php index 7535b0d4..92ab732b 100644 --- a/src/Services/UsersService.php +++ b/src/Services/UsersService.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\UsersContract; -use Onlyfansapi\Services\Users\BlockService; -use Onlyfansapi\Services\Users\RestrictService; -use Onlyfansapi\Services\Users\SubscribeService; -use Onlyfansapi\Users\UserGetResponse; -use Onlyfansapi\Users\UserListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\UsersContract; +use OnlyFansAPI\Services\Users\BlockService; +use OnlyFansAPI\Services\Users\RestrictService; +use OnlyFansAPI\Services\Users\SubscribeService; +use OnlyFansAPI\Users\UserGetResponse; +use OnlyFansAPI\Users\UserListResponse; /** * APIs for fetching OnlyFans users. * - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class UsersService implements UsersContract { diff --git a/src/Services/WebhooksRawService.php b/src/Services/WebhooksRawService.php index 17b3812c..1b26a8ac 100644 --- a/src/Services/WebhooksRawService.php +++ b/src/Services/WebhooksRawService.php @@ -2,24 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Conversion\MapOf; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\WebhooksRawContract; -use Onlyfansapi\Webhooks\WebhookCreateParams; -use Onlyfansapi\Webhooks\WebhookGetResponse; -use Onlyfansapi\Webhooks\WebhookListEventsResponse; -use Onlyfansapi\Webhooks\WebhookListResponse; -use Onlyfansapi\Webhooks\WebhookNewResponse; -use Onlyfansapi\Webhooks\WebhookUpdateParams; -use Onlyfansapi\Webhooks\WebhookUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Conversion\MapOf; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\WebhooksRawContract; +use OnlyFansAPI\Webhooks\WebhookCreateParams; +use OnlyFansAPI\Webhooks\WebhookGetResponse; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse; +use OnlyFansAPI\Webhooks\WebhookListResponse; +use OnlyFansAPI\Webhooks\WebhookNewResponse; +use OnlyFansAPI\Webhooks\WebhookUpdateParams; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class WebhooksRawService implements WebhooksRawContract { diff --git a/src/Services/WebhooksService.php b/src/Services/WebhooksService.php index 6453a35d..1f5d4cee 100644 --- a/src/Services/WebhooksService.php +++ b/src/Services/WebhooksService.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; - -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\WebhooksContract; -use Onlyfansapi\Webhooks\WebhookGetResponse; -use Onlyfansapi\Webhooks\WebhookListEventsResponse; -use Onlyfansapi\Webhooks\WebhookListResponse; -use Onlyfansapi\Webhooks\WebhookNewResponse; -use Onlyfansapi\Webhooks\WebhookUpdateResponse; +namespace OnlyFansAPI\Services; + +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\WebhooksContract; +use OnlyFansAPI\Webhooks\WebhookGetResponse; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse; +use OnlyFansAPI\Webhooks\WebhookListResponse; +use OnlyFansAPI\Webhooks\WebhookNewResponse; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class WebhooksService implements WebhooksContract { @@ -38,10 +38,10 @@ public function __construct(private Client $client) * * Create a new webhook for your Team * - * @param string $accountScope The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * @param string $accountScope The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. * @param string $endpointURL the URL of your webhook endpoint - * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. - * @param list $accountIDs An array of account IDs to apply the scope to. Required unless account_scope is "global". + * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. + * @param list $accountIDs An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * @param string|null $signingSecret optionally, add a signing secret to protect your webhook * @param RequestOpts|null $requestOptions * @@ -97,10 +97,10 @@ public function retrieve( * Update an existing webhook * * @param string $webhookID The ID of the webhook - * @param string $accountScope The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * @param string $accountScope The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. * @param string $endpointURL the URL of your webhook endpoint - * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. - * @param list $accountIDs An array of account IDs to apply the scope to. Required unless account_scope is "global". + * @param list $events An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. + * @param list $accountIDs An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * @param bool|null $enabled Optionally, enabled/disable the webhook. This will stop/resume the sending of events, without having to delete the webhook. * @param RequestOpts|null $requestOptions * diff --git a/src/Services/WhoamiRawService.php b/src/Services/WhoamiRawService.php index 4dd7365b..928aaacc 100644 --- a/src/Services/WhoamiRawService.php +++ b/src/Services/WhoamiRawService.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Contracts\BaseResponse; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\WhoamiRawContract; -use Onlyfansapi\Whoami\WhoamiGetResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Contracts\BaseResponse; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\WhoamiRawContract; +use OnlyFansAPI\Whoami\WhoamiGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class WhoamiRawService implements WhoamiRawContract { diff --git a/src/Services/WhoamiService.php b/src/Services/WhoamiService.php index 088116c8..cbd37e8f 100644 --- a/src/Services/WhoamiService.php +++ b/src/Services/WhoamiService.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\Services; +namespace OnlyFansAPI\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Exceptions\APIException; -use Onlyfansapi\RequestOptions; -use Onlyfansapi\ServiceContracts\WhoamiContract; -use Onlyfansapi\Whoami\WhoamiGetResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Exceptions\APIException; +use OnlyFansAPI\RequestOptions; +use OnlyFansAPI\ServiceContracts\WhoamiContract; +use OnlyFansAPI\Whoami\WhoamiGetResponse; /** - * @phpstan-import-type RequestOpts from \Onlyfansapi\RequestOptions + * @phpstan-import-type RequestOpts from \OnlyFansAPI\RequestOptions */ final class WhoamiService implements WhoamiContract { diff --git a/src/Settings/BlockedCountries/BlockedCountryGetResponse.php b/src/Settings/BlockedCountries/BlockedCountryGetResponse.php index 97618bc7..c763ed71 100644 --- a/src/Settings/BlockedCountries/BlockedCountryGetResponse.php +++ b/src/Settings/BlockedCountries/BlockedCountryGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries; +namespace OnlyFansAPI\Settings\BlockedCountries; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\Data * * @phpstan-type BlockedCountryGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/BlockedCountries/BlockedCountryGetResponse/Data.php b/src/Settings/BlockedCountries/BlockedCountryGetResponse/Data.php index cc1287ff..e403e3a3 100644 --- a/src/Settings/BlockedCountries/BlockedCountryGetResponse/Data.php +++ b/src/Settings/BlockedCountries/BlockedCountryGetResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{blockedCountries?: list|null} diff --git a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta.php b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta.php index b999afcb..5ac80471 100644 --- a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta.php +++ b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Cache; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Credits; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Cache.php b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Cache.php index 290f7040..a89dc5b3 100644 --- a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Cache.php +++ b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Credits.php b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Credits.php index eac6bbe9..2945b613 100644 --- a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Credits.php +++ b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_RateLimits.php b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_RateLimits.php index 2efd5a4f..d57fab3f 100644 --- a/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_RateLimits.php +++ b/src/Settings/BlockedCountries/BlockedCountryGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/BlockedCountries/BlockedCountryUpdateParams.php b/src/Settings/BlockedCountries/BlockedCountryUpdateParams.php index fff18893..73b93de1 100644 --- a/src/Settings/BlockedCountries/BlockedCountryUpdateParams.php +++ b/src/Settings/BlockedCountries/BlockedCountryUpdateParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries; +namespace OnlyFansAPI\Settings\BlockedCountries; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Updates the countries blocked from viewing the account. * - * @see Onlyfansapi\Services\Settings\BlockedCountriesService::update() + * @see OnlyFansAPI\Services\Settings\BlockedCountriesService::update() * * @phpstan-type BlockedCountryUpdateParamsShape = array{ * blockedCountries: list, blockedStates?: list|null diff --git a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse.php b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse.php index 3d727519..1461cd64 100644 --- a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse.php +++ b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries; +namespace OnlyFansAPI\Settings\BlockedCountries; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\Data * * @phpstan-type BlockedCountryUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/Data.php b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/Data.php index f30cb7c5..0418cb9d 100644 --- a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/Data.php +++ b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta.php b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta.php index be695cba..935a6ada 100644 --- a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta.php +++ b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Cache; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Credits; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Cache.php b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Cache.php index fe71f3c6..0495b7db 100644 --- a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Cache.php +++ b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Credits.php b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Credits.php index 15685b15..36830a5b 100644 --- a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Credits.php +++ b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_RateLimits.php b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_RateLimits.php index 54526834..8fa881a4 100644 --- a/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_RateLimits.php +++ b/src/Settings/BlockedCountries/BlockedCountryUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SettingCheckUsernameAvailabilityParams.php b/src/Settings/SettingCheckUsernameAvailabilityParams.php index 9126b000..953743ee 100644 --- a/src/Settings/SettingCheckUsernameAvailabilityParams.php +++ b/src/Settings/SettingCheckUsernameAvailabilityParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings; +namespace OnlyFansAPI\Settings; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Check if a username is taken. Returns `false` if the username is available, `true` if it is already taken. * - * @see Onlyfansapi\Services\SettingsService::checkUsernameAvailability() + * @see OnlyFansAPI\Services\SettingsService::checkUsernameAvailability() * * @phpstan-type SettingCheckUsernameAvailabilityParamsShape = array{ * username: string diff --git a/src/Settings/SettingCheckUsernameAvailabilityResponse.php b/src/Settings/SettingCheckUsernameAvailabilityResponse.php index cd2cba3c..f80fff03 100644 --- a/src/Settings/SettingCheckUsernameAvailabilityResponse.php +++ b/src/Settings/SettingCheckUsernameAvailabilityResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings; +namespace OnlyFansAPI\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\Data * * @phpstan-type SettingCheckUsernameAvailabilityResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/SettingCheckUsernameAvailabilityResponse/Data.php b/src/Settings/SettingCheckUsernameAvailabilityResponse/Data.php index c5f76a00..c5a58010 100644 --- a/src/Settings/SettingCheckUsernameAvailabilityResponse/Data.php +++ b/src/Settings/SettingCheckUsernameAvailabilityResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse; +namespace OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta.php b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta.php index 4977f262..7e9ac238 100644 --- a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta.php +++ b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse; +namespace OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Cache.php b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Cache.php index 79125905..cddfc9ca 100644 --- a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Cache.php +++ b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Credits.php b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Credits.php index 4e4c3bf6..571d0a8b 100644 --- a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Credits.php +++ b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_RateLimits.php b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_RateLimits.php index df453b8a..5934b3d8 100644 --- a/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_RateLimits.php +++ b/src/Settings/SettingCheckUsernameAvailabilityResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SettingGetResponse.php b/src/Settings/SettingGetResponse.php index e4f2b1a4..6d3c838d 100644 --- a/src/Settings/SettingGetResponse.php +++ b/src/Settings/SettingGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings; +namespace OnlyFansAPI\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Settings\SettingGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingGetResponse\_Meta; +use OnlyFansAPI\Settings\SettingGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SettingGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SettingGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SettingGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SettingGetResponse\Data * * @phpstan-type SettingGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/SettingGetResponse/Data.php b/src/Settings/SettingGetResponse/Data.php index ca960f26..6fd2d46c 100644 --- a/src/Settings/SettingGetResponse/Data.php +++ b/src/Settings/SettingGetResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse; +namespace OnlyFansAPI\Settings\SettingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle; /** - * @phpstan-import-type CanAddSubscriberByBundleShape from \Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle + * @phpstan-import-type CanAddSubscriberByBundleShape from \OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle * * @phpstan-type DataShape = array{ * activityHubAllowed?: bool|null, diff --git a/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle.php b/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle.php index 19c36752..fdfa7b37 100644 --- a/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle.php +++ b/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse\Data; +namespace OnlyFansAPI\Settings\SettingGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Discounts; -use Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Durations; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Discounts; +use OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Durations; /** - * @phpstan-import-type DiscountsShape from \Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Discounts - * @phpstan-import-type DurationsShape from \Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Durations + * @phpstan-import-type DiscountsShape from \OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Discounts + * @phpstan-import-type DurationsShape from \OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle\Durations * * @phpstan-type CanAddSubscriberByBundleShape = array{ * discounts?: null|Discounts|DiscountsShape, diff --git a/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Discounts.php b/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Discounts.php index 27176cd7..01c59b67 100644 --- a/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Discounts.php +++ b/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Discounts.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle; +namespace OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DiscountsShape = array{ diff --git a/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Durations.php b/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Durations.php index 54a6ead3..41da2bef 100644 --- a/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Durations.php +++ b/src/Settings/SettingGetResponse/Data/CanAddSubscriberByBundle/Durations.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle; +namespace OnlyFansAPI\Settings\SettingGetResponse\Data\CanAddSubscriberByBundle; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DurationsShape = array{ diff --git a/src/Settings/SettingGetResponse/_Meta.php b/src/Settings/SettingGetResponse/_Meta.php index a80d033a..d8bc4538 100644 --- a/src/Settings/SettingGetResponse/_Meta.php +++ b/src/Settings/SettingGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse; +namespace OnlyFansAPI\Settings\SettingGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingGetResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SettingGetResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SettingGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingGetResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SettingGetResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SettingGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SettingGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SettingGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SettingGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SettingGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SettingGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SettingGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SettingGetResponse/_Meta/_Cache.php b/src/Settings/SettingGetResponse/_Meta/_Cache.php index 027a9070..695bfa55 100644 --- a/src/Settings/SettingGetResponse/_Meta/_Cache.php +++ b/src/Settings/SettingGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SettingGetResponse/_Meta/_Credits.php b/src/Settings/SettingGetResponse/_Meta/_Credits.php index 3448d791..ee9ecf3a 100644 --- a/src/Settings/SettingGetResponse/_Meta/_Credits.php +++ b/src/Settings/SettingGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SettingGetResponse/_Meta/_RateLimits.php b/src/Settings/SettingGetResponse/_Meta/_RateLimits.php index cbe1df05..2a773fed 100644 --- a/src/Settings/SettingGetResponse/_Meta/_RateLimits.php +++ b/src/Settings/SettingGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingGetResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SettingUpdateProfileParams.php b/src/Settings/SettingUpdateProfileParams.php index dbbd149a..d3b60610 100644 --- a/src/Settings/SettingUpdateProfileParams.php +++ b/src/Settings/SettingUpdateProfileParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings; +namespace OnlyFansAPI\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Updates the account profile. **Only include the fields you want to update.** To make a field empty, set it to `null`. * - * @see Onlyfansapi\Services\SettingsService::updateProfile() + * @see OnlyFansAPI\Services\SettingsService::updateProfile() * * @phpstan-type SettingUpdateProfileParamsShape = array{ * about?: string|null, diff --git a/src/Settings/SettingUpdateProfileResponse.php b/src/Settings/SettingUpdateProfileResponse.php index ca704604..2303c910 100644 --- a/src/Settings/SettingUpdateProfileResponse.php +++ b/src/Settings/SettingUpdateProfileResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings; +namespace OnlyFansAPI\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta; -use Onlyfansapi\Settings\SettingUpdateProfileResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SettingUpdateProfileResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SettingUpdateProfileResponse\Data * * @phpstan-type SettingUpdateProfileResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/SettingUpdateProfileResponse/Data.php b/src/Settings/SettingUpdateProfileResponse/Data.php index 57cde1ab..43a09b80 100644 --- a/src/Settings/SettingUpdateProfileResponse/Data.php +++ b/src/Settings/SettingUpdateProfileResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateProfileResponse; +namespace OnlyFansAPI\Settings\SettingUpdateProfileResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Settings/SettingUpdateProfileResponse/_Meta.php b/src/Settings/SettingUpdateProfileResponse/_Meta.php index f5f44f1f..925b11b5 100644 --- a/src/Settings/SettingUpdateProfileResponse/_Meta.php +++ b/src/Settings/SettingUpdateProfileResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateProfileResponse; +namespace OnlyFansAPI\Settings\SettingUpdateProfileResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SettingUpdateProfileResponse/_Meta/_Cache.php b/src/Settings/SettingUpdateProfileResponse/_Meta/_Cache.php index 2ce0bc39..a7a0eb5d 100644 --- a/src/Settings/SettingUpdateProfileResponse/_Meta/_Cache.php +++ b/src/Settings/SettingUpdateProfileResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SettingUpdateProfileResponse/_Meta/_Credits.php b/src/Settings/SettingUpdateProfileResponse/_Meta/_Credits.php index 22ba898e..5df29f88 100644 --- a/src/Settings/SettingUpdateProfileResponse/_Meta/_Credits.php +++ b/src/Settings/SettingUpdateProfileResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SettingUpdateProfileResponse/_Meta/_RateLimits.php b/src/Settings/SettingUpdateProfileResponse/_Meta/_RateLimits.php index a23e083b..f2a29d0b 100644 --- a/src/Settings/SettingUpdateProfileResponse/_Meta/_RateLimits.php +++ b/src/Settings/SettingUpdateProfileResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateProfileResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingUpdateProfileResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SettingUpdateSubscriptionPriceParams.php b/src/Settings/SettingUpdateSubscriptionPriceParams.php index d618a8ee..cca342a6 100644 --- a/src/Settings/SettingUpdateSubscriptionPriceParams.php +++ b/src/Settings/SettingUpdateSubscriptionPriceParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings; +namespace OnlyFansAPI\Settings; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Update the account subscription price. Send `0` or `"free"` to make the account free. ⚠️ WARNING! OnlyFans limits updating the subscription price to max. 3 times per day. * - * @see Onlyfansapi\Services\SettingsService::updateSubscriptionPrice() + * @see OnlyFansAPI\Services\SettingsService::updateSubscriptionPrice() * * @phpstan-type SettingUpdateSubscriptionPriceParamsShape = array{price: string} */ diff --git a/src/Settings/SettingUpdateSubscriptionPriceResponse.php b/src/Settings/SettingUpdateSubscriptionPriceResponse.php index 81b71e98..b899d346 100644 --- a/src/Settings/SettingUpdateSubscriptionPriceResponse.php +++ b/src/Settings/SettingUpdateSubscriptionPriceResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings; +namespace OnlyFansAPI\Settings; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\Data * * @phpstan-type SettingUpdateSubscriptionPriceResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/SettingUpdateSubscriptionPriceResponse/Data.php b/src/Settings/SettingUpdateSubscriptionPriceResponse/Data.php index e7ba292e..e521ba01 100644 --- a/src/Settings/SettingUpdateSubscriptionPriceResponse/Data.php +++ b/src/Settings/SettingUpdateSubscriptionPriceResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse; +namespace OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta.php b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta.php index a7b50a18..3500dc13 100644 --- a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta.php +++ b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse; +namespace OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Cache.php b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Cache.php index 1e3027f3..87e8a5c8 100644 --- a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Cache.php +++ b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Credits.php b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Credits.php index d4c62d39..a749262c 100644 --- a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Credits.php +++ b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_RateLimits.php b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_RateLimits.php index ee247258..4853f889 100644 --- a/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_RateLimits.php +++ b/src/Settings/SettingUpdateSubscriptionPriceResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; +namespace OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams.php index 8670f11e..be93b7b5 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddParams\Type; /** * Adds a new social media button to the account. * - * @see Onlyfansapi\Services\Settings\SocialMediaButtonsService::add() + * @see OnlyFansAPI\Services\Settings\SocialMediaButtonsService::add() * * @phpstan-type SocialMediaButtonAddParamsShape = array{ * label: string, type: Type|value-of, value: string diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams/Type.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams/Type.php index e7c31850..db054307 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams/Type.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddParams; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddParams; /** * The button type. diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse.php index dd7f7588..1e1ad553 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\Data * * @phpstan-type SocialMediaButtonAddResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/Data.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/Data.php index 6a5bd2ab..d08e8d72 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/Data.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta.php index 4d06a7b4..6f0614a8 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Cache.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Cache.php index 4e740365..e19e29e3 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Cache.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Credits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Credits.php index cf44bad5..832fef38 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Credits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_RateLimits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_RateLimits.php index df495c35..8affd0b9 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_RateLimits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonAddResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteParams.php b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteParams.php index 734cca85..9b84e01d 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteParams.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Deletes a social media button from the account. * - * @see Onlyfansapi\Services\Settings\SocialMediaButtonsService::delete() + * @see OnlyFansAPI\Services\Settings\SocialMediaButtonsService::delete() * * @phpstan-type SocialMediaButtonDeleteParamsShape = array{account: string} */ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse.php b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse.php index b6ad2e75..d3ed8943 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\Data * * @phpstan-type SocialMediaButtonDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/Data.php b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/Data.php index 9e754a7d..e59422b7 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/Data.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta.php b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta.php index 278aa47a..0bc65c7f 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Cache.php b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Cache.php index 257e1e7a..359003dc 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Cache.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Credits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Credits.php index 0874f724..37176d2b 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Credits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_RateLimits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_RateLimits.php index 653802bf..5d4dbdf6 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_RateLimits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse.php b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse.php index 2716adc1..6177545a 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\Data * * @phpstan-type SocialMediaButtonListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/Data.php b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/Data.php index 39c069d7..07c1a537 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/Data.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta.php b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta.php index 390caa34..fa274b27 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Cache.php b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Cache.php index b871da73..3d1df746 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Cache.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Credits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Credits.php index dce1e464..eab27014 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Credits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_RateLimits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_RateLimits.php index 479f41d1..ccdfde02 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_RateLimits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderParams.php b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderParams.php index bd2e47e0..e6ba875a 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderParams.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Changes the order of social media buttons for the account. * - * @see Onlyfansapi\Services\Settings\SocialMediaButtonsService::reorder() + * @see OnlyFansAPI\Services\Settings\SocialMediaButtonsService::reorder() * * @phpstan-type SocialMediaButtonReorderParamsShape = array{ * buttonIDs: list diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse.php b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse.php index 2d817380..178b3fa0 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\Data * * @phpstan-type SocialMediaButtonReorderResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/Data.php b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/Data.php index cc8f5ce5..d9e58e8c 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/Data.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta.php b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta.php index 452b5998..00de29f2 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Cache.php b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Cache.php index 443e613c..8088a19f 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Cache.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Credits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Credits.php index b75790ce..f6cb661a 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Credits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_RateLimits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_RateLimits.php index ada674b3..dac8443b 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_RateLimits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonReorderResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateParams.php b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateParams.php index 0b875356..91ae9005 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateParams.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Updates a social media button from the account. * - * @see Onlyfansapi\Services\Settings\SocialMediaButtonsService::update() + * @see OnlyFansAPI\Services\Settings\SocialMediaButtonsService::update() * * @phpstan-type SocialMediaButtonUpdateParamsShape = array{ * account: string, label: string diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse.php b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse.php index b9176992..4dc439a5 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons; +namespace OnlyFansAPI\Settings\SocialMediaButtons; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\Data * * @phpstan-type SocialMediaButtonUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/Data.php b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/Data.php index 47db6812..559421a1 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/Data.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta.php b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta.php index 15059c76..2a25f47e 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Cache; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Credits; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Cache.php b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Cache.php index 8038a43a..300a15f3 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Cache.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Credits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Credits.php index d10f3e89..1cd6d5b6 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Credits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_RateLimits.php b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_RateLimits.php index 0a8a97d7..1c9af7bf 100644 --- a/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_RateLimits.php +++ b/src/Settings/SocialMediaButtons/SocialMediaButtonUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse.php index abff426e..98aac602 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage; +namespace OnlyFansAPI\Settings\WelcomeMessage; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data * * @phpstan-type WelcomeMessageGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data.php index 71fa7162..5d6a3c76 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media * * @phpstan-type DataShape = array{ * id?: string|null, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media.php index e7bc7feb..844618d5 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files.php index 1245a542..38888c42 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Full; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Preview; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\SquarePreview; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Full; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Preview; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\SquarePreview; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Full.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Full.php index 146d24c4..97e4a8ce 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Full.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Preview.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Preview.php index b4f83e9c..1607a7be 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Preview.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Preview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PreviewShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/SquarePreview.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/SquarePreview.php index b26ef934..b208b8da 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/SquarePreview.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/SquarePreview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SquarePreviewShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Thumb.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Thumb.php index 9eb1a811..8249209a 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Thumb.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/VideoSources.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/VideoSources.php index eca65b41..7d38d5b4 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/VideoSources.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/Data/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\Data\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta.php index cd1ea251..182bfe27 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Cache; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Credits; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Cache.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Cache.php index 010b1e25..8f9325f1 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Cache.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Credits.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Credits.php index ef5e8cb7..3c60f990 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Credits.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_RateLimits.php b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_RateLimits.php index 98d349be..64b2ef6e 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_RateLimits.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageToggleParams.php b/src/Settings/WelcomeMessage/WelcomeMessageToggleParams.php index e3941d4e..9d1acc1c 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageToggleParams.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageToggleParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage; +namespace OnlyFansAPI\Settings\WelcomeMessage; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Enable or disable the automatic welcome message that is sent when someone subscribes. * - * @see Onlyfansapi\Services\Settings\WelcomeMessageService::toggle() + * @see OnlyFansAPI\Services\Settings\WelcomeMessageService::toggle() * * @phpstan-type WelcomeMessageToggleParamsShape = array{enabled: bool} */ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse.php b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse.php index 7789939b..bcf4bff8 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage; +namespace OnlyFansAPI\Settings\WelcomeMessage; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\Data * * @phpstan-type WelcomeMessageToggleResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/Data.php b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/Data.php index ba5ab6f3..8f4dd39a 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/Data.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta.php b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta.php index b2735fdf..543d988e 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Cache; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Credits; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Cache.php b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Cache.php index 0b176632..bd804d11 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Cache.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Credits.php b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Credits.php index 439a53aa..348f96da 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Credits.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_RateLimits.php b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_RateLimits.php index 3644a753..d02155df 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_RateLimits.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageToggleResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateParams.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateParams.php index aa890a26..ef6c4c07 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateParams.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage; +namespace OnlyFansAPI\Settings\WelcomeMessage; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Update the automatic welcome message template that is sent when someone subscribes. * - * @see Onlyfansapi\Services\Settings\WelcomeMessageService::update() + * @see OnlyFansAPI\Services\Settings\WelcomeMessageService::update() * * @phpstan-type WelcomeMessageUpdateParamsShape = array{ * isForward?: bool|null, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse.php index f855dfb4..8f315031 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage; +namespace OnlyFansAPI\Settings\WelcomeMessage; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data * * @phpstan-type WelcomeMessageUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data.php index e2eae656..88cda760 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media * * @phpstan-type DataShape = array{ * id?: string|null, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media.php index 014bc17c..37792905 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files.php index 2b449149..13be1b6f 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Full; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Preview; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\SquarePreview; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Full; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Preview; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\SquarePreview; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Full.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Full.php index 34b4605b..956db813 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Full.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Preview.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Preview.php index 0afa18bb..6fd41608 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Preview.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Preview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PreviewShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/SquarePreview.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/SquarePreview.php index 4a827985..8f819496 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/SquarePreview.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/SquarePreview.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SquarePreviewShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Thumb.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Thumb.php index 117ef3c5..71d8cd99 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Thumb.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/VideoSources.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/VideoSources.php index d1a9dfb0..edab7945 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/VideoSources.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/Data/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\Data\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta.php index 092e70c6..69291035 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Cache; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Credits; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Cache.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Cache.php index 62ff28cb..d75a924a 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Cache.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Credits.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Credits.php index 9bd8b227..735fa0b9 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Credits.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_RateLimits.php b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_RateLimits.php index e1ccb1e8..02a3a42f 100644 --- a/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_RateLimits.php +++ b/src/Settings/WelcomeMessage/WelcomeMessageUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; +namespace OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListParams.php b/src/SharedTrackingLinks/SharedTrackingLinkListParams.php index aa2b011e..aa8bc120 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListParams.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListParams.php @@ -2,20 +2,29 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks; +namespace OnlyFansAPI\SharedTrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\Pagination; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\SortingDeleted; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListParams\WithDeleted; /** * List all Tracking Links (campaigns) shared with the account by other OF creators. Calls OnlyFans live and syncs to our cache. * - * @see Onlyfansapi\Services\SharedTrackingLinksService::list() + * @see OnlyFansAPI\Services\SharedTrackingLinksService::list() * * @phpstan-type SharedTrackingLinkListParamsShape = array{ - * limit?: int|null, offset?: int|null, synchronous?: bool|null + * limit?: int|null, + * offset?: int|null, + * pagination?: null|Pagination|value-of, + * sortingDeleted?: null|SortingDeleted|value-of, + * stats?: string|null, + * synchronous?: bool|null, + * withDeleted?: null|WithDeleted|value-of, * } */ final class SharedTrackingLinkListParams implements BaseModel @@ -25,23 +34,53 @@ final class SharedTrackingLinkListParams implements BaseModel use SdkParams; /** - * The number of shared tracking links to return. Default `10`. + * The number of shared tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. */ #[Optional] public ?int $limit; /** - * The offset used for pagination. Default `0`. + * The offset used for pagination. Default `0`. Must be at least 0. */ #[Optional] public ?int $offset; /** - * Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false`. + * Whether pagination metadata is enabled. Default `1`. + * + * @var value-of|null $pagination + */ + #[Optional(enum: Pagination::class)] + public ?int $pagination; + + /** + * Whether deleted links participate in sorting. Default `1`. + * + * @var value-of|null $sortingDeleted + */ + #[Optional(enum: SortingDeleted::class)] + public ?int $sortingDeleted; + + /** + * Whether statistics are included. Default `true`. Must not be greater than 10 characters. */ - #[Optional(nullable: true)] + #[Optional] + public ?string $stats; + + /** + * Wait for the database sync instead of processing it in the background. + */ + #[Optional] public ?bool $synchronous; + /** + * Whether to include deleted shared tracking links. Default `1`. + * + * @var value-of|null $withDeleted + */ + #[Optional(enum: WithDeleted::class)] + public ?int $withDeleted; + public function __construct() { $this->initialize(); @@ -51,23 +90,35 @@ public function __construct() * Construct an instance from the required parameters. * * You must use named parameters to construct any parameters with a default value. + * + * @param Pagination|value-of|null $pagination + * @param SortingDeleted|value-of|null $sortingDeleted + * @param WithDeleted|value-of|null $withDeleted */ public static function with( ?int $limit = null, ?int $offset = null, - ?bool $synchronous = null + Pagination|int|null $pagination = null, + SortingDeleted|int|null $sortingDeleted = null, + ?string $stats = null, + ?bool $synchronous = null, + WithDeleted|int|null $withDeleted = null, ): self { $self = new self; null !== $limit && $self['limit'] = $limit; null !== $offset && $self['offset'] = $offset; + null !== $pagination && $self['pagination'] = $pagination; + null !== $sortingDeleted && $self['sortingDeleted'] = $sortingDeleted; + null !== $stats && $self['stats'] = $stats; null !== $synchronous && $self['synchronous'] = $synchronous; + null !== $withDeleted && $self['withDeleted'] = $withDeleted; return $self; } /** - * The number of shared tracking links to return. Default `10`. + * The number of shared tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. */ public function withLimit(int $limit): self { @@ -78,7 +129,7 @@ public function withLimit(int $limit): self } /** - * The offset used for pagination. Default `0`. + * The offset used for pagination. Default `0`. Must be at least 0. */ public function withOffset(int $offset): self { @@ -89,13 +140,63 @@ public function withOffset(int $offset): self } /** - * Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false`. + * Whether pagination metadata is enabled. Default `1`. + * + * @param Pagination|value-of $pagination */ - public function withSynchronous(?bool $synchronous): self + public function withPagination(Pagination|int $pagination): self + { + $self = clone $this; + $self['pagination'] = $pagination; + + return $self; + } + + /** + * Whether deleted links participate in sorting. Default `1`. + * + * @param SortingDeleted|value-of $sortingDeleted + */ + public function withSortingDeleted(SortingDeleted|int $sortingDeleted): self + { + $self = clone $this; + $self['sortingDeleted'] = $sortingDeleted; + + return $self; + } + + /** + * Whether statistics are included. Default `true`. Must not be greater than 10 characters. + */ + public function withStats(string $stats): self + { + $self = clone $this; + $self['stats'] = $stats; + + return $self; + } + + /** + * Wait for the database sync instead of processing it in the background. + */ + public function withSynchronous(bool $synchronous): self { $self = clone $this; $self['synchronous'] = $synchronous; return $self; } + + /** + * Whether to include deleted shared tracking links. Default `1`. + * + * @param WithDeleted|value-of $withDeleted + */ + public function withWithDeleted(WithDeleted|int $withDeleted): self + { + $self = clone $this; + $self['withDeleted'] = $withDeleted; + + return $self; + } } diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListParams/Pagination.php b/src/SharedTrackingLinks/SharedTrackingLinkListParams/Pagination.php new file mode 100644 index 00000000..d61a72ba --- /dev/null +++ b/src/SharedTrackingLinks/SharedTrackingLinkListParams/Pagination.php @@ -0,0 +1,15 @@ +|null diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_.php b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_.php index e199a888..42803b77 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\Data; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\Data\List_\Owner; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\Data\List_\Owner; /** - * @phpstan-import-type OwnerShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\Data\List_\Owner + * @phpstan-import-type OwnerShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\Data\List_\Owner * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_/Owner.php b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_/Owner.php index 9eb83a54..522a0c97 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_/Owner.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/Data/List_/Owner.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\Data\List_; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type OwnerShape = array{ diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta.php b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta.php index 1fb9bf09..e6d5ca15 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Cache.php b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Cache.php index 2946a27b..cf67d5f1 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Cache.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Credits.php b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Credits.php index a2a993a3..544da25c 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Credits.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_RateLimits.php b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_RateLimits.php index fe8acd4b..2dd7749f 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_RateLimits.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Pagination.php b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Pagination.php index 696fb76c..dc950719 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Pagination.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessParams.php b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessParams.php index 12970b4e..c222f5c1 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessParams.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks; +namespace OnlyFansAPI\SharedTrackingLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Revoke the account's access to a shared Tracking Link (campaign). Calls OnlyFans `DELETE /campaigns/share-access`, then removes the local cache row. The owner keeps the link. * - * @see Onlyfansapi\Services\SharedTrackingLinksService::revokeAccess() + * @see OnlyFansAPI\Services\SharedTrackingLinksService::revokeAccess() * * @phpstan-type SharedTrackingLinkRevokeAccessParamsShape = array{account: string} */ diff --git a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse.php b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse.php index 1ec8c759..0454bb9a 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks; +namespace OnlyFansAPI\SharedTrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\Data * * @phpstan-type SharedTrackingLinkRevokeAccessResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/Data.php b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/Data.php index 7f5a1efb..640bfd51 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/Data.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta.php b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta.php index be0a0039..f5e4bd95 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Cache.php b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Cache.php index cd3778e0..13c9021d 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Cache.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Credits.php b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Credits.php index aab696f3..84af23b4 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Credits.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_RateLimits.php b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_RateLimits.php index 63b01b63..8714394b 100644 --- a/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_RateLimits.php +++ b/src/SharedTrackingLinks/SharedTrackingLinkRevokeAccessResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrackingLinks/Tags/TagAddParams.php b/src/SharedTrackingLinks/Tags/TagAddParams.php index 5e3f0cf5..e3cf0e9f 100644 --- a/src/SharedTrackingLinks/Tags/TagAddParams.php +++ b/src/SharedTrackingLinks/Tags/TagAddParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags; +namespace OnlyFansAPI\SharedTrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Add tags to a shared Tracking Link. Existing tags are preserved. Tag namespace is shared with owned Tracking Links. This is a free endpoint. * - * @see Onlyfansapi\Services\SharedTrackingLinks\TagsService::add() + * @see OnlyFansAPI\Services\SharedTrackingLinks\TagsService::add() * * @phpstan-type TagAddParamsShape = array{account: string, tags: list} */ diff --git a/src/SharedTrackingLinks/Tags/TagAddResponse.php b/src/SharedTrackingLinks/Tags/TagAddResponse.php index 0aae974d..05964bb7 100644 --- a/src/SharedTrackingLinks/Tags/TagAddResponse.php +++ b/src/SharedTrackingLinks/Tags/TagAddResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags; +namespace OnlyFansAPI\SharedTrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\Data * * @phpstan-type TagAddResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrackingLinks/Tags/TagAddResponse/Data.php b/src/SharedTrackingLinks/Tags/TagAddResponse/Data.php index 19b71aa9..7eb4728e 100644 --- a/src/SharedTrackingLinks/Tags/TagAddResponse/Data.php +++ b/src/SharedTrackingLinks/Tags/TagAddResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta.php b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta.php index 6e3be3ed..ef18b610 100644 --- a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta.php +++ b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php index 7c62f903..5ecbe294 100644 --- a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php +++ b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php index 46745fa9..7ae460a3 100644 --- a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php +++ b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php index c6dd0e6a..83b64acf 100644 --- a/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php +++ b/src/SharedTrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrackingLinks/Tags/TagListParams.php b/src/SharedTrackingLinks/Tags/TagListParams.php index 914b985a..e04695be 100644 --- a/src/SharedTrackingLinks/Tags/TagListParams.php +++ b/src/SharedTrackingLinks/Tags/TagListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags; +namespace OnlyFansAPI\SharedTrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get tags for a specific shared Tracking Link. Tag namespace is shared with owned Tracking Links. This is a free endpoint. * - * @see Onlyfansapi\Services\SharedTrackingLinks\TagsService::list() + * @see OnlyFansAPI\Services\SharedTrackingLinks\TagsService::list() * * @phpstan-type TagListParamsShape = array{account: string} */ diff --git a/src/SharedTrackingLinks/Tags/TagListResponse.php b/src/SharedTrackingLinks/Tags/TagListResponse.php index 4ffea405..8f52b8cc 100644 --- a/src/SharedTrackingLinks/Tags/TagListResponse.php +++ b/src/SharedTrackingLinks/Tags/TagListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags; +namespace OnlyFansAPI\SharedTrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\Data * * @phpstan-type TagListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrackingLinks/Tags/TagListResponse/Data.php b/src/SharedTrackingLinks/Tags/TagListResponse/Data.php index 679235ff..44333a51 100644 --- a/src/SharedTrackingLinks/Tags/TagListResponse/Data.php +++ b/src/SharedTrackingLinks/Tags/TagListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta.php b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta.php index 886cec99..1827a8b6 100644 --- a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta.php +++ b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Cache.php b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Cache.php index a8c50ced..ee05f879 100644 --- a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Cache.php +++ b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Credits.php b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Credits.php index 2a72d056..1789590d 100644 --- a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Credits.php +++ b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php index b9e5c5d1..03e6f08c 100644 --- a/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php +++ b/src/SharedTrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrackingLinks/Tags/TagRemoveParams.php b/src/SharedTrackingLinks/Tags/TagRemoveParams.php index b13e4f9b..c45521d9 100644 --- a/src/SharedTrackingLinks/Tags/TagRemoveParams.php +++ b/src/SharedTrackingLinks/Tags/TagRemoveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags; +namespace OnlyFansAPI\SharedTrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove tags from a shared Tracking Link. Tag namespace is shared with owned Tracking Links. This is a free endpoint. * - * @see Onlyfansapi\Services\SharedTrackingLinks\TagsService::remove() + * @see OnlyFansAPI\Services\SharedTrackingLinks\TagsService::remove() * * @phpstan-type TagRemoveParamsShape = array{account: string, tags: list} */ diff --git a/src/SharedTrackingLinks/Tags/TagRemoveResponse.php b/src/SharedTrackingLinks/Tags/TagRemoveResponse.php index 379f9770..dfb83b1b 100644 --- a/src/SharedTrackingLinks/Tags/TagRemoveResponse.php +++ b/src/SharedTrackingLinks/Tags/TagRemoveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags; +namespace OnlyFansAPI\SharedTrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\Data * * @phpstan-type TagRemoveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrackingLinks/Tags/TagRemoveResponse/Data.php b/src/SharedTrackingLinks/Tags/TagRemoveResponse/Data.php index bd67b89a..04b3b350 100644 --- a/src/SharedTrackingLinks/Tags/TagRemoveResponse/Data.php +++ b/src/SharedTrackingLinks/Tags/TagRemoveResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta.php b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta.php index ff14cfe6..c89fe855 100644 --- a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta.php +++ b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php index 78d5adf9..72b63555 100644 --- a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php +++ b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php index 7a3404b7..ffb00b8b 100644 --- a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php +++ b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php index 81014fc1..a51616dd 100644 --- a/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php +++ b/src/SharedTrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrialLinks/SharedTrialLinkListParams.php b/src/SharedTrialLinks/SharedTrialLinkListParams.php index 650d9cb9..5f07a40c 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListParams.php +++ b/src/SharedTrialLinks/SharedTrialLinkListParams.php @@ -2,20 +2,24 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks; +namespace OnlyFansAPI\SharedTrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListParams\Pagination; /** * List all Free Trial Links shared with the account by other OF creators. Calls OnlyFans live and syncs to our cache. * - * @see Onlyfansapi\Services\SharedTrialLinksService::list() + * @see OnlyFansAPI\Services\SharedTrialLinksService::list() * * @phpstan-type SharedTrialLinkListParamsShape = array{ - * limit?: int|null, offset?: int|null, synchronous?: bool|null + * limit?: int|null, + * offset?: int|null, + * pagination?: null|Pagination|value-of, + * synchronous?: bool|null, * } */ final class SharedTrialLinkListParams implements BaseModel @@ -25,21 +29,25 @@ final class SharedTrialLinkListParams implements BaseModel use SdkParams; /** - * The number of shared trial links to return. Default `10`. + * The number of shared trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. */ #[Optional] public ?int $limit; /** - * The offset used for pagination. Default `0`. + * The offset used for pagination. Default `0`. Must be at least 0. */ #[Optional] public ?int $offset; + /** @var value-of|null $pagination */ + #[Optional(enum: Pagination::class)] + public ?int $pagination; + /** - * Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false`. + * Wait for the database sync instead of processing it in the background. */ - #[Optional(nullable: true)] + #[Optional] public ?bool $synchronous; public function __construct() @@ -51,23 +59,27 @@ public function __construct() * Construct an instance from the required parameters. * * You must use named parameters to construct any parameters with a default value. + * + * @param Pagination|value-of|null $pagination */ public static function with( ?int $limit = null, ?int $offset = null, - ?bool $synchronous = null + Pagination|int|null $pagination = null, + ?bool $synchronous = null, ): self { $self = new self; null !== $limit && $self['limit'] = $limit; null !== $offset && $self['offset'] = $offset; + null !== $pagination && $self['pagination'] = $pagination; null !== $synchronous && $self['synchronous'] = $synchronous; return $self; } /** - * The number of shared trial links to return. Default `10`. + * The number of shared trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. */ public function withLimit(int $limit): self { @@ -78,7 +90,7 @@ public function withLimit(int $limit): self } /** - * The offset used for pagination. Default `0`. + * The offset used for pagination. Default `0`. Must be at least 0. */ public function withOffset(int $offset): self { @@ -89,9 +101,20 @@ public function withOffset(int $offset): self } /** - * Wait for the database sync to finish, instead of running it in the background. **Will result in longer response times, use with caution**. Default `false`. + * @param Pagination|value-of $pagination + */ + public function withPagination(Pagination|int $pagination): self + { + $self = clone $this; + $self['pagination'] = $pagination; + + return $self; + } + + /** + * Wait for the database sync instead of processing it in the background. */ - public function withSynchronous(?bool $synchronous): self + public function withSynchronous(bool $synchronous): self { $self = clone $this; $self['synchronous'] = $synchronous; diff --git a/src/SharedTrialLinks/SharedTrialLinkListParams/Pagination.php b/src/SharedTrialLinks/SharedTrialLinkListParams/Pagination.php new file mode 100644 index 00000000..e8103daa --- /dev/null +++ b/src/SharedTrialLinks/SharedTrialLinkListParams/Pagination.php @@ -0,0 +1,12 @@ +|null diff --git a/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_.php b/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_.php index 44e4f066..a485da73 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_.php +++ b/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\Data; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\Data\List_\Owner; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\Data\List_\Owner; /** - * @phpstan-import-type OwnerShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\Data\List_\Owner + * @phpstan-import-type OwnerShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\Data\List_\Owner * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_/Owner.php b/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_/Owner.php index 62d4ea19..308fb855 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_/Owner.php +++ b/src/SharedTrialLinks/SharedTrialLinkListResponse/Data/List_/Owner.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\Data\List_; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type OwnerShape = array{ diff --git a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta.php b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta.php index 5ea105bd..658e9c25 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta.php +++ b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Cache.php b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Cache.php index 2d27fb47..c9b58815 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Cache.php +++ b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Credits.php b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Credits.php index 2555c3cd..9cdc569c 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Credits.php +++ b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_RateLimits.php b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_RateLimits.php index b804af78..2b692843 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_RateLimits.php +++ b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Pagination.php b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Pagination.php index 0fa40c32..eae2da0e 100644 --- a/src/SharedTrialLinks/SharedTrialLinkListResponse/_Pagination.php +++ b/src/SharedTrialLinks/SharedTrialLinkListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessParams.php b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessParams.php index 06556197..0bf01c2c 100644 --- a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessParams.php +++ b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks; +namespace OnlyFansAPI\SharedTrialLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Revoke the account's access to a shared Free Trial Link. Calls OnlyFans `DELETE /trials/share-access`, then removes the local cache row. The owner keeps the link. * - * @see Onlyfansapi\Services\SharedTrialLinksService::revokeAccess() + * @see OnlyFansAPI\Services\SharedTrialLinksService::revokeAccess() * * @phpstan-type SharedTrialLinkRevokeAccessParamsShape = array{account: string} */ diff --git a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse.php b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse.php index c8bcc0df..ffb135a9 100644 --- a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse.php +++ b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks; +namespace OnlyFansAPI\SharedTrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\Data * * @phpstan-type SharedTrialLinkRevokeAccessResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/Data.php b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/Data.php index b44b9c39..88a2b07c 100644 --- a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/Data.php +++ b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta.php b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta.php index 834d002c..a3eb553e 100644 --- a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta.php +++ b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Cache.php b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Cache.php index 9ed687bd..e68ff9d4 100644 --- a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Cache.php +++ b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Credits.php b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Credits.php index 429aff8b..c1829d3e 100644 --- a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Credits.php +++ b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_RateLimits.php b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_RateLimits.php index 9009374e..965693a2 100644 --- a/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_RateLimits.php +++ b/src/SharedTrialLinks/SharedTrialLinkRevokeAccessResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrialLinks/Tags/TagAddParams.php b/src/SharedTrialLinks/Tags/TagAddParams.php index e554f7d6..1d1fd08b 100644 --- a/src/SharedTrialLinks/Tags/TagAddParams.php +++ b/src/SharedTrialLinks/Tags/TagAddParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags; +namespace OnlyFansAPI\SharedTrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Add tags to a shared Free Trial Link. Existing tags are preserved. Tag namespace is shared with owned Free Trial Links. This is a free endpoint. * - * @see Onlyfansapi\Services\SharedTrialLinks\TagsService::add() + * @see OnlyFansAPI\Services\SharedTrialLinks\TagsService::add() * * @phpstan-type TagAddParamsShape = array{account: string, tags: list} */ diff --git a/src/SharedTrialLinks/Tags/TagAddResponse.php b/src/SharedTrialLinks/Tags/TagAddResponse.php index 31e4175c..3f678bfc 100644 --- a/src/SharedTrialLinks/Tags/TagAddResponse.php +++ b/src/SharedTrialLinks/Tags/TagAddResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags; +namespace OnlyFansAPI\SharedTrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\Data * * @phpstan-type TagAddResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrialLinks/Tags/TagAddResponse/Data.php b/src/SharedTrialLinks/Tags/TagAddResponse/Data.php index 03b2d7a8..f28a8c29 100644 --- a/src/SharedTrialLinks/Tags/TagAddResponse/Data.php +++ b/src/SharedTrialLinks/Tags/TagAddResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta.php b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta.php index 4484c50b..2a7af437 100644 --- a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta.php +++ b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Cache.php b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Cache.php index 268ddffc..ecbd3463 100644 --- a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Cache.php +++ b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Credits.php b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Credits.php index 7c0f83c3..8d9c37ee 100644 --- a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Credits.php +++ b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php index 74a7cf72..4f9c2ab9 100644 --- a/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php +++ b/src/SharedTrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrialLinks/Tags/TagListParams.php b/src/SharedTrialLinks/Tags/TagListParams.php index e66c864f..f07b6706 100644 --- a/src/SharedTrialLinks/Tags/TagListParams.php +++ b/src/SharedTrialLinks/Tags/TagListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags; +namespace OnlyFansAPI\SharedTrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get tags for a specific shared Free Trial Link. Tag namespace is shared with owned Free Trial Links. This is a free endpoint. * - * @see Onlyfansapi\Services\SharedTrialLinks\TagsService::list() + * @see OnlyFansAPI\Services\SharedTrialLinks\TagsService::list() * * @phpstan-type TagListParamsShape = array{account: string} */ diff --git a/src/SharedTrialLinks/Tags/TagListResponse.php b/src/SharedTrialLinks/Tags/TagListResponse.php index 9ff47de3..513a5de5 100644 --- a/src/SharedTrialLinks/Tags/TagListResponse.php +++ b/src/SharedTrialLinks/Tags/TagListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags; +namespace OnlyFansAPI\SharedTrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\Data * * @phpstan-type TagListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrialLinks/Tags/TagListResponse/Data.php b/src/SharedTrialLinks/Tags/TagListResponse/Data.php index 7f4a612d..593d8b8e 100644 --- a/src/SharedTrialLinks/Tags/TagListResponse/Data.php +++ b/src/SharedTrialLinks/Tags/TagListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagListResponse; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/SharedTrialLinks/Tags/TagListResponse/_Meta.php b/src/SharedTrialLinks/Tags/TagListResponse/_Meta.php index fbcf2638..8753bb5b 100644 --- a/src/SharedTrialLinks/Tags/TagListResponse/_Meta.php +++ b/src/SharedTrialLinks/Tags/TagListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagListResponse; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Cache.php b/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Cache.php index 617281e1..da3fd66c 100644 --- a/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Cache.php +++ b/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Credits.php b/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Credits.php index 364cd3f3..d8a13456 100644 --- a/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Credits.php +++ b/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php b/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php index d4878919..d9ba33c2 100644 --- a/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php +++ b/src/SharedTrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SharedTrialLinks/Tags/TagRemoveParams.php b/src/SharedTrialLinks/Tags/TagRemoveParams.php index c9152d7a..aee3a376 100644 --- a/src/SharedTrialLinks/Tags/TagRemoveParams.php +++ b/src/SharedTrialLinks/Tags/TagRemoveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags; +namespace OnlyFansAPI\SharedTrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove tags from a shared Free Trial Link. Tag namespace is shared with owned Free Trial Links. This is a free endpoint. * - * @see Onlyfansapi\Services\SharedTrialLinks\TagsService::remove() + * @see OnlyFansAPI\Services\SharedTrialLinks\TagsService::remove() * * @phpstan-type TagRemoveParamsShape = array{account: string, tags: list} */ diff --git a/src/SharedTrialLinks/Tags/TagRemoveResponse.php b/src/SharedTrialLinks/Tags/TagRemoveResponse.php index 3bbe6426..2a458d11 100644 --- a/src/SharedTrialLinks/Tags/TagRemoveResponse.php +++ b/src/SharedTrialLinks/Tags/TagRemoveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags; +namespace OnlyFansAPI\SharedTrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\Data * * @phpstan-type TagRemoveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SharedTrialLinks/Tags/TagRemoveResponse/Data.php b/src/SharedTrialLinks/Tags/TagRemoveResponse/Data.php index 8a01006a..0177c020 100644 --- a/src/SharedTrialLinks/Tags/TagRemoveResponse/Data.php +++ b/src/SharedTrialLinks/Tags/TagRemoveResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta.php b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta.php index ea780994..81dd5348 100644 --- a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta.php +++ b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Cache; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Credits; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Cache; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Credits; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php index 06b97cae..5939f2ac 100644 --- a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php +++ b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php index 4d29b642..1d640425 100644 --- a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php +++ b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php index 6d8d72b1..9744af8f 100644 --- a/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php +++ b/src/SharedTrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams.php b/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams.php index 36c5cb68..f2e02ccb 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams.php @@ -2,24 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks; +namespace OnlyFansAPI\SmartLinkPostbacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\HTTPMethod; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\SmartLinkScope; /** * Create a postback that fires for selected Smart Link conversion types. * - * @see Onlyfansapi\Services\SmartLinkPostbacksService::create() + * @see OnlyFansAPI\Services\SmartLinkPostbacksService::create() + * + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams\Header * * @phpstan-type SmartLinkPostbackCreateParamsShape = array{ * conversionTypes: list, * smartLinkScope: SmartLinkScope|value-of, * url: string, + * body?: string|null, + * headers?: list|null, + * httpMethod?: null|HTTPMethod|value-of, * smartLinkIDs?: list|null, * } */ @@ -46,11 +53,33 @@ final class SmartLinkPostbackCreateParams implements BaseModel public string $smartLinkScope; /** - * The destination URL. Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + * The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. */ #[Required] public string $url; + /** + * Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + */ + #[Optional] + public ?string $body; + + /** + * Optional request headers. Header values may include postback variables. + * + * @var list
|null $headers + */ + #[Optional(list: Header::class)] + public ?array $headers; + + /** + * HTTP method used for the postback request. Defaults to `GET` when omitted. + * + * @var value-of|null $httpMethod + */ + #[Optional('http_method', enum: HTTPMethod::class)] + public ?string $httpMethod; + /** * Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * @@ -90,12 +119,17 @@ public function __construct() * * @param list $conversionTypes * @param SmartLinkScope|value-of $smartLinkScope + * @param list|null $headers + * @param HTTPMethod|value-of|null $httpMethod * @param list|null $smartLinkIDs */ public static function with( array $conversionTypes, SmartLinkScope|string $smartLinkScope, string $url, + ?string $body = null, + ?array $headers = null, + HTTPMethod|string|null $httpMethod = null, ?array $smartLinkIDs = null, ): self { $self = new self; @@ -104,6 +138,9 @@ public static function with( $self['smartLinkScope'] = $smartLinkScope; $self['url'] = $url; + null !== $body && $self['body'] = $body; + null !== $headers && $self['headers'] = $headers; + null !== $httpMethod && $self['httpMethod'] = $httpMethod; null !== $smartLinkIDs && $self['smartLinkIDs'] = $smartLinkIDs; return $self; @@ -137,7 +174,7 @@ public function withSmartLinkScope( } /** - * The destination URL. Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + * The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. */ public function withURL(string $url): self { @@ -147,6 +184,43 @@ public function withURL(string $url): self return $self; } + /** + * Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + */ + public function withBody(string $body): self + { + $self = clone $this; + $self['body'] = $body; + + return $self; + } + + /** + * Optional request headers. Header values may include postback variables. + * + * @param list $headers + */ + public function withHeaders(array $headers): self + { + $self = clone $this; + $self['headers'] = $headers; + + return $self; + } + + /** + * HTTP method used for the postback request. Defaults to `GET` when omitted. + * + * @param HTTPMethod|value-of $httpMethod + */ + public function withHTTPMethod(HTTPMethod|string $httpMethod): self + { + $self = clone $this; + $self['httpMethod'] = $httpMethod; + + return $self; + } + /** * Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams/HTTPMethod.php b/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams/HTTPMethod.php new file mode 100644 index 00000000..d4933761 --- /dev/null +++ b/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams/HTTPMethod.php @@ -0,0 +1,15 @@ + */ + use SdkModel; + + /** + * This field is required when headers.*.value is present. Must match the regex /\A[A-Za-z0-9!#$%&'*+.^_`|~-]+\z/. Must not be greater than 100 characters. + */ + #[Optional(nullable: true)] + public ?string $name; + + /** + * Must not be greater than 2000 characters. + */ + #[Optional(nullable: true)] + public ?string $value; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?string $name = null, + ?string $value = null + ): self { + $self = new self; + + null !== $name && $self['name'] = $name; + null !== $value && $self['value'] = $value; + + return $self; + } + + /** + * This field is required when headers.*.value is present. Must match the regex /\A[A-Za-z0-9!#$%&'*+.^_`|~-]+\z/. Must not be greater than 100 characters. + */ + public function withName(?string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + /** + * Must not be greater than 2000 characters. + */ + public function withValue(?string $value): self + { + $self = clone $this; + $self['value'] = $value; + + return $self; + } +} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams/SmartLinkScope.php b/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams/SmartLinkScope.php index 355d6295..390ae5a0 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams/SmartLinkScope.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackCreateParams/SmartLinkScope.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackCreateParams; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackCreateParams; /** * `global` fires for all Smart Links. `campaign_specific` fires only for selected Smart Links. diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse.php b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse.php index 4bca1571..e7d7cfb1 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks; +namespace OnlyFansAPI\SmartLinkPostbacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data * * @phpstan-type SmartLinkPostbackGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data.php b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data.php index 3285f1f8..06f80859 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data.php @@ -2,20 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data\SmartLink; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data\SmartLink; /** - * @phpstan-import-type SmartLinkShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data\SmartLink + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data\Header + * @phpstan-import-type SmartLinkShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data\SmartLink * * @phpstan-type DataShape = array{ * id?: int|null, + * body?: string|null, * conversionTypes?: list|null, * createdAt?: string|null, + * headers?: list|null, + * httpMethod?: string|null, * latestResponse?: string|null, * smartLinkIDs?: list|null, * smartLinkScope?: string|null, @@ -32,6 +37,9 @@ final class Data implements BaseModel #[Optional] public ?int $id; + #[Optional] + public ?string $body; + /** @var list|null $conversionTypes */ #[Optional('conversion_types', list: 'string')] public ?array $conversionTypes; @@ -39,6 +47,13 @@ final class Data implements BaseModel #[Optional('created_at')] public ?string $createdAt; + /** @var list
|null $headers */ + #[Optional(list: Header::class)] + public ?array $headers; + + #[Optional('http_method')] + public ?string $httpMethod; + #[Optional('latest_response', nullable: true)] public ?string $latestResponse; @@ -70,13 +85,17 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param list|null $conversionTypes + * @param list|null $headers * @param list|null $smartLinkIDs * @param list|null $smartLinks */ public static function with( ?int $id = null, + ?string $body = null, ?array $conversionTypes = null, ?string $createdAt = null, + ?array $headers = null, + ?string $httpMethod = null, ?string $latestResponse = null, ?array $smartLinkIDs = null, ?string $smartLinkScope = null, @@ -87,8 +106,11 @@ public static function with( $self = new self; null !== $id && $self['id'] = $id; + null !== $body && $self['body'] = $body; null !== $conversionTypes && $self['conversionTypes'] = $conversionTypes; null !== $createdAt && $self['createdAt'] = $createdAt; + null !== $headers && $self['headers'] = $headers; + null !== $httpMethod && $self['httpMethod'] = $httpMethod; null !== $latestResponse && $self['latestResponse'] = $latestResponse; null !== $smartLinkIDs && $self['smartLinkIDs'] = $smartLinkIDs; null !== $smartLinkScope && $self['smartLinkScope'] = $smartLinkScope; @@ -107,6 +129,14 @@ public function withID(int $id): self return $self; } + public function withBody(string $body): self + { + $self = clone $this; + $self['body'] = $body; + + return $self; + } + /** * @param list $conversionTypes */ @@ -126,6 +156,25 @@ public function withCreatedAt(string $createdAt): self return $self; } + /** + * @param list $headers + */ + public function withHeaders(array $headers): self + { + $self = clone $this; + $self['headers'] = $headers; + + return $self; + } + + public function withHTTPMethod(string $httpMethod): self + { + $self = clone $this; + $self['httpMethod'] = $httpMethod; + + return $self; + } + public function withLatestResponse(?string $latestResponse): self { $self = clone $this; diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data/Header.php b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data/Header.php new file mode 100644 index 00000000..f75f8452 --- /dev/null +++ b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data/Header.php @@ -0,0 +1,60 @@ + */ + use SdkModel; + + #[Optional] + public ?string $name; + + #[Optional] + public ?string $value; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with(?string $name = null, ?string $value = null): self + { + $self = new self; + + null !== $name && $self['name'] = $name; + null !== $value && $self['value'] = $value; + + return $self; + } + + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + public function withValue(string $value): self + { + $self = clone $this; + $self['value'] = $value; + + return $self; + } +} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data/SmartLink.php b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data/SmartLink.php index c3bb829c..33294832 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data/SmartLink.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/Data/SmartLink.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SmartLinkShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta.php b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta.php index c0a15f2e..fffe05d0 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Cache.php b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Cache.php index 2dab6ed4..1b181cfd 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Cache.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Credits.php b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Credits.php index 8702cfe6..6df9a05f 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Credits.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse.php index b3e671b7..c77e45c0 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks; +namespace OnlyFansAPI\SmartLinkPostbacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data * * @phpstan-type SmartLinkPostbackListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data.php index 1b8e6998..bb25298c 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data.php @@ -2,22 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\LatestResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\SmartLink; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\LatestResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\SmartLink; /** - * @phpstan-import-type LatestResponseShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\LatestResponse - * @phpstan-import-type SmartLinkShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\SmartLink + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\Header + * @phpstan-import-type LatestResponseShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\LatestResponse + * @phpstan-import-type SmartLinkShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data\SmartLink * * @phpstan-type DataShape = array{ * id?: int|null, + * body?: string|null, * conversionTypes?: list|null, * createdAt?: string|null, + * headers?: list|null, + * httpMethod?: string|null, * latestResponse?: null|LatestResponse|LatestResponseShape, * smartLinkIDs?: list|null, * smartLinkScope?: string|null, @@ -34,6 +39,9 @@ final class Data implements BaseModel #[Optional] public ?int $id; + #[Optional] + public ?string $body; + /** @var list|null $conversionTypes */ #[Optional('conversion_types', list: 'string')] public ?array $conversionTypes; @@ -41,6 +49,13 @@ final class Data implements BaseModel #[Optional('created_at')] public ?string $createdAt; + /** @var list
|null $headers */ + #[Optional(list: Header::class)] + public ?array $headers; + + #[Optional('http_method')] + public ?string $httpMethod; + #[Optional('latest_response')] public ?LatestResponse $latestResponse; @@ -72,14 +87,18 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param list|null $conversionTypes + * @param list|null $headers * @param LatestResponse|LatestResponseShape|null $latestResponse * @param list|null $smartLinkIDs * @param list|null $smartLinks */ public static function with( ?int $id = null, + ?string $body = null, ?array $conversionTypes = null, ?string $createdAt = null, + ?array $headers = null, + ?string $httpMethod = null, LatestResponse|array|null $latestResponse = null, ?array $smartLinkIDs = null, ?string $smartLinkScope = null, @@ -90,8 +109,11 @@ public static function with( $self = new self; null !== $id && $self['id'] = $id; + null !== $body && $self['body'] = $body; null !== $conversionTypes && $self['conversionTypes'] = $conversionTypes; null !== $createdAt && $self['createdAt'] = $createdAt; + null !== $headers && $self['headers'] = $headers; + null !== $httpMethod && $self['httpMethod'] = $httpMethod; null !== $latestResponse && $self['latestResponse'] = $latestResponse; null !== $smartLinkIDs && $self['smartLinkIDs'] = $smartLinkIDs; null !== $smartLinkScope && $self['smartLinkScope'] = $smartLinkScope; @@ -110,6 +132,14 @@ public function withID(int $id): self return $self; } + public function withBody(string $body): self + { + $self = clone $this; + $self['body'] = $body; + + return $self; + } + /** * @param list $conversionTypes */ @@ -129,6 +159,25 @@ public function withCreatedAt(string $createdAt): self return $self; } + /** + * @param list $headers + */ + public function withHeaders(array $headers): self + { + $self = clone $this; + $self['headers'] = $headers; + + return $self; + } + + public function withHTTPMethod(string $httpMethod): self + { + $self = clone $this; + $self['httpMethod'] = $httpMethod; + + return $self; + } + /** * @param LatestResponse|LatestResponseShape $latestResponse */ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/Header.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/Header.php new file mode 100644 index 00000000..5e19317a --- /dev/null +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/Header.php @@ -0,0 +1,60 @@ + */ + use SdkModel; + + #[Optional] + public ?string $name; + + #[Optional] + public ?string $value; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with(?string $name = null, ?string $value = null): self + { + $self = new self; + + null !== $name && $self['name'] = $name; + null !== $value && $self['value'] = $value; + + return $self; + } + + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + public function withValue(string $value): self + { + $self = clone $this; + $self['value'] = $value; + + return $self; + } +} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/LatestResponse.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/LatestResponse.php index 6a05e8fa..85378428 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/LatestResponse.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/LatestResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type LatestResponseShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/SmartLink.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/SmartLink.php index 72ff0a4f..8ddc921e 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/SmartLink.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/Data/SmartLink.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SmartLinkShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta.php index 687a685e..38234dbc 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Cache.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Cache.php index 2cadbeaa..e132005a 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Cache.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Credits.php b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Credits.php index 97a68685..6daec124 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Credits.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse.php b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse.php index 2868289c..3f96eb3d 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks; +namespace OnlyFansAPI\SmartLinkPostbacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\Data * * @phpstan-type SmartLinkPostbackNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/Data.php b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/Data.php index 12a7b491..4cdddcac 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/Data.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/Data.php @@ -2,17 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\Data\Header; /** + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\Data\Header + * * @phpstan-type DataShape = array{ * id?: int|null, + * body?: string|null, * conversionTypes?: list|null, * createdAt?: string|null, + * headers?: list|null, + * httpMethod?: string|null, * latestResponse?: string|null, * smartLinkIDs?: list|null, * smartLinkScope?: string|null, @@ -29,6 +35,9 @@ final class Data implements BaseModel #[Optional] public ?int $id; + #[Optional] + public ?string $body; + /** @var list|null $conversionTypes */ #[Optional('conversion_types', list: 'string')] public ?array $conversionTypes; @@ -36,6 +45,13 @@ final class Data implements BaseModel #[Optional('created_at')] public ?string $createdAt; + /** @var list
|null $headers */ + #[Optional(list: Header::class)] + public ?array $headers; + + #[Optional('http_method')] + public ?string $httpMethod; + #[Optional('latest_response', nullable: true)] public ?string $latestResponse; @@ -67,13 +83,17 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param list|null $conversionTypes + * @param list|null $headers * @param list|null $smartLinkIDs * @param list|null $smartLinks */ public static function with( ?int $id = null, + ?string $body = null, ?array $conversionTypes = null, ?string $createdAt = null, + ?array $headers = null, + ?string $httpMethod = null, ?string $latestResponse = null, ?array $smartLinkIDs = null, ?string $smartLinkScope = null, @@ -84,8 +104,11 @@ public static function with( $self = new self; null !== $id && $self['id'] = $id; + null !== $body && $self['body'] = $body; null !== $conversionTypes && $self['conversionTypes'] = $conversionTypes; null !== $createdAt && $self['createdAt'] = $createdAt; + null !== $headers && $self['headers'] = $headers; + null !== $httpMethod && $self['httpMethod'] = $httpMethod; null !== $latestResponse && $self['latestResponse'] = $latestResponse; null !== $smartLinkIDs && $self['smartLinkIDs'] = $smartLinkIDs; null !== $smartLinkScope && $self['smartLinkScope'] = $smartLinkScope; @@ -104,6 +127,14 @@ public function withID(int $id): self return $self; } + public function withBody(string $body): self + { + $self = clone $this; + $self['body'] = $body; + + return $self; + } + /** * @param list $conversionTypes */ @@ -123,6 +154,25 @@ public function withCreatedAt(string $createdAt): self return $self; } + /** + * @param list $headers + */ + public function withHeaders(array $headers): self + { + $self = clone $this; + $self['headers'] = $headers; + + return $self; + } + + public function withHTTPMethod(string $httpMethod): self + { + $self = clone $this; + $self['httpMethod'] = $httpMethod; + + return $self; + } + public function withLatestResponse(?string $latestResponse): self { $self = clone $this; diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/Data/Header.php b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/Data/Header.php new file mode 100644 index 00000000..d37bea32 --- /dev/null +++ b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/Data/Header.php @@ -0,0 +1,60 @@ + */ + use SdkModel; + + #[Optional] + public ?string $name; + + #[Optional] + public ?string $value; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with(?string $name = null, ?string $value = null): self + { + $self = new self; + + null !== $name && $self['name'] = $name; + null !== $value && $self['value'] = $value; + + return $self; + } + + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + public function withValue(string $value): self + { + $self = clone $this; + $self['value'] = $value; + + return $self; + } +} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta.php b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta.php index 2d742f05..0851511d 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Cache.php b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Cache.php index 2f59fe2e..cf53f723 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Cache.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Credits.php b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Credits.php index 39eea734..7ad751e7 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Credits.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams.php index 18f3b673..0db2e961 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams.php @@ -2,24 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks; +namespace OnlyFansAPI\SmartLinkPostbacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\HTTPMethod; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\SmartLinkScope; /** * Update a Smart Link postback configuration. * - * @see Onlyfansapi\Services\SmartLinkPostbacksService::update() + * @see OnlyFansAPI\Services\SmartLinkPostbacksService::update() + * + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams\Header * * @phpstan-type SmartLinkPostbackUpdateParamsShape = array{ * conversionTypes: list, * smartLinkScope: SmartLinkScope|value-of, * url: string, + * body?: string|null, + * headers?: list|null, + * httpMethod?: null|HTTPMethod|value-of, * smartLinkIDs?: list|null, * } */ @@ -51,6 +58,28 @@ final class SmartLinkPostbackUpdateParams implements BaseModel #[Required] public string $url; + /** + * Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + */ + #[Optional] + public ?string $body; + + /** + * Optional request headers. Header values may include postback variables. + * + * @var list
|null $headers + */ + #[Optional(list: Header::class)] + public ?array $headers; + + /** + * HTTP method used for the postback request. Existing value is kept when omitted. + * + * @var value-of|null $httpMethod + */ + #[Optional('http_method', enum: HTTPMethod::class)] + public ?string $httpMethod; + /** * Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * @@ -90,12 +119,17 @@ public function __construct() * * @param list $conversionTypes * @param SmartLinkScope|value-of $smartLinkScope + * @param list|null $headers + * @param HTTPMethod|value-of|null $httpMethod * @param list|null $smartLinkIDs */ public static function with( array $conversionTypes, SmartLinkScope|string $smartLinkScope, string $url, + ?string $body = null, + ?array $headers = null, + HTTPMethod|string|null $httpMethod = null, ?array $smartLinkIDs = null, ): self { $self = new self; @@ -104,6 +138,9 @@ public static function with( $self['smartLinkScope'] = $smartLinkScope; $self['url'] = $url; + null !== $body && $self['body'] = $body; + null !== $headers && $self['headers'] = $headers; + null !== $httpMethod && $self['httpMethod'] = $httpMethod; null !== $smartLinkIDs && $self['smartLinkIDs'] = $smartLinkIDs; return $self; @@ -147,6 +184,43 @@ public function withURL(string $url): self return $self; } + /** + * Optional request body template for POST postbacks. Variables are replaced when the postback is dispatched. + */ + public function withBody(string $body): self + { + $self = clone $this; + $self['body'] = $body; + + return $self; + } + + /** + * Optional request headers. Header values may include postback variables. + * + * @param list $headers + */ + public function withHeaders(array $headers): self + { + $self = clone $this; + $self['headers'] = $headers; + + return $self; + } + + /** + * HTTP method used for the postback request. Existing value is kept when omitted. + * + * @param HTTPMethod|value-of $httpMethod + */ + public function withHTTPMethod(HTTPMethod|string $httpMethod): self + { + $self = clone $this; + $self['httpMethod'] = $httpMethod; + + return $self; + } + /** * Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. * diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams/HTTPMethod.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams/HTTPMethod.php new file mode 100644 index 00000000..472fbbc4 --- /dev/null +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams/HTTPMethod.php @@ -0,0 +1,15 @@ + */ + use SdkModel; + + /** + * This field is required when headers.*.value is present. Must match the regex /\A[A-Za-z0-9!#$%&'*+.^_`|~-]+\z/. Must not be greater than 100 characters. + */ + #[Optional(nullable: true)] + public ?string $name; + + /** + * Must not be greater than 2000 characters. + */ + #[Optional(nullable: true)] + public ?string $value; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?string $name = null, + ?string $value = null + ): self { + $self = new self; + + null !== $name && $self['name'] = $name; + null !== $value && $self['value'] = $value; + + return $self; + } + + /** + * This field is required when headers.*.value is present. Must match the regex /\A[A-Za-z0-9!#$%&'*+.^_`|~-]+\z/. Must not be greater than 100 characters. + */ + public function withName(?string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + /** + * Must not be greater than 2000 characters. + */ + public function withValue(?string $value): self + { + $self = clone $this; + $self['value'] = $value; + + return $self; + } +} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams/SmartLinkScope.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams/SmartLinkScope.php index 9b81685e..3320b492 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams/SmartLinkScope.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateParams/SmartLinkScope.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateParams; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateParams; /** * `global` or `campaign_specific`. diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse.php index 341f2d64..bc8db095 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks; +namespace OnlyFansAPI\SmartLinkPostbacks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data * * @phpstan-type SmartLinkPostbackUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data.php index 5a7e1c23..48521726 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data.php @@ -2,20 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data\SmartLink; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data\Header; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data\SmartLink; /** - * @phpstan-import-type SmartLinkShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data\SmartLink + * @phpstan-import-type HeaderShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data\Header + * @phpstan-import-type SmartLinkShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data\SmartLink * * @phpstan-type DataShape = array{ * id?: int|null, + * body?: string|null, * conversionTypes?: list|null, * createdAt?: string|null, + * headers?: list|null, + * httpMethod?: string|null, * latestResponse?: string|null, * smartLinkIDs?: list|null, * smartLinkScope?: string|null, @@ -32,6 +37,9 @@ final class Data implements BaseModel #[Optional] public ?int $id; + #[Optional] + public ?string $body; + /** @var list|null $conversionTypes */ #[Optional('conversion_types', list: 'string')] public ?array $conversionTypes; @@ -39,6 +47,13 @@ final class Data implements BaseModel #[Optional('created_at')] public ?string $createdAt; + /** @var list
|null $headers */ + #[Optional(list: Header::class)] + public ?array $headers; + + #[Optional('http_method')] + public ?string $httpMethod; + #[Optional('latest_response', nullable: true)] public ?string $latestResponse; @@ -70,13 +85,17 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param list|null $conversionTypes + * @param list|null $headers * @param list|null $smartLinkIDs * @param list|null $smartLinks */ public static function with( ?int $id = null, + ?string $body = null, ?array $conversionTypes = null, ?string $createdAt = null, + ?array $headers = null, + ?string $httpMethod = null, ?string $latestResponse = null, ?array $smartLinkIDs = null, ?string $smartLinkScope = null, @@ -87,8 +106,11 @@ public static function with( $self = new self; null !== $id && $self['id'] = $id; + null !== $body && $self['body'] = $body; null !== $conversionTypes && $self['conversionTypes'] = $conversionTypes; null !== $createdAt && $self['createdAt'] = $createdAt; + null !== $headers && $self['headers'] = $headers; + null !== $httpMethod && $self['httpMethod'] = $httpMethod; null !== $latestResponse && $self['latestResponse'] = $latestResponse; null !== $smartLinkIDs && $self['smartLinkIDs'] = $smartLinkIDs; null !== $smartLinkScope && $self['smartLinkScope'] = $smartLinkScope; @@ -107,6 +129,14 @@ public function withID(int $id): self return $self; } + public function withBody(string $body): self + { + $self = clone $this; + $self['body'] = $body; + + return $self; + } + /** * @param list $conversionTypes */ @@ -126,6 +156,25 @@ public function withCreatedAt(string $createdAt): self return $self; } + /** + * @param list $headers + */ + public function withHeaders(array $headers): self + { + $self = clone $this; + $self['headers'] = $headers; + + return $self; + } + + public function withHTTPMethod(string $httpMethod): self + { + $self = clone $this; + $self['httpMethod'] = $httpMethod; + + return $self; + } + public function withLatestResponse(?string $latestResponse): self { $self = clone $this; diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data/Header.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data/Header.php new file mode 100644 index 00000000..04f0f4a4 --- /dev/null +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data/Header.php @@ -0,0 +1,60 @@ + */ + use SdkModel; + + #[Optional] + public ?string $name; + + #[Optional] + public ?string $value; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with(?string $name = null, ?string $value = null): self + { + $self = new self; + + null !== $name && $self['name'] = $name; + null !== $value && $self['value'] = $value; + + return $self; + } + + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + public function withValue(string $value): self + { + $self = clone $this; + $self['value'] = $value; + + return $self; + } +} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data/SmartLink.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data/SmartLink.php index 9932cc83..242121b5 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data/SmartLink.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/Data/SmartLink.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SmartLinkShape = array{ diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta.php index d193cdca..39be9146 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Cache.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Cache.php index fad95456..84713c2a 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Cache.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Credits.php b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Credits.php index d34b0be9..1aaa465f 100644 --- a/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Credits.php +++ b/src/SmartLinkPostbacks/SmartLinkPostbackUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta; +namespace OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkCreateParams.php b/src/SmartLinks/SmartLinkCreateParams.php index 13d1b90a..6da313c7 100644 --- a/src/SmartLinks/SmartLinkCreateParams.php +++ b/src/SmartLinks/SmartLinkCreateParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkCreateParams\LinkType; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkCreateParams\LinkType; /** * Create a new Smart Link for the account. Smart Links are pooled Free Trial or Tracking links that rotate inventory automatically. * - * @see Onlyfansapi\Services\SmartLinksService::create() + * @see OnlyFansAPI\Services\SmartLinksService::create() * * @phpstan-type SmartLinkCreateParamsShape = array{ * accountID: string, diff --git a/src/SmartLinks/SmartLinkCreateParams/LinkType.php b/src/SmartLinks/SmartLinkCreateParams/LinkType.php index 0cf9811e..d07f2581 100644 --- a/src/SmartLinks/SmartLinkCreateParams/LinkType.php +++ b/src/SmartLinks/SmartLinkCreateParams/LinkType.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkCreateParams; +namespace OnlyFansAPI\SmartLinks\SmartLinkCreateParams; /** * The type of Smart Link to create. diff --git a/src/SmartLinks/SmartLinkDeleteResponse.php b/src/SmartLinks/SmartLinkDeleteResponse.php index 52213105..5ae8123b 100644 --- a/src/SmartLinks/SmartLinkDeleteResponse.php +++ b/src/SmartLinks/SmartLinkDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\Data * * @phpstan-type SmartLinkDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinks/SmartLinkDeleteResponse/Data.php b/src/SmartLinks/SmartLinkDeleteResponse/Data.php index ea662136..60ecf418 100644 --- a/src/SmartLinks/SmartLinkDeleteResponse/Data.php +++ b/src/SmartLinks/SmartLinkDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkDeleteResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/SmartLinks/SmartLinkDeleteResponse/_Meta.php b/src/SmartLinks/SmartLinkDeleteResponse/_Meta.php index 0d1be173..33696081 100644 --- a/src/SmartLinks/SmartLinkDeleteResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkDeleteResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta\_Credits; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Cache.php index 65df033b..aa39b2a6 100644 --- a/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Credits.php index 366a7abf..4da5f9b2 100644 --- a/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_RateLimits.php b/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_RateLimits.php index 0cf0c526..d70c8b39 100644 --- a/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_RateLimits.php +++ b/src/SmartLinks/SmartLinkDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SmartLinks/SmartLinkGetResponse.php b/src/SmartLinks/SmartLinkGetResponse.php index 582728d0..40a2bc84 100644 --- a/src/SmartLinks/SmartLinkGetResponse.php +++ b/src/SmartLinks/SmartLinkGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data * * @phpstan-type SmartLinkGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinks/SmartLinkGetResponse/Data.php b/src/SmartLinks/SmartLinkGetResponse/Data.php index 3cd396b4..43fcda81 100644 --- a/src/SmartLinks/SmartLinkGetResponse/Data.php +++ b/src/SmartLinks/SmartLinkGetResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data\Account; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data\Cost; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data\Account; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data\Cost; /** - * @phpstan-import-type AccountShape from \Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data\Account - * @phpstan-import-type CostShape from \Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data\Cost + * @phpstan-import-type AccountShape from \OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data\Account + * @phpstan-import-type CostShape from \OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data\Cost * * @phpstan-type DataShape = array{ * id?: string|null, diff --git a/src/SmartLinks/SmartLinkGetResponse/Data/Account.php b/src/SmartLinks/SmartLinkGetResponse/Data/Account.php index 597c37d9..b53eac13 100644 --- a/src/SmartLinks/SmartLinkGetResponse/Data/Account.php +++ b/src/SmartLinks/SmartLinkGetResponse/Data/Account.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AccountShape = array{ diff --git a/src/SmartLinks/SmartLinkGetResponse/Data/Cost.php b/src/SmartLinks/SmartLinkGetResponse/Data/Cost.php index e6d13932..a34cc4bc 100644 --- a/src/SmartLinks/SmartLinkGetResponse/Data/Cost.php +++ b/src/SmartLinks/SmartLinkGetResponse/Data/Cost.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CostShape = array{ diff --git a/src/SmartLinks/SmartLinkGetResponse/_Meta.php b/src/SmartLinks/SmartLinkGetResponse/_Meta.php index 826e184a..4127edee 100644 --- a/src/SmartLinks/SmartLinkGetResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta\_Credits; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta\_Credits; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SmartLinks/SmartLinkGetResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkGetResponse/_Meta/_Cache.php index 46288b50..1de30e69 100644 --- a/src/SmartLinks/SmartLinkGetResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkGetResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkGetResponse/_Meta/_Credits.php index 13702c52..33e96952 100644 --- a/src/SmartLinks/SmartLinkGetResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkGetResponse/_Meta/_RateLimits.php b/src/SmartLinks/SmartLinkGetResponse/_Meta/_RateLimits.php index 82f5e092..8dc8ac0a 100644 --- a/src/SmartLinks/SmartLinkGetResponse/_Meta/_RateLimits.php +++ b/src/SmartLinks/SmartLinkGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SmartLinks/SmartLinkGetStatsResponse.php b/src/SmartLinks/SmartLinkGetStatsResponse.php index 82c5e74a..9bcac29e 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data * * @phpstan-type SmartLinkGetStatsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinks/SmartLinkGetStatsResponse/Data.php b/src/SmartLinks/SmartLinkGetStatsResponse/Data.php index c2e03e39..5c9689a9 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse/Data.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data\DailyMetric; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data\MonthlyMetric; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data\Summary; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data\DailyMetric; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data\MonthlyMetric; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data\Summary; /** - * @phpstan-import-type DailyMetricShape from \Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data\DailyMetric - * @phpstan-import-type MonthlyMetricShape from \Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data\MonthlyMetric - * @phpstan-import-type SummaryShape from \Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data\Summary + * @phpstan-import-type DailyMetricShape from \OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data\DailyMetric + * @phpstan-import-type MonthlyMetricShape from \OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data\MonthlyMetric + * @phpstan-import-type SummaryShape from \OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data\Summary * * @phpstan-type DataShape = array{ * dailyMetrics?: list|null, diff --git a/src/SmartLinks/SmartLinkGetStatsResponse/Data/DailyMetric.php b/src/SmartLinks/SmartLinkGetStatsResponse/Data/DailyMetric.php index 26b3c4ea..1dacf970 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse/Data/DailyMetric.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse/Data/DailyMetric.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DailyMetricShape = array{ diff --git a/src/SmartLinks/SmartLinkGetStatsResponse/Data/MonthlyMetric.php b/src/SmartLinks/SmartLinkGetStatsResponse/Data/MonthlyMetric.php index 67414fb0..6a80317c 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse/Data/MonthlyMetric.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse/Data/MonthlyMetric.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type MonthlyMetricShape = array{ diff --git a/src/SmartLinks/SmartLinkGetStatsResponse/Data/Summary.php b/src/SmartLinks/SmartLinkGetStatsResponse/Data/Summary.php index b3078f7f..fb688180 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse/Data/Summary.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse/Data/Summary.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryShape = array{ diff --git a/src/SmartLinks/SmartLinkGetStatsResponse/_Meta.php b/src/SmartLinks/SmartLinkGetStatsResponse/_Meta.php index 41d8b650..0a6dc6a5 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Cache.php index 98666425..4d18c15f 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Credits.php index 2b06efec..399c472e 100644 --- a/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkGetStatsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkListClicksParams.php b/src/SmartLinks/SmartLinkListClicksParams.php index 6cbe0c04..c089b409 100644 --- a/src/SmartLinks/SmartLinkListClicksParams.php +++ b/src/SmartLinks/SmartLinkListClicksParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Query smart link clicks in a date range with optional bot/duplicate filtering. * - * @see Onlyfansapi\Services\SmartLinksService::listClicks() + * @see OnlyFansAPI\Services\SmartLinksService::listClicks() * * @phpstan-type SmartLinkListClicksParamsShape = array{ * dateEnd?: string|null, diff --git a/src/SmartLinks/SmartLinkListClicksResponse.php b/src/SmartLinks/SmartLinkListClicksResponse.php index c8cb976a..e476e648 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse.php +++ b/src/SmartLinks/SmartLinkListClicksResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data * * @phpstan-type SmartLinkListClicksResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinks/SmartLinkListClicksResponse/Data.php b/src/SmartLinks/SmartLinkListClicksResponse/Data.php index 1253ea72..52202461 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/Data.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/Data.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Chart; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Filters; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Row; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Summary; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Chart; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Filters; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Row; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Summary; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Chart - * @phpstan-import-type FiltersShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Filters - * @phpstan-import-type RowShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Row - * @phpstan-import-type SummaryShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data\Summary + * @phpstan-import-type ChartShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Chart + * @phpstan-import-type FiltersShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Filters + * @phpstan-import-type RowShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Row + * @phpstan-import-type SummaryShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data\Summary * * @phpstan-type DataShape = array{ * chart?: list|null, diff --git a/src/SmartLinks/SmartLinkListClicksResponse/Data/Chart.php b/src/SmartLinks/SmartLinkListClicksResponse/Data/Chart.php index 1016b9f4..00f623c5 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/Data/Chart.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/Data/Chart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartShape = array{clicks?: int|null, timestamp?: string|null} diff --git a/src/SmartLinks/SmartLinkListClicksResponse/Data/Filters.php b/src/SmartLinks/SmartLinkListClicksResponse/Data/Filters.php index f307cbca..795e87de 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/Data/Filters.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/Data/Filters.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FiltersShape = array{ diff --git a/src/SmartLinks/SmartLinkListClicksResponse/Data/Row.php b/src/SmartLinks/SmartLinkListClicksResponse/Data/Row.php index 57ea224c..56036fa2 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/Data/Row.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/Data/Row.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RowShape = array{ diff --git a/src/SmartLinks/SmartLinkListClicksResponse/Data/Summary.php b/src/SmartLinks/SmartLinkListClicksResponse/Data/Summary.php index 617e87ad..dae6a271 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/Data/Summary.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/Data/Summary.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryShape = array{clicksTotal?: int|null} diff --git a/src/SmartLinks/SmartLinkListClicksResponse/_Meta.php b/src/SmartLinks/SmartLinkListClicksResponse/_Meta.php index 79124d52..94f1de6e 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Cache.php index d2fdf6e3..649c91b5 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Credits.php index 5af30182..094dddfb 100644 --- a/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkListClicksResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListClicksResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkListConversionsParams.php b/src/SmartLinks/SmartLinkListConversionsParams.php index c27751d4..b9ae759e 100644 --- a/src/SmartLinks/SmartLinkListConversionsParams.php +++ b/src/SmartLinks/SmartLinkListConversionsParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsParams\ConversionType; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsParams\ConversionType; /** * Query smart link conversions in a date range with optional bot/duplicate and conversion type filtering. * - * @see Onlyfansapi\Services\SmartLinksService::listConversions() + * @see OnlyFansAPI\Services\SmartLinksService::listConversions() * * @phpstan-type SmartLinkListConversionsParamsShape = array{ * conversionType?: null|ConversionType|value-of, diff --git a/src/SmartLinks/SmartLinkListConversionsParams/ConversionType.php b/src/SmartLinks/SmartLinkListConversionsParams/ConversionType.php index dae4bef1..d5780c95 100644 --- a/src/SmartLinks/SmartLinkListConversionsParams/ConversionType.php +++ b/src/SmartLinks/SmartLinkListConversionsParams/ConversionType.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsParams; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsParams; /** * Optional conversion type filter. @@ -15,5 +15,7 @@ enum ConversionType: string case MESSAGE_RECEIVED = 'message_received'; + case FAN_SENT_1_MESSAGE = 'fan_sent_1_message'; + case FAN_SENT_3_MESSAGES = 'fan_sent_3_messages'; } diff --git a/src/SmartLinks/SmartLinkListConversionsResponse.php b/src/SmartLinks/SmartLinkListConversionsResponse.php index 28b501b7..f8a2e75c 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data * * @phpstan-type SmartLinkListConversionsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/Data.php b/src/SmartLinks/SmartLinkListConversionsResponse/Data.php index 729bd1c5..23bac5ae 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/Data.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/Data.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Chart; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Filters; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Summary; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Chart; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Filters; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Summary; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Chart - * @phpstan-import-type FiltersShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Filters - * @phpstan-import-type RowShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row - * @phpstan-import-type SummaryShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Summary + * @phpstan-import-type ChartShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Chart + * @phpstan-import-type FiltersShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Filters + * @phpstan-import-type RowShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row + * @phpstan-import-type SummaryShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Summary * * @phpstan-type DataShape = array{ * chart?: list|null, diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Chart.php b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Chart.php index 9480e2ad..560def09 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Chart.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Chart.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartShape = array{ diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Filters.php b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Filters.php index c6dcbb8f..5050ba37 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Filters.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Filters.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FiltersShape = array{ diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row.php b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row.php index d9da6de4..9fc22cab 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Click; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Fan; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Click; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Fan; /** - * @phpstan-import-type ClickShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Click - * @phpstan-import-type FanShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Fan + * @phpstan-import-type ClickShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Click + * @phpstan-import-type FanShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row\Fan * * @phpstan-type RowShape = array{ * id?: string|null, diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Click.php b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Click.php index e043f350..85eececd 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Click.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Click.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ClickShape = array{ diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Fan.php b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Fan.php index 9753f4b1..c17d75c5 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Fan.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Row/Fan.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data\Row; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data\Row; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FanShape = array{ diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Summary.php b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Summary.php index c25fc547..ecf7a0a5 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/Data/Summary.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/Data/Summary.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryShape = array{ diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/_Meta.php b/src/SmartLinks/SmartLinkListConversionsResponse/_Meta.php index d8623ad9..3867a817 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Cache.php index 3fe14078..00076eee 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Credits.php index c326427c..15cfb91c 100644 --- a/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkListConversionsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkListFansParams.php b/src/SmartLinks/SmartLinkListFansParams.php index d2890ef7..070440b6 100644 --- a/src/SmartLinks/SmartLinkListFansParams.php +++ b/src/SmartLinks/SmartLinkListFansParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListFansParams\Sort; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListFansParams\Sort; /** * Query attributed Smart Link fans with aggregate fan metrics and subscriber attribution metadata. * - * @see Onlyfansapi\Services\SmartLinksService::listFans() + * @see OnlyFansAPI\Services\SmartLinksService::listFans() * * @phpstan-type SmartLinkListFansParamsShape = array{ * hasMessages?: bool|null, @@ -22,7 +22,9 @@ * minRevenueNet?: float|null, * minTipsNet?: float|null, * offset?: int|null, + * previouslySubscribed?: bool|null, * sort?: null|Sort|value-of, + * subscribedUsingPromo?: bool|null, * } */ final class SmartLinkListFansParams implements BaseModel @@ -67,6 +69,12 @@ final class SmartLinkListFansParams implements BaseModel #[Optional] public ?int $offset; + /** + * Optional - Filter to returning subscribers (fans previously subscribed before this subscription). + */ + #[Optional] + public ?bool $previouslySubscribed; + /** * Optional sort field. Default `-revenue_net`. * @@ -75,6 +83,12 @@ final class SmartLinkListFansParams implements BaseModel #[Optional(enum: Sort::class)] public ?string $sort; + /** + * Optional - Filter to fans who subscribed via a promotion/offer. + */ + #[Optional] + public ?bool $subscribedUsingPromo; + public function __construct() { $this->initialize(); @@ -94,7 +108,9 @@ public static function with( ?float $minRevenueNet = null, ?float $minTipsNet = null, ?int $offset = null, + ?bool $previouslySubscribed = null, Sort|string|null $sort = null, + ?bool $subscribedUsingPromo = null, ): self { $self = new self; @@ -104,7 +120,9 @@ public static function with( null !== $minRevenueNet && $self['minRevenueNet'] = $minRevenueNet; null !== $minTipsNet && $self['minTipsNet'] = $minTipsNet; null !== $offset && $self['offset'] = $offset; + null !== $previouslySubscribed && $self['previouslySubscribed'] = $previouslySubscribed; null !== $sort && $self['sort'] = $sort; + null !== $subscribedUsingPromo && $self['subscribedUsingPromo'] = $subscribedUsingPromo; return $self; } @@ -175,6 +193,17 @@ public function withOffset(int $offset): self return $self; } + /** + * Optional - Filter to returning subscribers (fans previously subscribed before this subscription). + */ + public function withPreviouslySubscribed(bool $previouslySubscribed): self + { + $self = clone $this; + $self['previouslySubscribed'] = $previouslySubscribed; + + return $self; + } + /** * Optional sort field. Default `-revenue_net`. * @@ -187,4 +216,15 @@ public function withSort(Sort|string $sort): self return $self; } + + /** + * Optional - Filter to fans who subscribed via a promotion/offer. + */ + public function withSubscribedUsingPromo(bool $subscribedUsingPromo): self + { + $self = clone $this; + $self['subscribedUsingPromo'] = $subscribedUsingPromo; + + return $self; + } } diff --git a/src/SmartLinks/SmartLinkListFansParams/Sort.php b/src/SmartLinks/SmartLinkListFansParams/Sort.php index 2841c23a..be37c577 100644 --- a/src/SmartLinks/SmartLinkListFansParams/Sort.php +++ b/src/SmartLinks/SmartLinkListFansParams/Sort.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansParams; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansParams; /** * Optional sort field. Default `-revenue_net`. diff --git a/src/SmartLinks/SmartLinkListFansResponse.php b/src/SmartLinks/SmartLinkListFansResponse.php index d3d129f3..56d5e2de 100644 --- a/src/SmartLinks/SmartLinkListFansResponse.php +++ b/src/SmartLinks/SmartLinkListFansResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data * * @phpstan-type SmartLinkListFansResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinks/SmartLinkListFansResponse/Data.php b/src/SmartLinks/SmartLinkListFansResponse/Data.php index e41bd680..55cb62eb 100644 --- a/src/SmartLinks/SmartLinkListFansResponse/Data.php +++ b/src/SmartLinks/SmartLinkListFansResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data\Filters; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data\Row; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data\Summary; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Filters; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Row; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Summary; /** - * @phpstan-import-type FiltersShape from \Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data\Filters - * @phpstan-import-type RowShape from \Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data\Row - * @phpstan-import-type SummaryShape from \Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data\Summary + * @phpstan-import-type FiltersShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Filters + * @phpstan-import-type RowShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Row + * @phpstan-import-type SummaryShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Summary * * @phpstan-type DataShape = array{ * filters?: null|Filters|FiltersShape, diff --git a/src/SmartLinks/SmartLinkListFansResponse/Data/Filters.php b/src/SmartLinks/SmartLinkListFansResponse/Data/Filters.php index c7b323ab..f595db83 100644 --- a/src/SmartLinks/SmartLinkListFansResponse/Data/Filters.php +++ b/src/SmartLinks/SmartLinkListFansResponse/Data/Filters.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FiltersShape = array{ @@ -16,7 +16,9 @@ * minRevenueNet?: string|null, * minTipsNet?: string|null, * offset?: int|null, + * previouslySubscribed?: string|null, * sort?: string|null, + * subscribedUsingPromo?: string|null, * } */ final class Filters implements BaseModel @@ -42,9 +44,15 @@ final class Filters implements BaseModel #[Optional] public ?int $offset; + #[Optional('previously_subscribed', nullable: true)] + public ?string $previouslySubscribed; + #[Optional] public ?string $sort; + #[Optional('subscribed_using_promo', nullable: true)] + public ?string $subscribedUsingPromo; + public function __construct() { $this->initialize(); @@ -62,7 +70,9 @@ public static function with( ?string $minRevenueNet = null, ?string $minTipsNet = null, ?int $offset = null, + ?string $previouslySubscribed = null, ?string $sort = null, + ?string $subscribedUsingPromo = null, ): self { $self = new self; @@ -72,7 +82,9 @@ public static function with( null !== $minRevenueNet && $self['minRevenueNet'] = $minRevenueNet; null !== $minTipsNet && $self['minTipsNet'] = $minTipsNet; null !== $offset && $self['offset'] = $offset; + null !== $previouslySubscribed && $self['previouslySubscribed'] = $previouslySubscribed; null !== $sort && $self['sort'] = $sort; + null !== $subscribedUsingPromo && $self['subscribedUsingPromo'] = $subscribedUsingPromo; return $self; } @@ -126,6 +138,15 @@ public function withOffset(int $offset): self return $self; } + public function withPreviouslySubscribed( + ?string $previouslySubscribed + ): self { + $self = clone $this; + $self['previouslySubscribed'] = $previouslySubscribed; + + return $self; + } + public function withSort(string $sort): self { $self = clone $this; @@ -133,4 +154,13 @@ public function withSort(string $sort): self return $self; } + + public function withSubscribedUsingPromo( + ?string $subscribedUsingPromo + ): self { + $self = clone $this; + $self['subscribedUsingPromo'] = $subscribedUsingPromo; + + return $self; + } } diff --git a/src/SmartLinks/SmartLinkListFansResponse/Data/Row.php b/src/SmartLinks/SmartLinkListFansResponse/Data/Row.php index ce8e836b..4f0feae0 100644 --- a/src/SmartLinks/SmartLinkListFansResponse/Data/Row.php +++ b/src/SmartLinks/SmartLinkListFansResponse/Data/Row.php @@ -2,13 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Row\SubscriptionInsights; /** + * @phpstan-import-type SubscriptionInsightsShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data\Row\SubscriptionInsights + * * @phpstan-type RowShape = array{ * avatarURL?: string|null, * clickID?: string|null, @@ -20,6 +23,7 @@ * name?: string|null, * onlyfansID?: string|null, * revenueNet?: int|null, + * subscriptionInsights?: null|SubscriptionInsights|SubscriptionInsightsShape, * tipsNet?: int|null, * username?: string|null, * } @@ -59,6 +63,9 @@ final class Row implements BaseModel #[Optional('revenue_net')] public ?int $revenueNet; + #[Optional('subscription_insights')] + public ?SubscriptionInsights $subscriptionInsights; + #[Optional('tips_net')] public ?int $tipsNet; @@ -74,6 +81,8 @@ public function __construct() * Construct an instance from the required parameters. * * You must use named parameters to construct any parameters with a default value. + * + * @param SubscriptionInsights|SubscriptionInsightsShape|null $subscriptionInsights */ public static function with( ?string $avatarURL = null, @@ -86,6 +95,7 @@ public static function with( ?string $name = null, ?string $onlyfansID = null, ?int $revenueNet = null, + SubscriptionInsights|array|null $subscriptionInsights = null, ?int $tipsNet = null, ?string $username = null, ): self { @@ -101,6 +111,7 @@ public static function with( null !== $name && $self['name'] = $name; null !== $onlyfansID && $self['onlyfansID'] = $onlyfansID; null !== $revenueNet && $self['revenueNet'] = $revenueNet; + null !== $subscriptionInsights && $self['subscriptionInsights'] = $subscriptionInsights; null !== $tipsNet && $self['tipsNet'] = $tipsNet; null !== $username && $self['username'] = $username; @@ -187,6 +198,18 @@ public function withRevenueNet(int $revenueNet): self return $self; } + /** + * @param SubscriptionInsights|SubscriptionInsightsShape $subscriptionInsights + */ + public function withSubscriptionInsights( + SubscriptionInsights|array $subscriptionInsights + ): self { + $self = clone $this; + $self['subscriptionInsights'] = $subscriptionInsights; + + return $self; + } + public function withTipsNet(int $tipsNet): self { $self = clone $this; diff --git a/src/SmartLinks/SmartLinkListFansResponse/Data/Row/SubscriptionInsights.php b/src/SmartLinks/SmartLinkListFansResponse/Data/Row/SubscriptionInsights.php new file mode 100644 index 00000000..8ff58d61 --- /dev/null +++ b/src/SmartLinks/SmartLinkListFansResponse/Data/Row/SubscriptionInsights.php @@ -0,0 +1,117 @@ + */ + use SdkModel; + + #[Optional('current_subscription')] + public ?CurrentSubscription $currentSubscription; + + #[Optional('current_subscription_from_smart_link')] + public ?bool $currentSubscriptionFromSmartLink; + + #[Optional('has_subscription_data')] + public ?bool $hasSubscriptionData; + + #[Optional('previously_subscribed')] + public ?bool $previouslySubscribed; + + #[Optional('subscribed_using_promo')] + public ?bool $subscribedUsingPromo; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param CurrentSubscription|CurrentSubscriptionShape|null $currentSubscription + */ + public static function with( + CurrentSubscription|array|null $currentSubscription = null, + ?bool $currentSubscriptionFromSmartLink = null, + ?bool $hasSubscriptionData = null, + ?bool $previouslySubscribed = null, + ?bool $subscribedUsingPromo = null, + ): self { + $self = new self; + + null !== $currentSubscription && $self['currentSubscription'] = $currentSubscription; + null !== $currentSubscriptionFromSmartLink && $self['currentSubscriptionFromSmartLink'] = $currentSubscriptionFromSmartLink; + null !== $hasSubscriptionData && $self['hasSubscriptionData'] = $hasSubscriptionData; + null !== $previouslySubscribed && $self['previouslySubscribed'] = $previouslySubscribed; + null !== $subscribedUsingPromo && $self['subscribedUsingPromo'] = $subscribedUsingPromo; + + return $self; + } + + /** + * @param CurrentSubscription|CurrentSubscriptionShape $currentSubscription + */ + public function withCurrentSubscription( + CurrentSubscription|array $currentSubscription + ): self { + $self = clone $this; + $self['currentSubscription'] = $currentSubscription; + + return $self; + } + + public function withCurrentSubscriptionFromSmartLink( + bool $currentSubscriptionFromSmartLink + ): self { + $self = clone $this; + $self['currentSubscriptionFromSmartLink'] = $currentSubscriptionFromSmartLink; + + return $self; + } + + public function withHasSubscriptionData(bool $hasSubscriptionData): self + { + $self = clone $this; + $self['hasSubscriptionData'] = $hasSubscriptionData; + + return $self; + } + + public function withPreviouslySubscribed(bool $previouslySubscribed): self + { + $self = clone $this; + $self['previouslySubscribed'] = $previouslySubscribed; + + return $self; + } + + public function withSubscribedUsingPromo(bool $subscribedUsingPromo): self + { + $self = clone $this; + $self['subscribedUsingPromo'] = $subscribedUsingPromo; + + return $self; + } +} diff --git a/src/SmartLinks/SmartLinkListFansResponse/Data/Row/SubscriptionInsights/CurrentSubscription.php b/src/SmartLinks/SmartLinkListFansResponse/Data/Row/SubscriptionInsights/CurrentSubscription.php new file mode 100644 index 00000000..7caad445 --- /dev/null +++ b/src/SmartLinks/SmartLinkListFansResponse/Data/Row/SubscriptionInsights/CurrentSubscription.php @@ -0,0 +1,107 @@ + */ + use SdkModel; + + #[Optional] + public ?string $action; + + #[Optional('is_free')] + public ?bool $isFree; + + #[Optional] + public ?int $price; + + #[Optional('regular_price')] + public ?int $regularPrice; + + #[Optional] + public ?string $type; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?string $action = null, + ?bool $isFree = null, + ?int $price = null, + ?int $regularPrice = null, + ?string $type = null, + ): self { + $self = new self; + + null !== $action && $self['action'] = $action; + null !== $isFree && $self['isFree'] = $isFree; + null !== $price && $self['price'] = $price; + null !== $regularPrice && $self['regularPrice'] = $regularPrice; + null !== $type && $self['type'] = $type; + + return $self; + } + + public function withAction(string $action): self + { + $self = clone $this; + $self['action'] = $action; + + return $self; + } + + public function withIsFree(bool $isFree): self + { + $self = clone $this; + $self['isFree'] = $isFree; + + return $self; + } + + public function withPrice(int $price): self + { + $self = clone $this; + $self['price'] = $price; + + return $self; + } + + public function withRegularPrice(int $regularPrice): self + { + $self = clone $this; + $self['regularPrice'] = $regularPrice; + + return $self; + } + + public function withType(string $type): self + { + $self = clone $this; + $self['type'] = $type; + + return $self; + } +} diff --git a/src/SmartLinks/SmartLinkListFansResponse/Data/Summary.php b/src/SmartLinks/SmartLinkListFansResponse/Data/Summary.php index cf7ebc9d..ff2d8686 100644 --- a/src/SmartLinks/SmartLinkListFansResponse/Data/Summary.php +++ b/src/SmartLinks/SmartLinkListFansResponse/Data/Summary.php @@ -2,15 +2,16 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryShape = array{ * fansTotal?: int|null, + * fansWith1PlusMessagesTotal?: int|null, * fansWith3PlusMessagesTotal?: int|null, * revenueNetTotal?: int|null, * tipsNetTotal?: int|null, @@ -24,6 +25,9 @@ final class Summary implements BaseModel #[Optional('fans_total')] public ?int $fansTotal; + #[Optional('fans_with_1_plus_messages_total')] + public ?int $fansWith1PlusMessagesTotal; + #[Optional('fans_with_3_plus_messages_total')] public ?int $fansWith3PlusMessagesTotal; @@ -45,6 +49,7 @@ public function __construct() */ public static function with( ?int $fansTotal = null, + ?int $fansWith1PlusMessagesTotal = null, ?int $fansWith3PlusMessagesTotal = null, ?int $revenueNetTotal = null, ?int $tipsNetTotal = null, @@ -52,6 +57,7 @@ public static function with( $self = new self; null !== $fansTotal && $self['fansTotal'] = $fansTotal; + null !== $fansWith1PlusMessagesTotal && $self['fansWith1PlusMessagesTotal'] = $fansWith1PlusMessagesTotal; null !== $fansWith3PlusMessagesTotal && $self['fansWith3PlusMessagesTotal'] = $fansWith3PlusMessagesTotal; null !== $revenueNetTotal && $self['revenueNetTotal'] = $revenueNetTotal; null !== $tipsNetTotal && $self['tipsNetTotal'] = $tipsNetTotal; @@ -67,6 +73,15 @@ public function withFansTotal(int $fansTotal): self return $self; } + public function withFansWith1PlusMessagesTotal( + int $fansWith1PlusMessagesTotal + ): self { + $self = clone $this; + $self['fansWith1PlusMessagesTotal'] = $fansWith1PlusMessagesTotal; + + return $self; + } + public function withFansWith3PlusMessagesTotal( int $fansWith3PlusMessagesTotal ): self { diff --git a/src/SmartLinks/SmartLinkListFansResponse/_Meta.php b/src/SmartLinks/SmartLinkListFansResponse/_Meta.php index 32a88aa0..484c8391 100644 --- a/src/SmartLinks/SmartLinkListFansResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkListFansResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Cache.php index 766e8d6d..6fe6fce5 100644 --- a/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Credits.php index ca5bb971..dbec8ff3 100644 --- a/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkListFansResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListFansResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListFansResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkListParams.php b/src/SmartLinks/SmartLinkListParams.php index 36606092..e4bca763 100644 --- a/src/SmartLinks/SmartLinkListParams.php +++ b/src/SmartLinks/SmartLinkListParams.php @@ -2,24 +2,28 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter; /** * List all Smart Links. * - * @see Onlyfansapi\Services\SmartLinksService::list() + * @see OnlyFansAPI\Services\SmartLinksService::list() + * + * @phpstan-import-type FilterShape from \OnlyFansAPI\SmartLinks\SmartLinkListParams\Filter * * @phpstan-type SmartLinkListParamsShape = array{ * accountIDs?: string|null, + * filter?: null|Filter|FilterShape, * limit?: int|null, - * metaPixelIDs?: string|null, * name?: string|null, * offset?: int|null, + * pixelIDs?: string|null, * } */ final class SmartLinkListParams implements BaseModel @@ -34,18 +38,15 @@ final class SmartLinkListParams implements BaseModel #[Optional(nullable: true)] public ?string $accountIDs; + #[Optional] + public ?Filter $filter; + /** * The number of Smart Links to return. Default `50`. Must be at least 1. Must not be greater than 1000. */ #[Optional] public ?int $limit; - /** - * Comma-separated Meta Pixel IDs to include. - */ - #[Optional(nullable: true)] - public ?string $metaPixelIDs; - /** * Filter Smart Links by name. Must not be greater than 255 characters. */ @@ -58,6 +59,12 @@ final class SmartLinkListParams implements BaseModel #[Optional] public ?int $offset; + /** + * Comma-separated ad platform Pixel IDs to include. + */ + #[Optional(nullable: true)] + public ?string $pixelIDs; + public function __construct() { $this->initialize(); @@ -67,21 +74,25 @@ public function __construct() * Construct an instance from the required parameters. * * You must use named parameters to construct any parameters with a default value. + * + * @param Filter|FilterShape|null $filter */ public static function with( ?string $accountIDs = null, + Filter|array|null $filter = null, ?int $limit = null, - ?string $metaPixelIDs = null, ?string $name = null, ?int $offset = null, + ?string $pixelIDs = null, ): self { $self = new self; null !== $accountIDs && $self['accountIDs'] = $accountIDs; + null !== $filter && $self['filter'] = $filter; null !== $limit && $self['limit'] = $limit; - null !== $metaPixelIDs && $self['metaPixelIDs'] = $metaPixelIDs; null !== $name && $self['name'] = $name; null !== $offset && $self['offset'] = $offset; + null !== $pixelIDs && $self['pixelIDs'] = $pixelIDs; return $self; } @@ -98,23 +109,23 @@ public function withAccountIDs(?string $accountIDs): self } /** - * The number of Smart Links to return. Default `50`. Must be at least 1. Must not be greater than 1000. + * @param Filter|FilterShape $filter */ - public function withLimit(int $limit): self + public function withFilter(Filter|array $filter): self { $self = clone $this; - $self['limit'] = $limit; + $self['filter'] = $filter; return $self; } /** - * Comma-separated Meta Pixel IDs to include. + * The number of Smart Links to return. Default `50`. Must be at least 1. Must not be greater than 1000. */ - public function withMetaPixelIDs(?string $metaPixelIDs): self + public function withLimit(int $limit): self { $self = clone $this; - $self['metaPixelIDs'] = $metaPixelIDs; + $self['limit'] = $limit; return $self; } @@ -140,4 +151,15 @@ public function withOffset(int $offset): self return $self; } + + /** + * Comma-separated ad platform Pixel IDs to include. + */ + public function withPixelIDs(?string $pixelIDs): self + { + $self = clone $this; + $self['pixelIDs'] = $pixelIDs; + + return $self; + } } diff --git a/src/SmartLinks/SmartLinkListParams/Filter.php b/src/SmartLinks/SmartLinkListParams/Filter.php new file mode 100644 index 00000000..3caf29ed --- /dev/null +++ b/src/SmartLinks/SmartLinkListParams/Filter.php @@ -0,0 +1,60 @@ +|null} + */ +final class Filter implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + /** + * Must not be greater than 50 characters. + * + * @var list|null $tags + */ + #[Optional(list: 'string')] + public ?array $tags; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param list|null $tags + */ + public static function with(?array $tags = null): self + { + $self = new self; + + null !== $tags && $self['tags'] = $tags; + + return $self; + } + + /** + * Must not be greater than 50 characters. + * + * @param list $tags + */ + public function withTags(array $tags): self + { + $self = clone $this; + $self['tags'] = $tags; + + return $self; + } +} diff --git a/src/SmartLinks/SmartLinkListResponse.php b/src/SmartLinks/SmartLinkListResponse.php index a79b3a75..99021e47 100644 --- a/src/SmartLinks/SmartLinkListResponse.php +++ b/src/SmartLinks/SmartLinkListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data * * @phpstan-type SmartLinkListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/SmartLinks/SmartLinkListResponse/Data.php b/src/SmartLinks/SmartLinkListResponse/Data.php index 8ebc133b..eef66658 100644 --- a/src/SmartLinks/SmartLinkListResponse/Data.php +++ b/src/SmartLinks/SmartLinkListResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListResponse\Data\Account; -use Onlyfansapi\SmartLinks\SmartLinkListResponse\Data\Cost; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data\Account; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data\Cost; /** - * @phpstan-import-type AccountShape from \Onlyfansapi\SmartLinks\SmartLinkListResponse\Data\Account - * @phpstan-import-type CostShape from \Onlyfansapi\SmartLinks\SmartLinkListResponse\Data\Cost + * @phpstan-import-type AccountShape from \OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data\Account + * @phpstan-import-type CostShape from \OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data\Cost * * @phpstan-type DataShape = array{ * id?: string|null, diff --git a/src/SmartLinks/SmartLinkListResponse/Data/Account.php b/src/SmartLinks/SmartLinkListResponse/Data/Account.php index 4f702929..de9caf62 100644 --- a/src/SmartLinks/SmartLinkListResponse/Data/Account.php +++ b/src/SmartLinks/SmartLinkListResponse/Data/Account.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AccountShape = array{ diff --git a/src/SmartLinks/SmartLinkListResponse/Data/Cost.php b/src/SmartLinks/SmartLinkListResponse/Data/Cost.php index 671f17f8..4356bf7c 100644 --- a/src/SmartLinks/SmartLinkListResponse/Data/Cost.php +++ b/src/SmartLinks/SmartLinkListResponse/Data/Cost.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CostShape = array{ diff --git a/src/SmartLinks/SmartLinkListResponse/_Meta.php b/src/SmartLinks/SmartLinkListResponse/_Meta.php index c7a994af..3277864d 100644 --- a/src/SmartLinks/SmartLinkListResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta\_Credits; -use Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta\_Credits; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SmartLinks/SmartLinkListResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkListResponse/_Meta/_Cache.php index 9aa92daf..c13efbce 100644 --- a/src/SmartLinks/SmartLinkListResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkListResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkListResponse/_Meta/_Credits.php index 1ed04f73..986d1487 100644 --- a/src/SmartLinks/SmartLinkListResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkListResponse/_Meta/_RateLimits.php b/src/SmartLinks/SmartLinkListResponse/_Meta/_RateLimits.php index 6d7d3bd5..72965ef5 100644 --- a/src/SmartLinks/SmartLinkListResponse/_Meta/_RateLimits.php +++ b/src/SmartLinks/SmartLinkListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SmartLinks/SmartLinkListSpendersParams.php b/src/SmartLinks/SmartLinkListSpendersParams.php index 64db9d68..b1f7ac26 100644 --- a/src/SmartLinks/SmartLinkListSpendersParams.php +++ b/src/SmartLinks/SmartLinkListSpendersParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Compatibility endpoint returning fans with attributed spend through a Smart Link. * - * @see Onlyfansapi\Services\SmartLinksService::listSpenders() + * @see OnlyFansAPI\Services\SmartLinksService::listSpenders() * * @phpstan-type SmartLinkListSpendersParamsShape = array{ * limit?: int|null, minSpend?: float|null, offset?: int|null diff --git a/src/SmartLinks/SmartLinkListSpendersResponse.php b/src/SmartLinks/SmartLinkListSpendersResponse.php index 0a4e9682..1cc0ef6b 100644 --- a/src/SmartLinks/SmartLinkListSpendersResponse.php +++ b/src/SmartLinks/SmartLinkListSpendersResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\Data * * @phpstan-type SmartLinkListSpendersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/SmartLinks/SmartLinkListSpendersResponse/Data.php b/src/SmartLinks/SmartLinkListSpendersResponse/Data.php index 5767d3bb..cab3196b 100644 --- a/src/SmartLinks/SmartLinkListSpendersResponse/Data.php +++ b/src/SmartLinks/SmartLinkListSpendersResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\Data\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\Data\Revenue; /** - * @phpstan-import-type RevenueShape from \Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\Data\Revenue + * @phpstan-import-type RevenueShape from \OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\Data\Revenue * * @phpstan-type DataShape = array{ * onlyfansID?: string|null, diff --git a/src/SmartLinks/SmartLinkListSpendersResponse/Data/Revenue.php b/src/SmartLinks/SmartLinkListSpendersResponse/Data/Revenue.php index 9b36765b..55f70ba9 100644 --- a/src/SmartLinks/SmartLinkListSpendersResponse/Data/Revenue.php +++ b/src/SmartLinks/SmartLinkListSpendersResponse/Data/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/SmartLinks/SmartLinkListSpendersResponse/_Meta.php b/src/SmartLinks/SmartLinkListSpendersResponse/_Meta.php index 18441a35..35561709 100644 --- a/src/SmartLinks/SmartLinkListSpendersResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkListSpendersResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Cache.php index d812a073..097c3914 100644 --- a/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Credits.php index 857cc20b..f0122a45 100644 --- a/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkListSpendersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkNewResponse.php b/src/SmartLinks/SmartLinkNewResponse.php index da3d3227..29d28a01 100644 --- a/src/SmartLinks/SmartLinkNewResponse.php +++ b/src/SmartLinks/SmartLinkNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data * * @phpstan-type SmartLinkNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/SmartLinks/SmartLinkNewResponse/Data.php b/src/SmartLinks/SmartLinkNewResponse/Data.php index 799690da..bba85519 100644 --- a/src/SmartLinks/SmartLinkNewResponse/Data.php +++ b/src/SmartLinks/SmartLinkNewResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkNewResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data\Account; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data\Cost; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data\Account; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data\Cost; /** - * @phpstan-import-type AccountShape from \Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data\Account - * @phpstan-import-type CostShape from \Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data\Cost + * @phpstan-import-type AccountShape from \OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data\Account + * @phpstan-import-type CostShape from \OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data\Cost * * @phpstan-type DataShape = array{ * id?: string|null, @@ -62,7 +62,7 @@ final class Data implements BaseModel #[Optional] public ?string $name; - #[Optional(nullable: true)] + #[Optional] public ?string $revenue; #[Optional('subscribers_count')] @@ -199,7 +199,7 @@ public function withName(string $name): self return $self; } - public function withRevenue(?string $revenue): self + public function withRevenue(string $revenue): self { $self = clone $this; $self['revenue'] = $revenue; diff --git a/src/SmartLinks/SmartLinkNewResponse/Data/Account.php b/src/SmartLinks/SmartLinkNewResponse/Data/Account.php index 55a5ddac..1df39d3b 100644 --- a/src/SmartLinks/SmartLinkNewResponse/Data/Account.php +++ b/src/SmartLinks/SmartLinkNewResponse/Data/Account.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AccountShape = array{ diff --git a/src/SmartLinks/SmartLinkNewResponse/Data/Cost.php b/src/SmartLinks/SmartLinkNewResponse/Data/Cost.php index 756283e5..8744adda 100644 --- a/src/SmartLinks/SmartLinkNewResponse/Data/Cost.php +++ b/src/SmartLinks/SmartLinkNewResponse/Data/Cost.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkNewResponse\Data; +namespace OnlyFansAPI\SmartLinks\SmartLinkNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CostShape = array{ diff --git a/src/SmartLinks/SmartLinkNewResponse/_Meta.php b/src/SmartLinks/SmartLinkNewResponse/_Meta.php index 9c49fd6d..f017d192 100644 --- a/src/SmartLinks/SmartLinkNewResponse/_Meta.php +++ b/src/SmartLinks/SmartLinkNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkNewResponse; +namespace OnlyFansAPI\SmartLinks\SmartLinkNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta\_Cache; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta\_Credits; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta\_Cache; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta\_Credits; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/SmartLinks/SmartLinkNewResponse/_Meta/_Cache.php b/src/SmartLinks/SmartLinkNewResponse/_Meta/_Cache.php index fea7b093..2e6e8225 100644 --- a/src/SmartLinks/SmartLinkNewResponse/_Meta/_Cache.php +++ b/src/SmartLinks/SmartLinkNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/SmartLinks/SmartLinkNewResponse/_Meta/_Credits.php b/src/SmartLinks/SmartLinkNewResponse/_Meta/_Credits.php index ca0bb5c0..3cca76e3 100644 --- a/src/SmartLinks/SmartLinkNewResponse/_Meta/_Credits.php +++ b/src/SmartLinks/SmartLinkNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/SmartLinks/SmartLinkNewResponse/_Meta/_RateLimits.php b/src/SmartLinks/SmartLinkNewResponse/_Meta/_RateLimits.php index 7be57942..13b40775 100644 --- a/src/SmartLinks/SmartLinkNewResponse/_Meta/_RateLimits.php +++ b/src/SmartLinks/SmartLinkNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkNewResponse\_Meta; +namespace OnlyFansAPI\SmartLinks\SmartLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/SmartLinks/SmartLinkRetrieveCohortArpsParams.php b/src/SmartLinks/SmartLinkRetrieveCohortArpsParams.php index 01f950fd..803496f0 100644 --- a/src/SmartLinks/SmartLinkRetrieveCohortArpsParams.php +++ b/src/SmartLinks/SmartLinkRetrieveCohortArpsParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\SmartLinks\SmartLinkRetrieveCohortArpsParams\RevenueBasis; /** * Get per-link time-to-profit cohort ARPS windows for a specific Smart Link. * - * @see Onlyfansapi\Services\SmartLinksService::retrieveCohortArps() + * @see OnlyFansAPI\Services\SmartLinksService::retrieveCohortArps() * * @phpstan-type SmartLinkRetrieveCohortArpsParamsShape = array{ * acquisitionEnd?: string|null, diff --git a/src/SmartLinks/SmartLinkRetrieveCohortArpsParams/RevenueBasis.php b/src/SmartLinks/SmartLinkRetrieveCohortArpsParams/RevenueBasis.php index 1542f893..9e15dd6e 100644 --- a/src/SmartLinks/SmartLinkRetrieveCohortArpsParams/RevenueBasis.php +++ b/src/SmartLinks/SmartLinkRetrieveCohortArpsParams/RevenueBasis.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks\SmartLinkRetrieveCohortArpsParams; +namespace OnlyFansAPI\SmartLinks\SmartLinkRetrieveCohortArpsParams; /** * Revenue basis. Defaults to `net`. diff --git a/src/SmartLinks/SmartLinkRetrieveStatsParams.php b/src/SmartLinks/SmartLinkRetrieveStatsParams.php index 9ddf61da..755a35bb 100644 --- a/src/SmartLinks/SmartLinkRetrieveStatsParams.php +++ b/src/SmartLinks/SmartLinkRetrieveStatsParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\SmartLinks; +namespace OnlyFansAPI\SmartLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get dashboard-style summary plus daily and monthly metrics for a specific Smart Link on the current team. * - * @see Onlyfansapi\Services\SmartLinksService::retrieveStats() + * @see OnlyFansAPI\Services\SmartLinksService::retrieveStats() * * @phpstan-type SmartLinkRetrieveStatsParamsShape = array{ * dateEnd?: string|null, dateStart?: string|null diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsParams.php b/src/Statistics/Reach/ReachGetProfileVisitorsParams.php index 0646b9a7..96212819 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsParams.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach; +namespace OnlyFansAPI\Statistics\Reach; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Filter; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams\Type; /** * Get the number of profile visitors for a given period. * - * @see Onlyfansapi\Services\Statistics\ReachService::getProfileVisitors() + * @see OnlyFansAPI\Services\Statistics\ReachService::getProfileVisitors() * * @phpstan-type ReachGetProfileVisitorsParamsShape = array{ * endDate: string, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsParams/Filter.php b/src/Statistics/Reach/ReachGetProfileVisitorsParams/Filter.php index f345a2dc..d7aaf0f0 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsParams/Filter.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsParams/Filter.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams; /** * Optionally, filter the results by `chart` or `topCountries`. See example responses. diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsParams/Type.php b/src/Statistics/Reach/ReachGetProfileVisitorsParams/Type.php index edaa169a..6045b11c 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsParams/Type.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsParams; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsParams; /** * Filter all / users / guests. diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse.php index b2337770..1c9b327d 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach; +namespace OnlyFansAPI\Statistics\Reach; -use Onlyfansapi\Core\Concerns\SdkUnion; -use Onlyfansapi\Core\Conversion\Contracts\Converter; -use Onlyfansapi\Core\Conversion\Contracts\ConverterSource; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; +use OnlyFansAPI\Core\Concerns\SdkUnion; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; /** * No filter. * - * @phpstan-import-type UnionMember0Shape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0 - * @phpstan-import-type UnionMember1Shape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1 - * @phpstan-import-type UnionMember2Shape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2 + * @phpstan-import-type UnionMember0Shape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0 + * @phpstan-import-type UnionMember1Shape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1 + * @phpstan-import-type UnionMember2Shape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2 * * @phpstan-type ReachGetProfileVisitorsResponseVariants = UnionMember0|UnionMember1|UnionMember2 * @phpstan-type ReachGetProfileVisitorsResponseShape = ReachGetProfileVisitorsResponseVariants|UnionMember0Shape|UnionMember1Shape|UnionMember2Shape diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0.php index d20d1550..3c2a1425 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; /** * No filter. * - * @phpstan-import-type _MetaShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data * * @phpstan-type UnionMember0Shape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data.php index cdbb8f2f..ce8c8ffd 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Total; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Total; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart - * @phpstan-import-type TopCountriesShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries - * @phpstan-import-type TopDurationUsersShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers - * @phpstan-import-type TotalShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Total + * @phpstan-import-type ChartShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart + * @phpstan-import-type TopCountriesShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries + * @phpstan-import-type TopDurationUsersShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers + * @phpstan-import-type TotalShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Total * * @phpstan-type DataShape = array{ * chart?: null|Chart|ChartShape, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart.php index c1e92f87..19c79b39 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Duration; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Visitor; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Duration; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Visitor; /** - * @phpstan-import-type DurationShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Duration - * @phpstan-import-type VisitorShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Visitor + * @phpstan-import-type DurationShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Duration + * @phpstan-import-type VisitorShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart\Visitor * * @phpstan-type ChartShape = array{ * duration?: list|null, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Duration.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Duration.php index 48496e44..86425713 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Duration.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Duration.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DurationShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Visitor.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Visitor.php index 3a2b5672..34bca5ea 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Visitor.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Chart/Visitor.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\Chart; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VisitorShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries.php index 2cbad165..8c0d64bc 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Totals; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Totals; /** - * @phpstan-import-type RowShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row - * @phpstan-import-type TotalsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Totals + * @phpstan-import-type RowShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row + * @phpstan-import-type TotalsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Totals * * @phpstan-type TopCountriesShape = array{ * hasMore?: bool|null, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row.php index 87034f9c..902f6ca8 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row\ViewsCount; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row\ViewsCount; /** - * @phpstan-import-type ViewsCountShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row\ViewsCount + * @phpstan-import-type ViewsCountShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row\ViewsCount * * @phpstan-type RowShape = array{ * countryCode?: string|null, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row/ViewsCount.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row/ViewsCount.php index f23e1671..43ff2f09 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row/ViewsCount.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Row/ViewsCount.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries\Row; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ViewsCountShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Totals.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Totals.php index c0e59538..e444f3c0 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Totals.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopCountries/Totals.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopCountries; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TotalsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers.php index 8c0c76ac..8ae4b75a 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers\Totals; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers\Totals; /** - * @phpstan-import-type TotalsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers\Totals + * @phpstan-import-type TotalsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers\Totals * * @phpstan-type TopDurationUsersShape = array{totals?: null|Totals|TotalsShape} */ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers/Totals.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers/Totals.php index 24d658f7..3acab680 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers/Totals.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/TopDurationUsers/Totals.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data\TopDurationUsers; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TotalsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Total.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Total.php index 328e2d8c..6dc3fe16 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Total.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/Data/Total.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TotalShape = array{current?: string|null, delta?: float|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta.php index 9098bf86..f762fc15 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Cache; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Credits; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Cache; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Credits; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Cache.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Cache.php index 03dbfea2..02feb8fd 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Cache.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Credits.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Credits.php index bbf01a38..346302eb 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Credits.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_RateLimits.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_RateLimits.php index 3a5b8ca6..8232d135 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_RateLimits.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember0/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1.php index 294328be..5635975d 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data; /** * Chart filter. * - * @phpstan-import-type _MetaShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data * * @phpstan-type UnionMember1Shape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data.php index 55e59fdf..ce270f28 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Total; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Total; /** - * @phpstan-import-type ChartShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart - * @phpstan-import-type TotalShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Total + * @phpstan-import-type ChartShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart + * @phpstan-import-type TotalShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Total * * @phpstan-type DataShape = array{ * chart?: null|Chart|ChartShape, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart.php index 4b124058..50da30ad 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Duration; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Visitor; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Duration; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Visitor; /** - * @phpstan-import-type DurationShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Duration - * @phpstan-import-type VisitorShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Visitor + * @phpstan-import-type DurationShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Duration + * @phpstan-import-type VisitorShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart\Visitor * * @phpstan-type ChartShape = array{ * duration?: list|null, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Duration.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Duration.php index 61b1fba8..1f5c97da 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Duration.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Duration.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DurationShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Visitor.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Visitor.php index cf0ec008..f6a58e55 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Visitor.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Chart/Visitor.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data\Chart; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VisitorShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Total.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Total.php index 9b8d48f5..f976160f 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Total.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/Data/Total.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TotalShape = array{current?: string|null, delta?: float|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta.php index 93761498..99be83cd 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Cache; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Credits; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Cache; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Credits; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Cache.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Cache.php index 77e57253..122fe7bf 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Cache.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Credits.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Credits.php index e85895a4..f9104b28 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Credits.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_RateLimits.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_RateLimits.php index bc5e54c2..053a49be 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_RateLimits.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember1/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2.php index e81fad32..a862c96b 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data; /** * Top countries filter. * - * @phpstan-import-type _MetaShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data * * @phpstan-type UnionMember2Shape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data.php index 70c8111f..fe892269 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries; /** - * @phpstan-import-type TopCountriesShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries + * @phpstan-import-type TopCountriesShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries * * @phpstan-type DataShape = array{ * hasStats?: bool|null, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries.php index 89ebad19..f58be1ab 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Totals; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Totals; /** - * @phpstan-import-type RowShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row - * @phpstan-import-type TotalsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Totals + * @phpstan-import-type RowShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row + * @phpstan-import-type TotalsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Totals * * @phpstan-type TopCountriesShape = array{ * hasMore?: bool|null, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row.php index 7ce4bea2..a22e5384 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row\ViewsCount; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row\ViewsCount; /** - * @phpstan-import-type ViewsCountShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row\ViewsCount + * @phpstan-import-type ViewsCountShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row\ViewsCount * * @phpstan-type RowShape = array{ * countryCode?: string|null, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row/ViewsCount.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row/ViewsCount.php index d373e2b4..26156d1b 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row/ViewsCount.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Row/ViewsCount.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries\Row; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ViewsCountShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Totals.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Totals.php index 72628566..074e364f 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Totals.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/Data/TopCountries/Totals.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\Data\TopCountries; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TotalsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta.php index 1d4e68f6..58889b51 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Cache; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Credits; -use Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Cache; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Credits; +use OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Cache.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Cache.php index 7d9847d4..68d5f3a8 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Cache.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Credits.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Credits.php index f8382833..40557267 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Credits.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_RateLimits.php b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_RateLimits.php index 245e38ad..eef834da 100644 --- a/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_RateLimits.php +++ b/src/Statistics/Reach/ReachGetProfileVisitorsResponse/UnionMember2/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; +namespace OnlyFansAPI\Statistics\Reach\ReachGetProfileVisitorsResponse\UnionMember2\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Statistics/Statements/StatementGetEarningsParams.php b/src/Statistics/Statements/StatementGetEarningsParams.php index c85d1cd1..2c63152c 100644 --- a/src/Statistics/Statements/StatementGetEarningsParams.php +++ b/src/Statistics/Statements/StatementGetEarningsParams.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements; +namespace OnlyFansAPI\Statistics\Statements; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsParams\Type; /** * Get the earnings for a given period. * - * @see Onlyfansapi\Services\Statistics\StatementsService::getEarnings() + * @see OnlyFansAPI\Services\Statistics\StatementsService::getEarnings() * * @phpstan-type StatementGetEarningsParamsShape = array{ - * startDate: string, endDate?: string|null, type?: null|Type|value-of + * endDate: string, startDate: string, type?: null|Type|value-of * } */ final class StatementGetEarningsParams implements BaseModel @@ -27,16 +27,16 @@ final class StatementGetEarningsParams implements BaseModel use SdkParams; /** - * The start date for the period. + * The end date for the period. */ #[Required] - public string $startDate; + public string $endDate; /** - * The end date for the period. + * The start date for the period. */ - #[Optional] - public ?string $endDate; + #[Required] + public string $startDate; /** * Filter by All / Subscriptions / Tips / Posts / Messages / Streams. @@ -51,13 +51,13 @@ final class StatementGetEarningsParams implements BaseModel * * To enforce required parameters use * ``` - * StatementGetEarningsParams::with(startDate: ...) + * StatementGetEarningsParams::with(endDate: ..., startDate: ...) * ``` * * Otherwise ensure the following setters are called * * ``` - * (new StatementGetEarningsParams)->withStartDate(...) + * (new StatementGetEarningsParams)->withEndDate(...)->withStartDate(...) * ``` */ public function __construct() @@ -73,38 +73,38 @@ public function __construct() * @param Type|value-of|null $type */ public static function with( + string $endDate, string $startDate, - ?string $endDate = null, Type|string|null $type = null ): self { $self = new self; + $self['endDate'] = $endDate; $self['startDate'] = $startDate; - null !== $endDate && $self['endDate'] = $endDate; null !== $type && $self['type'] = $type; return $self; } /** - * The start date for the period. + * The end date for the period. */ - public function withStartDate(string $startDate): self + public function withEndDate(string $endDate): self { $self = clone $this; - $self['startDate'] = $startDate; + $self['endDate'] = $endDate; return $self; } /** - * The end date for the period. + * The start date for the period. */ - public function withEndDate(string $endDate): self + public function withStartDate(string $startDate): self { $self = clone $this; - $self['endDate'] = $endDate; + $self['startDate'] = $startDate; return $self; } diff --git a/src/Statistics/Statements/StatementGetEarningsParams/Type.php b/src/Statistics/Statements/StatementGetEarningsParams/Type.php index 5fcdd04b..1f0c6477 100644 --- a/src/Statistics/Statements/StatementGetEarningsParams/Type.php +++ b/src/Statistics/Statements/StatementGetEarningsParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsParams; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsParams; /** * Filter by All / Subscriptions / Tips / Posts / Messages / Streams. diff --git a/src/Statistics/Statements/StatementGetEarningsResponse.php b/src/Statistics/Statements/StatementGetEarningsResponse.php index cd39b27e..3b3df06c 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements; +namespace OnlyFansAPI\Statistics\Statements; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data * * @phpstan-type StatementGetEarningsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/Data.php b/src/Statistics/Statements/StatementGetEarningsResponse/Data.php index 671918bd..800b102f 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/Data.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total; /** - * @phpstan-import-type TotalShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total + * @phpstan-import-type TotalShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total * * @phpstan-type DataShape = array{total?: null|Total|TotalShape} */ diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total.php b/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total.php index 1f5980d8..064821d3 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartAmount; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartCount; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartAmount; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartCount; /** - * @phpstan-import-type ChartAmountShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartAmount - * @phpstan-import-type ChartCountShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartCount + * @phpstan-import-type ChartAmountShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartAmount + * @phpstan-import-type ChartCountShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total\ChartCount * * @phpstan-type TotalShape = array{ * chartAmount?: list|null, diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartAmount.php b/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartAmount.php index e3686311..f722b19f 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartAmount.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartAmount.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartAmountShape = array{count?: float|null, date?: string|null} diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartCount.php b/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartCount.php index 45ba5a81..f76c7ad3 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartCount.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/Data/Total/ChartCount.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\Data\Total; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\Data\Total; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartCountShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta.php b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta.php index 0da0e1a8..e3f6321f 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Cache; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Credits; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Cache; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Credits; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Cache.php b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Cache.php index d378e62c..647d03e6 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Cache.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Credits.php b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Credits.php index 4e956c7b..dd817f6f 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Credits.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_RateLimits.php b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_RateLimits.php index 7b565e2f..7a86e25d 100644 --- a/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_RateLimits.php +++ b/src/Statistics/Statements/StatementGetEarningsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse\_Meta; +namespace OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Statistics/StatisticCalculateTotalTransactionsParams.php b/src/Statistics/StatisticCalculateTotalTransactionsParams.php index 62f49e9f..1faa7083 100644 --- a/src/Statistics/StatisticCalculateTotalTransactionsParams.php +++ b/src/Statistics/StatisticCalculateTotalTransactionsParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics; +namespace OnlyFansAPI\Statistics; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Calculate the total transactions and amounts. * - * @see Onlyfansapi\Services\StatisticsService::calculateTotalTransactions() + * @see OnlyFansAPI\Services\StatisticsService::calculateTotalTransactions() * * @phpstan-type StatisticCalculateTotalTransactionsParamsShape = array{ - * endDate: string, startDate: string + * endDate?: string|null, startDate?: string|null * } */ final class StatisticCalculateTotalTransactionsParams implements BaseModel @@ -27,31 +27,15 @@ final class StatisticCalculateTotalTransactionsParams implements BaseModel /** * The end date for the period. Keep empty to calculate everything. */ - #[Required] - public string $endDate; + #[Optional] + public ?string $endDate; /** * The start date for the period. Keep empty to calculate everything. */ - #[Required] - public string $startDate; + #[Optional] + public ?string $startDate; - /** - * `new StatisticCalculateTotalTransactionsParams()` is missing required properties by the API. - * - * To enforce required parameters use - * ``` - * StatisticCalculateTotalTransactionsParams::with(endDate: ..., startDate: ...) - * ``` - * - * Otherwise ensure the following setters are called - * - * ``` - * (new StatisticCalculateTotalTransactionsParams) - * ->withEndDate(...) - * ->withStartDate(...) - * ``` - */ public function __construct() { $this->initialize(); @@ -62,12 +46,14 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. */ - public static function with(string $endDate, string $startDate): self - { + public static function with( + ?string $endDate = null, + ?string $startDate = null + ): self { $self = new self; - $self['endDate'] = $endDate; - $self['startDate'] = $startDate; + null !== $endDate && $self['endDate'] = $endDate; + null !== $startDate && $self['startDate'] = $startDate; return $self; } diff --git a/src/Statistics/StatisticCalculateTotalTransactionsResponse.php b/src/Statistics/StatisticCalculateTotalTransactionsResponse.php index c53ebba3..643ca553 100644 --- a/src/Statistics/StatisticCalculateTotalTransactionsResponse.php +++ b/src/Statistics/StatisticCalculateTotalTransactionsResponse.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics; +namespace OnlyFansAPI\Statistics; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type StatisticCalculateTotalTransactionsResponseShape = array{ diff --git a/src/Statistics/StatisticGetOverviewParams.php b/src/Statistics/StatisticGetOverviewParams.php index 3ee91fa3..e6194b39 100644 --- a/src/Statistics/StatisticGetOverviewParams.php +++ b/src/Statistics/StatisticGetOverviewParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics; +namespace OnlyFansAPI\Statistics; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewParams\Type; /** * Get an overview of statistics for fans, visitors, posts, or general. * - * @see Onlyfansapi\Services\StatisticsService::getOverview() + * @see OnlyFansAPI\Services\StatisticsService::getOverview() * * @phpstan-type StatisticGetOverviewParamsShape = array{ * endDate?: string|null, diff --git a/src/Statistics/StatisticGetOverviewParams/Type.php b/src/Statistics/StatisticGetOverviewParams/Type.php index e02948e9..81c94fc0 100644 --- a/src/Statistics/StatisticGetOverviewParams/Type.php +++ b/src/Statistics/StatisticGetOverviewParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewParams; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewParams; /** * The type of statistics to retrieve (default = empty). diff --git a/src/Statistics/StatisticGetOverviewResponse.php b/src/Statistics/StatisticGetOverviewResponse.php index 0981d457..066edba1 100644 --- a/src/Statistics/StatisticGetOverviewResponse.php +++ b/src/Statistics/StatisticGetOverviewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics; +namespace OnlyFansAPI\Statistics; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data * * @phpstan-type StatisticGetOverviewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Statistics/StatisticGetOverviewResponse/Data.php b/src/Statistics/StatisticGetOverviewResponse/Data.php index 7dc4fc9a..aa3a429e 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Earning; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Earning; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors; /** - * @phpstan-import-type EarningShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Earning - * @phpstan-import-type MassMessagesShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages - * @phpstan-import-type PostsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts - * @phpstan-import-type StreamsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams - * @phpstan-import-type VisitorsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors + * @phpstan-import-type EarningShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Earning + * @phpstan-import-type MassMessagesShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages + * @phpstan-import-type PostsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts + * @phpstan-import-type StreamsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams + * @phpstan-import-type VisitorsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors * * @phpstan-type DataShape = array{ * earning?: null|Earning|EarningShape, diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Earning.php b/src/Statistics/StatisticGetOverviewResponse/Data/Earning.php index 5bd596e4..92a4276c 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Earning.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Earning.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EarningShape = array{ diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages.php b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages.php index 81347208..a6e6fb71 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\ChartData; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Count; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Earnings; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Views; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\ChartData; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Count; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Earnings; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Views; /** - * @phpstan-import-type ChartDataShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\ChartData - * @phpstan-import-type CountShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Count - * @phpstan-import-type EarningsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Earnings - * @phpstan-import-type ViewsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Views + * @phpstan-import-type ChartDataShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\ChartData + * @phpstan-import-type CountShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Count + * @phpstan-import-type EarningsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Earnings + * @phpstan-import-type ViewsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages\Views * * @phpstan-type MassMessagesShape = array{ * chartData?: list|null, diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/ChartData.php b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/ChartData.php index 44a0c54f..7c914d8a 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/ChartData.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/ChartData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartDataShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Count.php b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Count.php index df3db170..4cfb6444 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Count.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Count.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CountShape = array{delta?: float|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Earnings.php b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Earnings.php index b0cdc4df..ff61ae02 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Earnings.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Earnings.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EarningsShape = array{ diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Views.php b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Views.php index b208b479..94a0c008 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Views.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/MassMessages/Views.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\MassMessages; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\MassMessages; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ViewsShape = array{delta?: int|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Posts.php b/src/Statistics/StatisticGetOverviewResponse/Data/Posts.php index 6ab0d7c3..c1b26628 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Posts.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Posts.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\ChartData; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\Count; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\Earnings; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\Views; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\ChartData; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\Count; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\Earnings; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\Views; /** - * @phpstan-import-type ChartDataShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\ChartData - * @phpstan-import-type CountShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\Count - * @phpstan-import-type EarningsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\Earnings - * @phpstan-import-type ViewsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts\Views + * @phpstan-import-type ChartDataShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\ChartData + * @phpstan-import-type CountShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\Count + * @phpstan-import-type EarningsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\Earnings + * @phpstan-import-type ViewsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts\Views * * @phpstan-type PostsShape = array{ * chartData?: list|null, diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/ChartData.php b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/ChartData.php index 30f48d58..02082ee4 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/ChartData.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/ChartData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartDataShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Count.php b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Count.php index f1602402..04ba6b13 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Count.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Count.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CountShape = array{delta?: int|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Earnings.php b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Earnings.php index f77c4296..47aec4c4 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Earnings.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Earnings.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EarningsShape = array{ diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Views.php b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Views.php index 8af7bd38..6fd9768a 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Views.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Posts/Views.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Posts; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Posts; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ViewsShape = array{delta?: float|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Streams.php b/src/Statistics/StatisticGetOverviewResponse/Data/Streams.php index fac68f9f..94681c41 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Streams.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Streams.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\ChartData; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\Count; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\Earnings; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\Views; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\ChartData; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\Count; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\Earnings; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\Views; /** - * @phpstan-import-type ChartDataShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\ChartData - * @phpstan-import-type CountShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\Count - * @phpstan-import-type EarningsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\Earnings - * @phpstan-import-type ViewsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams\Views + * @phpstan-import-type ChartDataShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\ChartData + * @phpstan-import-type CountShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\Count + * @phpstan-import-type EarningsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\Earnings + * @phpstan-import-type ViewsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams\Views * * @phpstan-type StreamsShape = array{ * chartData?: list|null, diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/ChartData.php b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/ChartData.php index 687532bc..de38d375 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/ChartData.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/ChartData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartDataShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Count.php b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Count.php index 53346ffb..b2feaeb3 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Count.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Count.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CountShape = array{delta?: int|null, total?: string|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Earnings.php b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Earnings.php index 3b8d6a3a..ecda44c0 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Earnings.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Earnings.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EarningsShape = array{ diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Views.php b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Views.php index 913aebcb..1d6e9542 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Views.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Streams/Views.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Streams; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Streams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ViewsShape = array{delta?: int|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors.php b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors.php index 01b9cad0..0f81fcc8 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\ChartData; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Earnings; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\ChartData; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Earnings; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions; /** - * @phpstan-import-type ChartDataShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\ChartData - * @phpstan-import-type EarningsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Earnings - * @phpstan-import-type SubscriptionsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions - * @phpstan-import-type VisitorsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Visitors as VisitorsShape1 + * @phpstan-import-type ChartDataShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\ChartData + * @phpstan-import-type EarningsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Earnings + * @phpstan-import-type SubscriptionsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions + * @phpstan-import-type VisitorsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Visitors as VisitorsShape1 * * @phpstan-type VisitorsShape = array{ * chartData?: list|null, * earnings?: null|Earnings|EarningsShape, * hasStatistic?: bool|null, * subscriptions?: null|Subscriptions|SubscriptionsShape, - * visitors?: null|\Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Visitors|VisitorsShape1, + * visitors?: null|\OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Visitors|VisitorsShape1, * } */ final class Visitors implements BaseModel diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/ChartData.php b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/ChartData.php index 46ec869c..3fa73e15 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/ChartData.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/ChartData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ChartDataShape = array{count?: int|null, date?: string|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Earnings.php b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Earnings.php index fe608981..db9728ca 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Earnings.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Earnings.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EarningsShape = array{ diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions.php b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions.php index c358d722..dfc4f2fb 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\New_; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\Renew; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\New_; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\Renew; /** - * @phpstan-import-type NewShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\New_ - * @phpstan-import-type RenewShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\Renew + * @phpstan-import-type NewShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\New_ + * @phpstan-import-type RenewShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions\Renew * * @phpstan-type SubscriptionsShape = array{ * new?: null|New_|NewShape, renew?: null|Renew|RenewShape diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/New_.php b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/New_.php index 1aef688a..c140a39e 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/New_.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/New_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type NewShape = array{delta?: float|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/Renew.php b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/Renew.php index 15eacef7..56362564 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/Renew.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Subscriptions/Renew.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors\Subscriptions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RenewShape = array{delta?: int|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Visitors.php b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Visitors.php index e4c59934..b6e64876 100644 --- a/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Visitors.php +++ b/src/Statistics/StatisticGetOverviewResponse/Data/Visitors/Visitors.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\Data\Visitors; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\Data\Visitors; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VisitorsShape = array{delta?: int|null, total?: int|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/_Meta.php b/src/Statistics/StatisticGetOverviewResponse/_Meta.php index 9d2dce99..e6677dc8 100644 --- a/src/Statistics/StatisticGetOverviewResponse/_Meta.php +++ b/src/Statistics/StatisticGetOverviewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta\_Cache; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta\_Credits; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta\_Cache; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta\_Credits; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Statistics/StatisticGetOverviewResponse/_Meta/_Cache.php b/src/Statistics/StatisticGetOverviewResponse/_Meta/_Cache.php index 973aaf0c..4a859e37 100644 --- a/src/Statistics/StatisticGetOverviewResponse/_Meta/_Cache.php +++ b/src/Statistics/StatisticGetOverviewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Statistics/StatisticGetOverviewResponse/_Meta/_Credits.php b/src/Statistics/StatisticGetOverviewResponse/_Meta/_Credits.php index edd330d7..91dd3faf 100644 --- a/src/Statistics/StatisticGetOverviewResponse/_Meta/_Credits.php +++ b/src/Statistics/StatisticGetOverviewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Statistics/StatisticGetOverviewResponse/_Meta/_RateLimits.php b/src/Statistics/StatisticGetOverviewResponse/_Meta/_RateLimits.php index 7df7df6d..2d67df28 100644 --- a/src/Statistics/StatisticGetOverviewResponse/_Meta/_RateLimits.php +++ b/src/Statistics/StatisticGetOverviewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics\StatisticGetOverviewResponse\_Meta; +namespace OnlyFansAPI\Statistics\StatisticGetOverviewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Statistics/StatisticGetSubscriberMetricsParams.php b/src/Statistics/StatisticGetSubscriberMetricsParams.php index 91922c1a..cbad0be1 100644 --- a/src/Statistics/StatisticGetSubscriberMetricsParams.php +++ b/src/Statistics/StatisticGetSubscriberMetricsParams.php @@ -2,21 +2,25 @@ declare(strict_types=1); -namespace Onlyfansapi\Statistics; +namespace OnlyFansAPI\Statistics; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsParams\DetailedType; /** * Get subscriber metrics including total, new, renewed, paid, and free subscriptions for a specified timeframe. `unknown_subscriptions` indicates deleted fan accounts. * - * @see Onlyfansapi\Services\StatisticsService::getSubscriberMetrics() + * @see OnlyFansAPI\Services\StatisticsService::getSubscriberMetrics() * * @phpstan-type StatisticGetSubscriberMetricsParamsShape = array{ - * endDate: string, startDate: string, detailed?: bool|null + * endDate: string, + * startDate: string, + * detailed?: bool|null, + * detailedType?: null|DetailedType|value-of, * } */ final class StatisticGetSubscriberMetricsParams implements BaseModel @@ -43,6 +47,14 @@ final class StatisticGetSubscriberMetricsParams implements BaseModel #[Optional(nullable: true)] public ?bool $detailed; + /** + * Use only with `detailed=true` - otherwise, it has no effect. Filter the subscriber statistics (default = total). + * + * @var value-of|null $detailedType + */ + #[Optional(enum: DetailedType::class, nullable: true)] + public ?string $detailedType; + /** * `new StatisticGetSubscriberMetricsParams()` is missing required properties by the API. * @@ -66,11 +78,14 @@ public function __construct() * Construct an instance from the required parameters. * * You must use named parameters to construct any parameters with a default value. + * + * @param DetailedType|value-of|null $detailedType */ public static function with( string $endDate, string $startDate, - ?bool $detailed = null + ?bool $detailed = null, + DetailedType|string|null $detailedType = null, ): self { $self = new self; @@ -78,6 +93,7 @@ public static function with( $self['startDate'] = $startDate; null !== $detailed && $self['detailed'] = $detailed; + null !== $detailedType && $self['detailedType'] = $detailedType; return $self; } @@ -114,4 +130,18 @@ public function withDetailed(?bool $detailed): self return $self; } + + /** + * Use only with `detailed=true` - otherwise, it has no effect. Filter the subscriber statistics (default = total). + * + * @param DetailedType|value-of|null $detailedType + */ + public function withDetailedType( + DetailedType|string|null $detailedType + ): self { + $self = clone $this; + $self['detailedType'] = $detailedType; + + return $self; + } } diff --git a/src/Statistics/StatisticGetSubscriberMetricsParams/DetailedType.php b/src/Statistics/StatisticGetSubscriberMetricsParams/DetailedType.php new file mode 100644 index 00000000..3ade3933 --- /dev/null +++ b/src/Statistics/StatisticGetSubscriberMetricsParams/DetailedType.php @@ -0,0 +1,17 @@ +|null diff --git a/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_.php b/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_.php index 48e87c22..a55d9cc2 100644 --- a/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_.php +++ b/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\Data; +namespace OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\Data\List_\Owner; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\Data\List_\Owner; /** - * @phpstan-import-type OwnerShape from \Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\Data\List_\Owner + * @phpstan-import-type OwnerShape from \OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\Data\List_\Owner * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_/Owner.php b/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_/Owner.php index a0480398..6e481a39 100644 --- a/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_/Owner.php +++ b/src/Stored/StoredListSharedTrackingLinksResponse/Data/List_/Owner.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type OwnerShape = array{ diff --git a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta.php b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta.php index 08f01196..3fa95fcb 100644 --- a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta.php +++ b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse; +namespace OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Cache; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Credits; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Cache; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Credits; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Cache.php b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Cache.php index 3a54d2e4..2a78fe53 100644 --- a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Cache.php +++ b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Credits.php b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Credits.php index 605ba84f..cc441db6 100644 --- a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Credits.php +++ b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_RateLimits.php b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_RateLimits.php index 3bcfb17c..45069c4e 100644 --- a/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_RateLimits.php +++ b/src/Stored/StoredListSharedTrackingLinksResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stored/StoredListSharedTrackingLinksResponse/_Pagination.php b/src/Stored/StoredListSharedTrackingLinksResponse/_Pagination.php index 4266ec13..49bb7ab6 100644 --- a/src/Stored/StoredListSharedTrackingLinksResponse/_Pagination.php +++ b/src/Stored/StoredListSharedTrackingLinksResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse; +namespace OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{ diff --git a/src/Stored/StoredListSharedTrialLinksParams.php b/src/Stored/StoredListSharedTrialLinksParams.php index ed1c7ea3..8436c810 100644 --- a/src/Stored/StoredListSharedTrialLinksParams.php +++ b/src/Stored/StoredListSharedTrialLinksParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored; +namespace OnlyFansAPI\Stored; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter; /** * List all shared Free Trial Links from the OnlyFansAPI Cache. This is a free endpoint that does not call the OnlyFans API. * - * @see Onlyfansapi\Services\StoredService::listSharedTrialLinks() + * @see OnlyFansAPI\Services\StoredService::listSharedTrialLinks() * - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksParams\Filter * * @phpstan-type StoredListSharedTrialLinksParamsShape = array{ * filter?: null|Filter|FilterShape, limit?: int|null, offset?: int|null diff --git a/src/Stored/StoredListSharedTrialLinksParams/Filter.php b/src/Stored/StoredListSharedTrialLinksParams/Filter.php index f3652049..1e5e0b02 100644 --- a/src/Stored/StoredListSharedTrialLinksParams/Filter.php +++ b/src/Stored/StoredListSharedTrialLinksParams/Filter.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksParams; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FilterShape = array{ diff --git a/src/Stored/StoredListSharedTrialLinksResponse.php b/src/Stored/StoredListSharedTrialLinksResponse.php index 53b5fe04..ce36e38b 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse.php +++ b/src/Stored/StoredListSharedTrialLinksResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored; +namespace OnlyFansAPI\Stored; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Pagination; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Pagination; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data * * @phpstan-type StoredListSharedTrialLinksResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Stored/StoredListSharedTrialLinksResponse/Data.php b/src/Stored/StoredListSharedTrialLinksResponse/Data.php index 6b31bde7..8f4f7fdd 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/Data.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Stored/StoredListSharedTrialLinksResponse/Data/List_.php b/src/Stored/StoredListSharedTrialLinksResponse/Data/List_.php index fb8ed250..ffdbc427 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/Data/List_.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data\List_\Owner; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data\List_\Owner; /** - * @phpstan-import-type OwnerShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data\List_\Owner + * @phpstan-import-type OwnerShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data\List_\Owner * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Stored/StoredListSharedTrialLinksResponse/Data/List_/Owner.php b/src/Stored/StoredListSharedTrialLinksResponse/Data/List_/Owner.php index c0281d1d..23acb1c5 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/Data/List_/Owner.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/Data/List_/Owner.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type OwnerShape = array{ diff --git a/src/Stored/StoredListSharedTrialLinksResponse/_Meta.php b/src/Stored/StoredListSharedTrialLinksResponse/_Meta.php index d9a6295f..6ff592d2 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/_Meta.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta\_Cache; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta\_Credits; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta\_Cache; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta\_Credits; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Cache.php b/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Cache.php index 1d5ab6d1..51cc7aa2 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Cache.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Credits.php b/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Credits.php index 0dec150d..0483c07a 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Credits.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_RateLimits.php b/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_RateLimits.php index b5b03048..c4aea34d 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_RateLimits.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stored/StoredListSharedTrialLinksResponse/_Pagination.php b/src/Stored/StoredListSharedTrialLinksResponse/_Pagination.php index fdfade83..a28f0662 100644 --- a/src/Stored/StoredListSharedTrialLinksResponse/_Pagination.php +++ b/src/Stored/StoredListSharedTrialLinksResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; +namespace OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{ diff --git a/src/Stored/StoredListTrackingLinksParams.php b/src/Stored/StoredListTrackingLinksParams.php index aeb04811..fbca10ad 100644 --- a/src/Stored/StoredListTrackingLinksParams.php +++ b/src/Stored/StoredListTrackingLinksParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored; +namespace OnlyFansAPI\Stored; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter; /** * List all stored tracking links from the OnlyFansAPI Cache. This is a free endpoint that does not call the OnlyFans API. * - * @see Onlyfansapi\Services\StoredService::listTrackingLinks() + * @see OnlyFansAPI\Services\StoredService::listTrackingLinks() * - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrackingLinksParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrackingLinksParams\Filter * * @phpstan-type StoredListTrackingLinksParamsShape = array{ * filter?: null|Filter|FilterShape, limit?: int|null, offset?: int|null diff --git a/src/Stored/StoredListTrackingLinksParams/Filter.php b/src/Stored/StoredListTrackingLinksParams/Filter.php index 3cad0815..801743f8 100644 --- a/src/Stored/StoredListTrackingLinksParams/Filter.php +++ b/src/Stored/StoredListTrackingLinksParams/Filter.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksParams; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FilterShape = array{ diff --git a/src/Stored/StoredListTrackingLinksResponse.php b/src/Stored/StoredListTrackingLinksResponse.php index 2d61b55d..23e39c78 100644 --- a/src/Stored/StoredListTrackingLinksResponse.php +++ b/src/Stored/StoredListTrackingLinksResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored; +namespace OnlyFansAPI\Stored; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Pagination; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Pagination; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data * * @phpstan-type StoredListTrackingLinksResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Stored/StoredListTrackingLinksResponse/Data.php b/src/Stored/StoredListTrackingLinksResponse/Data.php index e6305537..6bb2f6ff 100644 --- a/src/Stored/StoredListTrackingLinksResponse/Data.php +++ b/src/Stored/StoredListTrackingLinksResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Stored/StoredListTrackingLinksResponse/Data/List_.php b/src/Stored/StoredListTrackingLinksResponse/Data/List_.php index b7351d40..ca04e4d9 100644 --- a/src/Stored/StoredListTrackingLinksResponse/Data/List_.php +++ b/src/Stored/StoredListTrackingLinksResponse/Data/List_.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Cost; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Links; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Cost; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Links; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Revenue; /** - * @phpstan-import-type CostShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Cost - * @phpstan-import-type LinksShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Links - * @phpstan-import-type RevenueShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Revenue + * @phpstan-import-type CostShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Cost + * @phpstan-import-type LinksShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Links + * @phpstan-import-type RevenueShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Revenue * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Cost.php b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Cost.php index ec2c582c..02968784 100644 --- a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Cost.php +++ b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Cost.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CostShape = array{ diff --git a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links.php b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links.php index 9790f768..4bd4d36e 100644 --- a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links.php +++ b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Links\Related; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Links\Related; /** - * @phpstan-import-type RelatedShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Links\Related + * @phpstan-import-type RelatedShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Links\Related * * @phpstan-type LinksShape = array{related?: null|Related|RelatedShape} */ diff --git a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links/Related.php b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links/Related.php index 99810021..0011ca11 100644 --- a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links/Related.php +++ b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Links/Related.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_\Links; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_\Links; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RelatedShape = array{ diff --git a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Revenue.php b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Revenue.php index bfcaae64..f456e8fb 100644 --- a/src/Stored/StoredListTrackingLinksResponse/Data/List_/Revenue.php +++ b/src/Stored/StoredListTrackingLinksResponse/Data/List_/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/Stored/StoredListTrackingLinksResponse/_Meta.php b/src/Stored/StoredListTrackingLinksResponse/_Meta.php index 5c403908..a176961f 100644 --- a/src/Stored/StoredListTrackingLinksResponse/_Meta.php +++ b/src/Stored/StoredListTrackingLinksResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta\_Cache; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta\_Credits; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta\_Cache; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta\_Credits; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stored/StoredListTrackingLinksResponse/_Meta/_Cache.php b/src/Stored/StoredListTrackingLinksResponse/_Meta/_Cache.php index b65cc7d1..e85aef26 100644 --- a/src/Stored/StoredListTrackingLinksResponse/_Meta/_Cache.php +++ b/src/Stored/StoredListTrackingLinksResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stored/StoredListTrackingLinksResponse/_Meta/_Credits.php b/src/Stored/StoredListTrackingLinksResponse/_Meta/_Credits.php index 4992bcf1..7e4be218 100644 --- a/src/Stored/StoredListTrackingLinksResponse/_Meta/_Credits.php +++ b/src/Stored/StoredListTrackingLinksResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stored/StoredListTrackingLinksResponse/_Meta/_RateLimits.php b/src/Stored/StoredListTrackingLinksResponse/_Meta/_RateLimits.php index b0405816..ea727f5f 100644 --- a/src/Stored/StoredListTrackingLinksResponse/_Meta/_RateLimits.php +++ b/src/Stored/StoredListTrackingLinksResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stored/StoredListTrackingLinksResponse/_Pagination.php b/src/Stored/StoredListTrackingLinksResponse/_Pagination.php index 115d0c92..c9ac3579 100644 --- a/src/Stored/StoredListTrackingLinksResponse/_Pagination.php +++ b/src/Stored/StoredListTrackingLinksResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrackingLinksResponse; +namespace OnlyFansAPI\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Stored/StoredListTrialLinksParams.php b/src/Stored/StoredListTrialLinksParams.php index 2ff3cc8c..bd7bd9c4 100644 --- a/src/Stored/StoredListTrialLinksParams.php +++ b/src/Stored/StoredListTrialLinksParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored; +namespace OnlyFansAPI\Stored; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrialLinksParams\Filter; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter; /** * List all stored free trial links from the OnlyFansAPI Cache. This is a free endpoint that does not call the OnlyFans API. * - * @see Onlyfansapi\Services\StoredService::listTrialLinks() + * @see OnlyFansAPI\Services\StoredService::listTrialLinks() * - * @phpstan-import-type FilterShape from \Onlyfansapi\Stored\StoredListTrialLinksParams\Filter + * @phpstan-import-type FilterShape from \OnlyFansAPI\Stored\StoredListTrialLinksParams\Filter * * @phpstan-type StoredListTrialLinksParamsShape = array{ * filter?: null|Filter|FilterShape, limit?: int|null, offset?: int|null diff --git a/src/Stored/StoredListTrialLinksParams/Filter.php b/src/Stored/StoredListTrialLinksParams/Filter.php index 964536c4..123a609a 100644 --- a/src/Stored/StoredListTrialLinksParams/Filter.php +++ b/src/Stored/StoredListTrialLinksParams/Filter.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksParams; +namespace OnlyFansAPI\Stored\StoredListTrialLinksParams; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FilterShape = array{ diff --git a/src/Stored/StoredListTrialLinksResponse.php b/src/Stored/StoredListTrialLinksResponse.php index a628ca42..74db5237 100644 --- a/src/Stored/StoredListTrialLinksResponse.php +++ b/src/Stored/StoredListTrialLinksResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored; +namespace OnlyFansAPI\Stored; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\_Pagination; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Pagination; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data * * @phpstan-type StoredListTrialLinksResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Stored/StoredListTrialLinksResponse/Data.php b/src/Stored/StoredListTrialLinksResponse/Data.php index d0f4b858..14a90a41 100644 --- a/src/Stored/StoredListTrialLinksResponse/Data.php +++ b/src/Stored/StoredListTrialLinksResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Stored/StoredListTrialLinksResponse/Data/List_.php b/src/Stored/StoredListTrialLinksResponse/Data/List_.php index 5c395194..e4adb713 100644 --- a/src/Stored/StoredListTrialLinksResponse/Data/List_.php +++ b/src/Stored/StoredListTrialLinksResponse/Data/List_.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\Data; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Cost; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Links; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Cost; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Links; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Revenue; /** - * @phpstan-import-type CostShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Cost - * @phpstan-import-type LinksShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Links - * @phpstan-import-type RevenueShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Revenue + * @phpstan-import-type CostShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Cost + * @phpstan-import-type LinksShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Links + * @phpstan-import-type RevenueShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Revenue * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Stored/StoredListTrialLinksResponse/Data/List_/Cost.php b/src/Stored/StoredListTrialLinksResponse/Data/List_/Cost.php index 75d77580..393e15ea 100644 --- a/src/Stored/StoredListTrialLinksResponse/Data/List_/Cost.php +++ b/src/Stored/StoredListTrialLinksResponse/Data/List_/Cost.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CostShape = array{ diff --git a/src/Stored/StoredListTrialLinksResponse/Data/List_/Links.php b/src/Stored/StoredListTrialLinksResponse/Data/List_/Links.php index 0191c278..c1c52055 100644 --- a/src/Stored/StoredListTrialLinksResponse/Data/List_/Links.php +++ b/src/Stored/StoredListTrialLinksResponse/Data/List_/Links.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Links\Related; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Links\Related; /** - * @phpstan-import-type RelatedShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Links\Related + * @phpstan-import-type RelatedShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Links\Related * * @phpstan-type LinksShape = array{related?: null|Related|RelatedShape} */ diff --git a/src/Stored/StoredListTrialLinksResponse/Data/List_/Links/Related.php b/src/Stored/StoredListTrialLinksResponse/Data/List_/Links/Related.php index 3ea98ce3..960e20c7 100644 --- a/src/Stored/StoredListTrialLinksResponse/Data/List_/Links/Related.php +++ b/src/Stored/StoredListTrialLinksResponse/Data/List_/Links/Related.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_\Links; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_\Links; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RelatedShape = array{ diff --git a/src/Stored/StoredListTrialLinksResponse/Data/List_/Revenue.php b/src/Stored/StoredListTrialLinksResponse/Data/List_/Revenue.php index e5f40d4c..3cfce92d 100644 --- a/src/Stored/StoredListTrialLinksResponse/Data/List_/Revenue.php +++ b/src/Stored/StoredListTrialLinksResponse/Data/List_/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\Data\List_; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/Stored/StoredListTrialLinksResponse/_Meta.php b/src/Stored/StoredListTrialLinksResponse/_Meta.php index d597b61c..6805f9f8 100644 --- a/src/Stored/StoredListTrialLinksResponse/_Meta.php +++ b/src/Stored/StoredListTrialLinksResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta\_Cache; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta\_Credits; -use Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta\_Cache; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta\_Credits; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stored/StoredListTrialLinksResponse/_Meta/_Cache.php b/src/Stored/StoredListTrialLinksResponse/_Meta/_Cache.php index 172d35e7..8bfd22c3 100644 --- a/src/Stored/StoredListTrialLinksResponse/_Meta/_Cache.php +++ b/src/Stored/StoredListTrialLinksResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stored/StoredListTrialLinksResponse/_Meta/_Credits.php b/src/Stored/StoredListTrialLinksResponse/_Meta/_Credits.php index d31dc349..bfafbef9 100644 --- a/src/Stored/StoredListTrialLinksResponse/_Meta/_Credits.php +++ b/src/Stored/StoredListTrialLinksResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stored/StoredListTrialLinksResponse/_Meta/_RateLimits.php b/src/Stored/StoredListTrialLinksResponse/_Meta/_RateLimits.php index bd875cd8..0cc757ac 100644 --- a/src/Stored/StoredListTrialLinksResponse/_Meta/_RateLimits.php +++ b/src/Stored/StoredListTrialLinksResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse\_Meta; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stored/StoredListTrialLinksResponse/_Pagination.php b/src/Stored/StoredListTrialLinksResponse/_Pagination.php index e87c19e8..1f594c04 100644 --- a/src/Stored/StoredListTrialLinksResponse/_Pagination.php +++ b/src/Stored/StoredListTrialLinksResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stored\StoredListTrialLinksResponse; +namespace OnlyFansAPI\Stored\StoredListTrialLinksResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/Stories/Highlights/HighlightAddStoryParams.php b/src/Stories/Highlights/HighlightAddStoryParams.php index 07ddbad6..6fef29f7 100644 --- a/src/Stories/Highlights/HighlightAddStoryParams.php +++ b/src/Stories/Highlights/HighlightAddStoryParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Add a specific story to a story highlight. * - * @see Onlyfansapi\Services\Stories\HighlightsService::addStory() + * @see OnlyFansAPI\Services\Stories\HighlightsService::addStory() * * @phpstan-type HighlightAddStoryParamsShape = array{ * account: string, highlightID: int, storyID: int diff --git a/src/Stories/Highlights/HighlightAddStoryResponse.php b/src/Stories/Highlights/HighlightAddStoryResponse.php index c70c81d4..b7cdbb72 100644 --- a/src/Stories/Highlights/HighlightAddStoryResponse.php +++ b/src/Stories/Highlights/HighlightAddStoryResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\Data * * @phpstan-type HighlightAddStoryResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/Highlights/HighlightAddStoryResponse/Data.php b/src/Stories/Highlights/HighlightAddStoryResponse/Data.php index 70c048e3..e1ec03fd 100644 --- a/src/Stories/Highlights/HighlightAddStoryResponse/Data.php +++ b/src/Stories/Highlights/HighlightAddStoryResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta.php b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta.php index 178e36ad..3c75f143 100644 --- a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta.php +++ b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Cache; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Credits; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Cache.php b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Cache.php index 2c7da26a..0d386b3b 100644 --- a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Cache.php +++ b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Credits.php b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Credits.php index 6ca052bc..96b7143c 100644 --- a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Credits.php +++ b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_RateLimits.php b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_RateLimits.php index 05e779e1..59372691 100644 --- a/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_RateLimits.php +++ b/src/Stories/Highlights/HighlightAddStoryResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/Highlights/HighlightCreateParams.php b/src/Stories/Highlights/HighlightCreateParams.php index 3204051c..50fcb8e7 100644 --- a/src/Stories/Highlights/HighlightCreateParams.php +++ b/src/Stories/Highlights/HighlightCreateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a new story highlight. * - * @see Onlyfansapi\Services\Stories\HighlightsService::create() + * @see OnlyFansAPI\Services\Stories\HighlightsService::create() * * @phpstan-type HighlightCreateParamsShape = array{ * coverStoryID: int, storyIDs: list, title: string diff --git a/src/Stories/Highlights/HighlightDeleteParams.php b/src/Stories/Highlights/HighlightDeleteParams.php index 4c37783e..284aba83 100644 --- a/src/Stories/Highlights/HighlightDeleteParams.php +++ b/src/Stories/Highlights/HighlightDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a specific story highlight by its ID. * - * @see Onlyfansapi\Services\Stories\HighlightsService::delete() + * @see OnlyFansAPI\Services\Stories\HighlightsService::delete() * * @phpstan-type HighlightDeleteParamsShape = array{account: string} */ diff --git a/src/Stories/Highlights/HighlightDeleteResponse.php b/src/Stories/Highlights/HighlightDeleteResponse.php index cce83f32..003c37b8 100644 --- a/src/Stories/Highlights/HighlightDeleteResponse.php +++ b/src/Stories/Highlights/HighlightDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\Data * * @phpstan-type HighlightDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/Highlights/HighlightDeleteResponse/Data.php b/src/Stories/Highlights/HighlightDeleteResponse/Data.php index 5e7349d1..35de8dc8 100644 --- a/src/Stories/Highlights/HighlightDeleteResponse/Data.php +++ b/src/Stories/Highlights/HighlightDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightDeleteResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Stories/Highlights/HighlightDeleteResponse/_Meta.php b/src/Stories/Highlights/HighlightDeleteResponse/_Meta.php index f070ef0e..90d059f2 100644 --- a/src/Stories/Highlights/HighlightDeleteResponse/_Meta.php +++ b/src/Stories/Highlights/HighlightDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightDeleteResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Cache.php b/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Cache.php index 5b4dae11..fc819c3b 100644 --- a/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Cache.php +++ b/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Credits.php b/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Credits.php index 2c0e446f..cdeed107 100644 --- a/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Credits.php +++ b/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_RateLimits.php b/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_RateLimits.php index 94a1209b..85e17dbf 100644 --- a/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_RateLimits.php +++ b/src/Stories/Highlights/HighlightDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightDeleteResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/Highlights/HighlightGetResponse.php b/src/Stories/Highlights/HighlightGetResponse.php index d0679a92..d20042c7 100644 --- a/src/Stories/Highlights/HighlightGetResponse.php +++ b/src/Stories/Highlights/HighlightGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data * * @phpstan-type HighlightGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/Highlights/HighlightGetResponse/Data.php b/src/Stories/Highlights/HighlightGetResponse/Data.php index a1326bff..302b532f 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story; /** - * @phpstan-import-type StoryShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story + * @phpstan-import-type StoryShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story.php index c93a7dfb..77ca883d 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Text; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Text; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media - * @phpstan-import-type TextShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Text + * @phpstan-import-type MediaShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media + * @phpstan-import-type TextShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Text * * @phpstan-type StoryShape = array{ * id?: int|null, diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media.php index a0f61e3c..85bff49f 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files.php index 60a49e26..24691222 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Full; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Full; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Full.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Full.php index 517a53ac..f9e4c430 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Full.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview.php index b8a21f32..f5cda51f 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview\Sources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview\Sources; /** - * @phpstan-import-type SourcesShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview\Sources + * @phpstan-import-type SourcesShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview\Sources * * @phpstan-type PreviewShape = array{ * height?: int|null, diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview/Sources.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview/Sources.php index aed3c318..59418cfd 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview/Sources.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Preview/Sources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\Preview; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SourcesShape = array{w150?: string|null} diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview.php index 0a4c14d0..e0393c65 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview\Sources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview\Sources; /** - * @phpstan-import-type SourcesShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview\Sources + * @phpstan-import-type SourcesShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview\Sources * * @phpstan-type SquarePreviewShape = array{ * height?: int|null, diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview/Sources.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview/Sources.php index a3558369..edb5697c 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview/Sources.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/SquarePreview/Sources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files\SquarePreview; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SourcesShape = array{w150?: string|null, w480?: string|null} diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Thumb.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Thumb.php index 4c444821..c115509b 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Thumb.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/VideoSources.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/VideoSources.php index 9a545d75..8eecdde7 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/VideoSources.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story\Media; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Text.php b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Text.php index e006eeb7..6100660b 100644 --- a/src/Stories/Highlights/HighlightGetResponse/Data/Story/Text.php +++ b/src/Stories/Highlights/HighlightGetResponse/Data/Story/Text.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\Data\Story; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\Data\Story; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TextShape = array{ diff --git a/src/Stories/Highlights/HighlightGetResponse/_Meta.php b/src/Stories/Highlights/HighlightGetResponse/_Meta.php index ef090c3a..1d32ba81 100644 --- a/src/Stories/Highlights/HighlightGetResponse/_Meta.php +++ b/src/Stories/Highlights/HighlightGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta\_Cache; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta\_Credits; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/Highlights/HighlightGetResponse/_Meta/_Cache.php b/src/Stories/Highlights/HighlightGetResponse/_Meta/_Cache.php index a6505234..c3f17bee 100644 --- a/src/Stories/Highlights/HighlightGetResponse/_Meta/_Cache.php +++ b/src/Stories/Highlights/HighlightGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/Highlights/HighlightGetResponse/_Meta/_Credits.php b/src/Stories/Highlights/HighlightGetResponse/_Meta/_Credits.php index 15783842..84c68c18 100644 --- a/src/Stories/Highlights/HighlightGetResponse/_Meta/_Credits.php +++ b/src/Stories/Highlights/HighlightGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/Highlights/HighlightGetResponse/_Meta/_RateLimits.php b/src/Stories/Highlights/HighlightGetResponse/_Meta/_RateLimits.php index b44cc685..c584126e 100644 --- a/src/Stories/Highlights/HighlightGetResponse/_Meta/_RateLimits.php +++ b/src/Stories/Highlights/HighlightGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightGetResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/Highlights/HighlightListParams.php b/src/Stories/Highlights/HighlightListParams.php index 7f844271..52b2f865 100644 --- a/src/Stories/Highlights/HighlightListParams.php +++ b/src/Stories/Highlights/HighlightListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve a list of your story highlights. * - * @see Onlyfansapi\Services\Stories\HighlightsService::list() + * @see OnlyFansAPI\Services\Stories\HighlightsService::list() * * @phpstan-type HighlightListParamsShape = array{ * limit?: int|null, offset?: int|null diff --git a/src/Stories/Highlights/HighlightListResponse.php b/src/Stories/Highlights/HighlightListResponse.php index f188f0d4..565716b3 100644 --- a/src/Stories/Highlights/HighlightListResponse.php +++ b/src/Stories/Highlights/HighlightListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta; -use Onlyfansapi\Stories\Highlights\HighlightListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\Highlights\HighlightListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\Highlights\HighlightListResponse\Data * * @phpstan-type HighlightListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/Highlights/HighlightListResponse/Data.php b/src/Stories/Highlights/HighlightListResponse/Data.php index 94b496fb..85116462 100644 --- a/src/Stories/Highlights/HighlightListResponse/Data.php +++ b/src/Stories/Highlights/HighlightListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightListResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Stories\Highlights\HighlightListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Stories\Highlights\HighlightListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Stories/Highlights/HighlightListResponse/Data/List_.php b/src/Stories/Highlights/HighlightListResponse/Data/List_.php index ed817e6c..f1ceb922 100644 --- a/src/Stories/Highlights/HighlightListResponse/Data/List_.php +++ b/src/Stories/Highlights/HighlightListResponse/Data/List_.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightListResponse\Data; +namespace OnlyFansAPI\Stories\Highlights\HighlightListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListShape = array{ diff --git a/src/Stories/Highlights/HighlightListResponse/_Meta.php b/src/Stories/Highlights/HighlightListResponse/_Meta.php index f90b39bb..3297c4f6 100644 --- a/src/Stories/Highlights/HighlightListResponse/_Meta.php +++ b/src/Stories/Highlights/HighlightListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightListResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta\_Cache; -use Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta\_Credits; -use Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/Highlights/HighlightListResponse/_Meta/_Cache.php b/src/Stories/Highlights/HighlightListResponse/_Meta/_Cache.php index d501000d..2d6715c7 100644 --- a/src/Stories/Highlights/HighlightListResponse/_Meta/_Cache.php +++ b/src/Stories/Highlights/HighlightListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/Highlights/HighlightListResponse/_Meta/_Credits.php b/src/Stories/Highlights/HighlightListResponse/_Meta/_Credits.php index 983c7baa..6db048b4 100644 --- a/src/Stories/Highlights/HighlightListResponse/_Meta/_Credits.php +++ b/src/Stories/Highlights/HighlightListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/Highlights/HighlightListResponse/_Meta/_RateLimits.php b/src/Stories/Highlights/HighlightListResponse/_Meta/_RateLimits.php index b54dccce..e321ee0e 100644 --- a/src/Stories/Highlights/HighlightListResponse/_Meta/_RateLimits.php +++ b/src/Stories/Highlights/HighlightListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightListResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/Highlights/HighlightNewResponse.php b/src/Stories/Highlights/HighlightNewResponse.php index 43710dce..5af0e44a 100644 --- a/src/Stories/Highlights/HighlightNewResponse.php +++ b/src/Stories/Highlights/HighlightNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\Highlights\HighlightNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\Highlights\HighlightNewResponse\Data * * @phpstan-type HighlightNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/Highlights/HighlightNewResponse/Data.php b/src/Stories/Highlights/HighlightNewResponse/Data.php index 5ce93c53..de4956f3 100644 --- a/src/Stories/Highlights/HighlightNewResponse/Data.php +++ b/src/Stories/Highlights/HighlightNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightNewResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Stories/Highlights/HighlightNewResponse/_Meta.php b/src/Stories/Highlights/HighlightNewResponse/_Meta.php index fa2327bb..f6a352e2 100644 --- a/src/Stories/Highlights/HighlightNewResponse/_Meta.php +++ b/src/Stories/Highlights/HighlightNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightNewResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta\_Cache; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta\_Credits; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/Highlights/HighlightNewResponse/_Meta/_Cache.php b/src/Stories/Highlights/HighlightNewResponse/_Meta/_Cache.php index a2529339..a31bb50f 100644 --- a/src/Stories/Highlights/HighlightNewResponse/_Meta/_Cache.php +++ b/src/Stories/Highlights/HighlightNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/Highlights/HighlightNewResponse/_Meta/_Credits.php b/src/Stories/Highlights/HighlightNewResponse/_Meta/_Credits.php index 90e6cd6a..6ea46544 100644 --- a/src/Stories/Highlights/HighlightNewResponse/_Meta/_Credits.php +++ b/src/Stories/Highlights/HighlightNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/Highlights/HighlightNewResponse/_Meta/_RateLimits.php b/src/Stories/Highlights/HighlightNewResponse/_Meta/_RateLimits.php index b1388695..9745734b 100644 --- a/src/Stories/Highlights/HighlightNewResponse/_Meta/_RateLimits.php +++ b/src/Stories/Highlights/HighlightNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightNewResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/Highlights/HighlightRemoveStoryParams.php b/src/Stories/Highlights/HighlightRemoveStoryParams.php index 8fa742c4..e9173242 100644 --- a/src/Stories/Highlights/HighlightRemoveStoryParams.php +++ b/src/Stories/Highlights/HighlightRemoveStoryParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove a specific story from a story highlight. * - * @see Onlyfansapi\Services\Stories\HighlightsService::removeStory() + * @see OnlyFansAPI\Services\Stories\HighlightsService::removeStory() * * @phpstan-type HighlightRemoveStoryParamsShape = array{ * account: string, highlightID: int diff --git a/src/Stories/Highlights/HighlightRemoveStoryResponse.php b/src/Stories/Highlights/HighlightRemoveStoryResponse.php index 6982d44e..2769850a 100644 --- a/src/Stories/Highlights/HighlightRemoveStoryResponse.php +++ b/src/Stories/Highlights/HighlightRemoveStoryResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\Data * * @phpstan-type HighlightRemoveStoryResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/Highlights/HighlightRemoveStoryResponse/Data.php b/src/Stories/Highlights/HighlightRemoveStoryResponse/Data.php index a057ca67..8040c6d9 100644 --- a/src/Stories/Highlights/HighlightRemoveStoryResponse/Data.php +++ b/src/Stories/Highlights/HighlightRemoveStoryResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta.php b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta.php index 11067e76..ab2ac549 100644 --- a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta.php +++ b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Cache; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Credits; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Cache.php b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Cache.php index a5bcdb6a..2e3abd71 100644 --- a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Cache.php +++ b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Credits.php b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Credits.php index 534bdd6d..865e906b 100644 --- a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Credits.php +++ b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_RateLimits.php b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_RateLimits.php index 476f44f5..508e3c26 100644 --- a/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_RateLimits.php +++ b/src/Stories/Highlights/HighlightRemoveStoryResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/Highlights/HighlightRetrieveParams.php b/src/Stories/Highlights/HighlightRetrieveParams.php index 331b9778..08173b2c 100644 --- a/src/Stories/Highlights/HighlightRetrieveParams.php +++ b/src/Stories/Highlights/HighlightRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve details of a specific story highlight by its ID. * - * @see Onlyfansapi\Services\Stories\HighlightsService::retrieve() + * @see OnlyFansAPI\Services\Stories\HighlightsService::retrieve() * * @phpstan-type HighlightRetrieveParamsShape = array{account: string} */ diff --git a/src/Stories/Highlights/HighlightUpdateParams.php b/src/Stories/Highlights/HighlightUpdateParams.php index 87093a1d..c862b04a 100644 --- a/src/Stories/Highlights/HighlightUpdateParams.php +++ b/src/Stories/Highlights/HighlightUpdateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Update the details of a specific story highlight by its ID. * - * @see Onlyfansapi\Services\Stories\HighlightsService::update() + * @see OnlyFansAPI\Services\Stories\HighlightsService::update() * * @phpstan-type HighlightUpdateParamsShape = array{ * account: string, coverStoryID: int, storyIDs: list, title: string diff --git a/src/Stories/Highlights/HighlightUpdateResponse.php b/src/Stories/Highlights/HighlightUpdateResponse.php index d528003f..4868ae41 100644 --- a/src/Stories/Highlights/HighlightUpdateResponse.php +++ b/src/Stories/Highlights/HighlightUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights; +namespace OnlyFansAPI\Stories\Highlights; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\Data * * @phpstan-type HighlightUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/Highlights/HighlightUpdateResponse/Data.php b/src/Stories/Highlights/HighlightUpdateResponse/Data.php index 12e7bc2f..7d848321 100644 --- a/src/Stories/Highlights/HighlightUpdateResponse/Data.php +++ b/src/Stories/Highlights/HighlightUpdateResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightUpdateResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Stories/Highlights/HighlightUpdateResponse/_Meta.php b/src/Stories/Highlights/HighlightUpdateResponse/_Meta.php index ea0c7186..0149e624 100644 --- a/src/Stories/Highlights/HighlightUpdateResponse/_Meta.php +++ b/src/Stories/Highlights/HighlightUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightUpdateResponse; +namespace OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta\_Cache; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta\_Credits; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Cache.php b/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Cache.php index ca87d4b1..55e891ff 100644 --- a/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Cache.php +++ b/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Credits.php b/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Credits.php index 028a4abf..a78fab37 100644 --- a/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Credits.php +++ b/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_RateLimits.php b/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_RateLimits.php index 22dcca99..6b76deb8 100644 --- a/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_RateLimits.php +++ b/src/Stories/Highlights/HighlightUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\Highlights\HighlightUpdateResponse\_Meta; +namespace OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/StoryCreateParams.php b/src/Stories/StoryCreateParams.php index 906e38a3..1a33fe41 100644 --- a/src/Stories/StoryCreateParams.php +++ b/src/Stories/StoryCreateParams.php @@ -2,19 +2,31 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryCreateParams\Question; +use OnlyFansAPI\Stories\StoryCreateParams\Text; /** - * Post a new media or vault file to your story. + * Post a new media or vault file to your story, optionally with text overlays, @mentions, and a question sticker. Overlay elements are rendered by OnlyFans on top of your story media at view time. * - * @see Onlyfansapi\Services\StoriesService::create() + * @see OnlyFansAPI\Services\StoriesService::create() * - * @phpstan-type StoryCreateParamsShape = array{mediaFiles: list} + * @phpstan-import-type QuestionShape from \OnlyFansAPI\Stories\StoryCreateParams\Question + * @phpstan-import-type TextShape from \OnlyFansAPI\Stories\StoryCreateParams\Text + * + * @phpstan-type StoryCreateParamsShape = array{ + * mediaFiles: list, + * canvasHeight?: int|null, + * canvasWidth?: int|null, + * question?: null|Question|QuestionShape, + * texts?: list|null, + * } */ final class StoryCreateParams implements BaseModel { @@ -23,13 +35,39 @@ final class StoryCreateParams implements BaseModel use SdkParams; /** - * Array of media file upload prefixed_ids, or OF media IDs (required if price is not 0). + * Array of media file upload prefixed_ids, or OF vault media IDs. * * @var list $mediaFiles */ #[Required(list: 'string')] public array $mediaFiles; + /** + * Canvas height overlay positions are relative to. Default `1920`. + */ + #[Optional] + public ?int $canvasHeight; + + /** + * Canvas width overlay positions are relative to. Default `1080`. + */ + #[Optional] + public ?int $canvasWidth; + + /** + * Interactive question sticker viewers can answer. + */ + #[Optional] + public ?Question $question; + + /** + * Text and @mention overlays. + * + * @var list|null $texts + */ + #[Optional(list: Text::class)] + public ?array $texts; + /** * `new StoryCreateParams()` is missing required properties by the API. * @@ -55,18 +93,30 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param list $mediaFiles + * @param Question|QuestionShape|null $question + * @param list|null $texts */ - public static function with(array $mediaFiles): self - { + public static function with( + array $mediaFiles, + ?int $canvasHeight = null, + ?int $canvasWidth = null, + Question|array|null $question = null, + ?array $texts = null, + ): self { $self = new self; $self['mediaFiles'] = $mediaFiles; + null !== $canvasHeight && $self['canvasHeight'] = $canvasHeight; + null !== $canvasWidth && $self['canvasWidth'] = $canvasWidth; + null !== $question && $self['question'] = $question; + null !== $texts && $self['texts'] = $texts; + return $self; } /** - * Array of media file upload prefixed_ids, or OF media IDs (required if price is not 0). + * Array of media file upload prefixed_ids, or OF vault media IDs. * * @param list $mediaFiles */ @@ -77,4 +127,52 @@ public function withMediaFiles(array $mediaFiles): self return $self; } + + /** + * Canvas height overlay positions are relative to. Default `1920`. + */ + public function withCanvasHeight(int $canvasHeight): self + { + $self = clone $this; + $self['canvasHeight'] = $canvasHeight; + + return $self; + } + + /** + * Canvas width overlay positions are relative to. Default `1080`. + */ + public function withCanvasWidth(int $canvasWidth): self + { + $self = clone $this; + $self['canvasWidth'] = $canvasWidth; + + return $self; + } + + /** + * Interactive question sticker viewers can answer. + * + * @param Question|QuestionShape $question + */ + public function withQuestion(Question|array $question): self + { + $self = clone $this; + $self['question'] = $question; + + return $self; + } + + /** + * Text and @mention overlays. + * + * @param list $texts + */ + public function withTexts(array $texts): self + { + $self = clone $this; + $self['texts'] = $texts; + + return $self; + } } diff --git a/src/Stories/StoryCreateParams/Question.php b/src/Stories/StoryCreateParams/Question.php new file mode 100644 index 00000000..85e19e2b --- /dev/null +++ b/src/Stories/StoryCreateParams/Question.php @@ -0,0 +1,159 @@ + */ + use SdkModel; + + /** + * Sticker accent color (hex). Default `#FF51DC`. + */ + #[Optional] + public ?string $color; + + /** + * Sticker height in canvas px. Default `160`. + */ + #[Optional] + public ?float $height; + + /** + * Horizontal position as a percentage of the canvas width (0-100). Default `25`. + */ + #[Optional] + public ?float $left; + + /** + * The question to ask. + */ + #[Optional] + public ?string $text; + + /** + * Vertical position as a percentage of the canvas height (0-100). Default `30`. + */ + #[Optional] + public ?float $top; + + /** + * Sticker width in canvas px. Default `257`. + */ + #[Optional] + public ?float $width; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?string $color = null, + ?float $height = null, + ?float $left = null, + ?string $text = null, + ?float $top = null, + ?float $width = null, + ): self { + $self = new self; + + null !== $color && $self['color'] = $color; + null !== $height && $self['height'] = $height; + null !== $left && $self['left'] = $left; + null !== $text && $self['text'] = $text; + null !== $top && $self['top'] = $top; + null !== $width && $self['width'] = $width; + + return $self; + } + + /** + * Sticker accent color (hex). Default `#FF51DC`. + */ + public function withColor(string $color): self + { + $self = clone $this; + $self['color'] = $color; + + return $self; + } + + /** + * Sticker height in canvas px. Default `160`. + */ + public function withHeight(float $height): self + { + $self = clone $this; + $self['height'] = $height; + + return $self; + } + + /** + * Horizontal position as a percentage of the canvas width (0-100). Default `25`. + */ + public function withLeft(float $left): self + { + $self = clone $this; + $self['left'] = $left; + + return $self; + } + + /** + * The question to ask. + */ + public function withText(string $text): self + { + $self = clone $this; + $self['text'] = $text; + + return $self; + } + + /** + * Vertical position as a percentage of the canvas height (0-100). Default `30`. + */ + public function withTop(float $top): self + { + $self = clone $this; + $self['top'] = $top; + + return $self; + } + + /** + * Sticker width in canvas px. Default `257`. + */ + public function withWidth(float $width): self + { + $self = clone $this; + $self['width'] = $width; + + return $self; + } +} diff --git a/src/Stories/StoryCreateParams/Text.php b/src/Stories/StoryCreateParams/Text.php new file mode 100644 index 00000000..39b1ab21 --- /dev/null +++ b/src/Stories/StoryCreateParams/Text.php @@ -0,0 +1,378 @@ +, + * fontSize?: float|null, + * fontWeight?: null|FontWeight|value-of, + * left?: float|null, + * scale?: float|null, + * textAlign?: null|TextAlign|value-of, + * textHeight?: float|null, + * textWidth?: float|null, + * top?: float|null, + * type?: null|Type|value-of, + * zIndex?: int|null, + * } + */ +final class Text implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + /** + * The overlay text. For mentions this must be the `@username` to mention (OnlyFans resolves the user and adds them to the story's release forms). + */ + #[Required] + public string $text; + + /** + * Rotation in degrees. Default `0`. + */ + #[Optional] + public ?float $angle; + + /** + * Background color (hex, `#00000000` = transparent). Native editor palette: #FFFFFF #000000 #69818C #FF51DC #FF4081 #FA3240 #FF8040 #FCA800 #70CF27 #00C864 #00B1CC #2196F3 #7953F5 #A832BF. Default: transparent for texts, white for mentions. + */ + #[Optional] + public ?string $bgColor; + + /** + * Text color (hex). Defaults to the native editor behavior: white on a colored background, black on a white background (mentions: OnlyFans blue `#0091EA` on white). + */ + #[Optional] + public ?string $color; + + /** + * Font family. Families support specific weights only: Roboto (400/500/700), PTMono (400), ShantellSans (400), SofiaSans (400, renders uppercase), YanoneKaffeesatz (700), RubikMedium (500), RubikBlack (700). Default `Roboto`. Ignored for mentions (always Roboto 500). + * + * @var value-of|null $fontFamily + */ + #[Optional(enum: FontFamily::class)] + public ?string $fontFamily; + + /** + * Font size in canvas px (8-100). The native editor uses 9-36. Default `20`. + */ + #[Optional] + public ?float $fontSize; + + /** + * Font weight; must match the chosen family (see `fontFamily`). + * + * @var value-of|null $fontWeight + */ + #[Optional(enum: FontWeight::class)] + public ?int $fontWeight; + + /** + * Horizontal position as a percentage of the canvas width (0-100). Default `25`. + */ + #[Optional] + public ?float $left; + + /** + * Scale factor. Default `1`. + */ + #[Optional] + public ?float $scale; + + /** + * Text alignment. Default `left`. + * + * @var value-of|null $textAlign + */ + #[Optional(enum: TextAlign::class)] + public ?string $textAlign; + + /** + * Rendered text box height in canvas px. Estimated automatically when omitted. + */ + #[Optional] + public ?float $textHeight; + + /** + * Rendered text box width in canvas px. Estimated automatically when omitted. + */ + #[Optional] + public ?float $textWidth; + + /** + * Vertical position as a percentage of the canvas height (0-100). Defaults stagger each overlay below the previous one. + */ + #[Optional] + public ?float $top; + + /** + * Overlay type. Default `text`. + * + * @var value-of|null $type + */ + #[Optional(enum: Type::class)] + public ?string $type; + + /** + * Stacking order. Defaults to placement order. + */ + #[Optional] + public ?int $zIndex; + + /** + * `new Text()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * Text::with(text: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new Text)->withText(...) + * ``` + */ + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param FontFamily|value-of|null $fontFamily + * @param FontWeight|value-of|null $fontWeight + * @param TextAlign|value-of|null $textAlign + * @param Type|value-of|null $type + */ + public static function with( + string $text, + ?float $angle = null, + ?string $bgColor = null, + ?string $color = null, + FontFamily|string|null $fontFamily = null, + ?float $fontSize = null, + FontWeight|int|null $fontWeight = null, + ?float $left = null, + ?float $scale = null, + TextAlign|string|null $textAlign = null, + ?float $textHeight = null, + ?float $textWidth = null, + ?float $top = null, + Type|string|null $type = null, + ?int $zIndex = null, + ): self { + $self = new self; + + $self['text'] = $text; + + null !== $angle && $self['angle'] = $angle; + null !== $bgColor && $self['bgColor'] = $bgColor; + null !== $color && $self['color'] = $color; + null !== $fontFamily && $self['fontFamily'] = $fontFamily; + null !== $fontSize && $self['fontSize'] = $fontSize; + null !== $fontWeight && $self['fontWeight'] = $fontWeight; + null !== $left && $self['left'] = $left; + null !== $scale && $self['scale'] = $scale; + null !== $textAlign && $self['textAlign'] = $textAlign; + null !== $textHeight && $self['textHeight'] = $textHeight; + null !== $textWidth && $self['textWidth'] = $textWidth; + null !== $top && $self['top'] = $top; + null !== $type && $self['type'] = $type; + null !== $zIndex && $self['zIndex'] = $zIndex; + + return $self; + } + + /** + * The overlay text. For mentions this must be the `@username` to mention (OnlyFans resolves the user and adds them to the story's release forms). + */ + public function withText(string $text): self + { + $self = clone $this; + $self['text'] = $text; + + return $self; + } + + /** + * Rotation in degrees. Default `0`. + */ + public function withAngle(float $angle): self + { + $self = clone $this; + $self['angle'] = $angle; + + return $self; + } + + /** + * Background color (hex, `#00000000` = transparent). Native editor palette: #FFFFFF #000000 #69818C #FF51DC #FF4081 #FA3240 #FF8040 #FCA800 #70CF27 #00C864 #00B1CC #2196F3 #7953F5 #A832BF. Default: transparent for texts, white for mentions. + */ + public function withBgColor(string $bgColor): self + { + $self = clone $this; + $self['bgColor'] = $bgColor; + + return $self; + } + + /** + * Text color (hex). Defaults to the native editor behavior: white on a colored background, black on a white background (mentions: OnlyFans blue `#0091EA` on white). + */ + public function withColor(string $color): self + { + $self = clone $this; + $self['color'] = $color; + + return $self; + } + + /** + * Font family. Families support specific weights only: Roboto (400/500/700), PTMono (400), ShantellSans (400), SofiaSans (400, renders uppercase), YanoneKaffeesatz (700), RubikMedium (500), RubikBlack (700). Default `Roboto`. Ignored for mentions (always Roboto 500). + * + * @param FontFamily|value-of $fontFamily + */ + public function withFontFamily(FontFamily|string $fontFamily): self + { + $self = clone $this; + $self['fontFamily'] = $fontFamily; + + return $self; + } + + /** + * Font size in canvas px (8-100). The native editor uses 9-36. Default `20`. + */ + public function withFontSize(float $fontSize): self + { + $self = clone $this; + $self['fontSize'] = $fontSize; + + return $self; + } + + /** + * Font weight; must match the chosen family (see `fontFamily`). + * + * @param FontWeight|value-of $fontWeight + */ + public function withFontWeight(FontWeight|int $fontWeight): self + { + $self = clone $this; + $self['fontWeight'] = $fontWeight; + + return $self; + } + + /** + * Horizontal position as a percentage of the canvas width (0-100). Default `25`. + */ + public function withLeft(float $left): self + { + $self = clone $this; + $self['left'] = $left; + + return $self; + } + + /** + * Scale factor. Default `1`. + */ + public function withScale(float $scale): self + { + $self = clone $this; + $self['scale'] = $scale; + + return $self; + } + + /** + * Text alignment. Default `left`. + * + * @param TextAlign|value-of $textAlign + */ + public function withTextAlign(TextAlign|string $textAlign): self + { + $self = clone $this; + $self['textAlign'] = $textAlign; + + return $self; + } + + /** + * Rendered text box height in canvas px. Estimated automatically when omitted. + */ + public function withTextHeight(float $textHeight): self + { + $self = clone $this; + $self['textHeight'] = $textHeight; + + return $self; + } + + /** + * Rendered text box width in canvas px. Estimated automatically when omitted. + */ + public function withTextWidth(float $textWidth): self + { + $self = clone $this; + $self['textWidth'] = $textWidth; + + return $self; + } + + /** + * Vertical position as a percentage of the canvas height (0-100). Defaults stagger each overlay below the previous one. + */ + public function withTop(float $top): self + { + $self = clone $this; + $self['top'] = $top; + + return $self; + } + + /** + * Overlay type. Default `text`. + * + * @param Type|value-of $type + */ + public function withType(Type|string $type): self + { + $self = clone $this; + $self['type'] = $type; + + return $self; + } + + /** + * Stacking order. Defaults to placement order. + */ + public function withZIndex(int $zIndex): self + { + $self = clone $this; + $self['zIndex'] = $zIndex; + + return $self; + } +} diff --git a/src/Stories/StoryCreateParams/Text/FontFamily.php b/src/Stories/StoryCreateParams/Text/FontFamily.php new file mode 100644 index 00000000..780ea1ed --- /dev/null +++ b/src/Stories/StoryCreateParams/Text/FontFamily.php @@ -0,0 +1,25 @@ +|null diff --git a/src/Stories/StoryListActiveResponse/Data.php b/src/Stories/StoryListActiveResponse/Data.php index 85c94bf6..74fded89 100644 --- a/src/Stories/StoryListActiveResponse/Data.php +++ b/src/Stories/StoryListActiveResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse; +namespace OnlyFansAPI\Stories\StoryListActiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Stories/StoryListActiveResponse/Data/Media.php b/src/Stories/StoryListActiveResponse/Data/Media.php index f1d94e3c..c14923a5 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media.php +++ b/src/Stories/StoryListActiveResponse/Data/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Stories/StoryListActiveResponse/Data/Media/Files.php b/src/Stories/StoryListActiveResponse/Data/Media/Files.php index e95a09bb..2d1b80c7 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/Files.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Full; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Preview; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Full; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Preview; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Stories/StoryListActiveResponse/Data/Media/Files/Full.php b/src/Stories/StoryListActiveResponse/Data/Media/Files/Full.php index 1bb3bdcb..55f47ef3 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/Files/Full.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview.php b/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview.php index 41019272..c715b116 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Preview\Sources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Preview\Sources; /** - * @phpstan-import-type SourcesShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Preview\Sources + * @phpstan-import-type SourcesShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Preview\Sources * * @phpstan-type PreviewShape = array{ * height?: int|null, diff --git a/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview/Sources.php b/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview/Sources.php index f9ff0431..0f2f9bb8 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview/Sources.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/Files/Preview/Sources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\Preview; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\Preview; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SourcesShape = array{w150?: string|null} diff --git a/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview.php b/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview.php index ffc1aca3..722564c9 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview\Sources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview\Sources; /** - * @phpstan-import-type SourcesShape from \Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview\Sources + * @phpstan-import-type SourcesShape from \OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview\Sources * * @phpstan-type SquarePreviewShape = array{ * height?: int|null, diff --git a/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview/Sources.php b/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview/Sources.php index 714dab9f..63a8721d 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview/Sources.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/Files/SquarePreview/Sources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files\SquarePreview; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SourcesShape = array{w150?: string|null, w480?: string|null} diff --git a/src/Stories/StoryListActiveResponse/Data/Media/Files/Thumb.php b/src/Stories/StoryListActiveResponse/Data/Media/Files/Thumb.php index cd034948..e85e80e1 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/Files/Thumb.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media\Files; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Stories/StoryListActiveResponse/Data/Media/VideoSources.php b/src/Stories/StoryListActiveResponse/Data/Media/VideoSources.php index f2d372a9..9bc69941 100644 --- a/src/Stories/StoryListActiveResponse/Data/Media/VideoSources.php +++ b/src/Stories/StoryListActiveResponse/Data/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\Data\Media; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\Data\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Stories/StoryListActiveResponse/_Meta.php b/src/Stories/StoryListActiveResponse/_Meta.php index 5eb06ae8..9b60bd07 100644 --- a/src/Stories/StoryListActiveResponse/_Meta.php +++ b/src/Stories/StoryListActiveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse; +namespace OnlyFansAPI\Stories\StoryListActiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListActiveResponse\_Meta\_Cache; -use Onlyfansapi\Stories\StoryListActiveResponse\_Meta\_Credits; -use Onlyfansapi\Stories\StoryListActiveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListActiveResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\StoryListActiveResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\StoryListActiveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\StoryListActiveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\StoryListActiveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\StoryListActiveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\StoryListActiveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\StoryListActiveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\StoryListActiveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/StoryListActiveResponse/_Meta/_Cache.php b/src/Stories/StoryListActiveResponse/_Meta/_Cache.php index 828dd418..20e276e3 100644 --- a/src/Stories/StoryListActiveResponse/_Meta/_Cache.php +++ b/src/Stories/StoryListActiveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/StoryListActiveResponse/_Meta/_Credits.php b/src/Stories/StoryListActiveResponse/_Meta/_Credits.php index 4a228272..ccee0b6b 100644 --- a/src/Stories/StoryListActiveResponse/_Meta/_Credits.php +++ b/src/Stories/StoryListActiveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/StoryListActiveResponse/_Meta/_RateLimits.php b/src/Stories/StoryListActiveResponse/_Meta/_RateLimits.php index b76931a0..d3214b84 100644 --- a/src/Stories/StoryListActiveResponse/_Meta/_RateLimits.php +++ b/src/Stories/StoryListActiveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListActiveResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListActiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/StoryListArchiveParams.php b/src/Stories/StoryListArchiveParams.php index 19f21f95..da9e2c01 100644 --- a/src/Stories/StoryListArchiveParams.php +++ b/src/Stories/StoryListArchiveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve a list of your archived stories. * - * @see Onlyfansapi\Services\StoriesService::listArchive() + * @see OnlyFansAPI\Services\StoriesService::listArchive() * * @phpstan-type StoryListArchiveParamsShape = array{ * limit?: int|null, marker?: string|null diff --git a/src/Stories/StoryListArchiveResponse.php b/src/Stories/StoryListArchiveResponse.php index ef9c6cea..215eb16c 100644 --- a/src/Stories/StoryListArchiveResponse.php +++ b/src/Stories/StoryListArchiveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\_Meta; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\StoryListArchiveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data * * @phpstan-type StoryListArchiveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/StoryListArchiveResponse/Data.php b/src/Stories/StoryListArchiveResponse/Data.php index 88248fec..e0f11fb3 100644 --- a/src/Stories/StoryListArchiveResponse/Data.php +++ b/src/Stories/StoryListArchiveResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null, marker?: int|null diff --git a/src/Stories/StoryListArchiveResponse/Data/List_.php b/src/Stories/StoryListArchiveResponse/Data/List_.php index 3c5e96f1..9fe730ad 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media.php index 3a3c6455..0c749579 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\VideoSources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\VideoSources; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files - * @phpstan-import-type VideoSourcesShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\VideoSources + * @phpstan-import-type FilesShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files + * @phpstan-import-type VideoSourcesShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\VideoSources * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files.php index 5de24161..7a8278e6 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Full; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Thumb; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Full; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Thumb; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Full - * @phpstan-import-type PreviewShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview - * @phpstan-import-type SquarePreviewShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview - * @phpstan-import-type ThumbShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Thumb + * @phpstan-import-type FullShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Full + * @phpstan-import-type PreviewShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview + * @phpstan-import-type SquarePreviewShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview + * @phpstan-import-type ThumbShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Thumb * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Full.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Full.php index 6a8c6387..6259bfc2 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Full.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview.php index 39a805b9..bf3f34ef 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview\Sources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview\Sources; /** - * @phpstan-import-type SourcesShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview\Sources + * @phpstan-import-type SourcesShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview\Sources * * @phpstan-type PreviewShape = array{ * height?: int|null, diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview/Sources.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview/Sources.php index 871260b1..7063b298 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview/Sources.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Preview/Sources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\Preview; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SourcesShape = array{w150?: string|null} diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview.php index 6935334b..7c8e5993 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview\Sources; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview\Sources; /** - * @phpstan-import-type SourcesShape from \Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview\Sources + * @phpstan-import-type SourcesShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview\Sources * * @phpstan-type SquarePreviewShape = array{ * height?: int|null, diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview/Sources.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview/Sources.php index fe12727e..15c767f3 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview/Sources.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/SquarePreview/Sources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files\SquarePreview; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SourcesShape = array{w150?: string|null, w480?: string|null} diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Thumb.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Thumb.php index bac59686..69fdf98a 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Thumb.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/Files/Thumb.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media\Files; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ThumbShape = array{ diff --git a/src/Stories/StoryListArchiveResponse/Data/List_/Media/VideoSources.php b/src/Stories/StoryListArchiveResponse/Data/List_/Media/VideoSources.php index 6ce6fa1e..0a557238 100644 --- a/src/Stories/StoryListArchiveResponse/Data/List_/Media/VideoSources.php +++ b/src/Stories/StoryListArchiveResponse/Data/List_/Media/VideoSources.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\Data\List_\Media; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\Data\List_\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type VideoSourcesShape = array{_240?: string|null, _720?: string|null} diff --git a/src/Stories/StoryListArchiveResponse/_Meta.php b/src/Stories/StoryListArchiveResponse/_Meta.php index b608642d..db4d2e4a 100644 --- a/src/Stories/StoryListArchiveResponse/_Meta.php +++ b/src/Stories/StoryListArchiveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListArchiveResponse\_Meta\_Cache; -use Onlyfansapi\Stories\StoryListArchiveResponse\_Meta\_Credits; -use Onlyfansapi\Stories\StoryListArchiveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\StoryListArchiveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\StoryListArchiveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\StoryListArchiveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/StoryListArchiveResponse/_Meta/_Cache.php b/src/Stories/StoryListArchiveResponse/_Meta/_Cache.php index 55afce6c..faba2430 100644 --- a/src/Stories/StoryListArchiveResponse/_Meta/_Cache.php +++ b/src/Stories/StoryListArchiveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/StoryListArchiveResponse/_Meta/_Credits.php b/src/Stories/StoryListArchiveResponse/_Meta/_Credits.php index a85d0975..7097b0b7 100644 --- a/src/Stories/StoryListArchiveResponse/_Meta/_Credits.php +++ b/src/Stories/StoryListArchiveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/StoryListArchiveResponse/_Meta/_RateLimits.php b/src/Stories/StoryListArchiveResponse/_Meta/_RateLimits.php index 45655d3a..f3d838ad 100644 --- a/src/Stories/StoryListArchiveResponse/_Meta/_RateLimits.php +++ b/src/Stories/StoryListArchiveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListArchiveResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListArchiveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/StoryListViewersParams.php b/src/Stories/StoryListViewersParams.php index 53e70a45..545b48ab 100644 --- a/src/Stories/StoryListViewersParams.php +++ b/src/Stories/StoryListViewersParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve the list of viewers for a specific story by its ID. * - * @see Onlyfansapi\Services\StoriesService::listViewers() + * @see OnlyFansAPI\Services\StoriesService::listViewers() * * @phpstan-type StoryListViewersParamsShape = array{ * account: string, limit?: int|null, offset?: int|null diff --git a/src/Stories/StoryListViewersResponse.php b/src/Stories/StoryListViewersResponse.php index 1b7747b9..b0e4f87d 100644 --- a/src/Stories/StoryListViewersResponse.php +++ b/src/Stories/StoryListViewersResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListViewersResponse\_Meta; -use Onlyfansapi\Stories\StoryListViewersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListViewersResponse\_Meta; +use OnlyFansAPI\Stories\StoryListViewersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\StoryListViewersResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\StoryListViewersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\StoryListViewersResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\StoryListViewersResponse\Data * * @phpstan-type StoryListViewersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/StoryListViewersResponse/Data.php b/src/Stories/StoryListViewersResponse/Data.php index 10e4bb51..402da9f2 100644 --- a/src/Stories/StoryListViewersResponse/Data.php +++ b/src/Stories/StoryListViewersResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListViewersResponse; +namespace OnlyFansAPI\Stories\StoryListViewersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListViewersResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListViewersResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Stories\StoryListViewersResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Stories\StoryListViewersResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/Stories/StoryListViewersResponse/Data/List_.php b/src/Stories/StoryListViewersResponse/Data/List_.php index f79bb71c..b6ff1538 100644 --- a/src/Stories/StoryListViewersResponse/Data/List_.php +++ b/src/Stories/StoryListViewersResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListViewersResponse\Data; +namespace OnlyFansAPI\Stories\StoryListViewersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListViewersResponse\Data\List_\ListsState; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListViewersResponse\Data\List_\ListsState; /** - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Stories\StoryListViewersResponse\Data\List_\ListsState + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Stories\StoryListViewersResponse\Data\List_\ListsState * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/Stories/StoryListViewersResponse/Data/List_/ListsState.php b/src/Stories/StoryListViewersResponse/Data/List_/ListsState.php index 19f90c09..b56121dd 100644 --- a/src/Stories/StoryListViewersResponse/Data/List_/ListsState.php +++ b/src/Stories/StoryListViewersResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListViewersResponse\Data\List_; +namespace OnlyFansAPI\Stories\StoryListViewersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Stories/StoryListViewersResponse/_Meta.php b/src/Stories/StoryListViewersResponse/_Meta.php index 9dcbe8ff..77c18947 100644 --- a/src/Stories/StoryListViewersResponse/_Meta.php +++ b/src/Stories/StoryListViewersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListViewersResponse; +namespace OnlyFansAPI\Stories\StoryListViewersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryListViewersResponse\_Meta\_Cache; -use Onlyfansapi\Stories\StoryListViewersResponse\_Meta\_Credits; -use Onlyfansapi\Stories\StoryListViewersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryListViewersResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\StoryListViewersResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\StoryListViewersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\StoryListViewersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\StoryListViewersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\StoryListViewersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\StoryListViewersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\StoryListViewersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\StoryListViewersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/StoryListViewersResponse/_Meta/_Cache.php b/src/Stories/StoryListViewersResponse/_Meta/_Cache.php index 21234023..19074bf4 100644 --- a/src/Stories/StoryListViewersResponse/_Meta/_Cache.php +++ b/src/Stories/StoryListViewersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListViewersResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListViewersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/StoryListViewersResponse/_Meta/_Credits.php b/src/Stories/StoryListViewersResponse/_Meta/_Credits.php index 12782a17..cd0a8c09 100644 --- a/src/Stories/StoryListViewersResponse/_Meta/_Credits.php +++ b/src/Stories/StoryListViewersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListViewersResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListViewersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/StoryListViewersResponse/_Meta/_RateLimits.php b/src/Stories/StoryListViewersResponse/_Meta/_RateLimits.php index 02693bb9..8d5ad441 100644 --- a/src/Stories/StoryListViewersResponse/_Meta/_RateLimits.php +++ b/src/Stories/StoryListViewersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryListViewersResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryListViewersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/StoryMarkAsWatchedParams.php b/src/Stories/StoryMarkAsWatchedParams.php index 6c5d0819..1b0b324a 100644 --- a/src/Stories/StoryMarkAsWatchedParams.php +++ b/src/Stories/StoryMarkAsWatchedParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Mark a specific story as watched by its ID. * - * @see Onlyfansapi\Services\StoriesService::markAsWatched() + * @see OnlyFansAPI\Services\StoriesService::markAsWatched() * * @phpstan-type StoryMarkAsWatchedParamsShape = array{account: string} */ diff --git a/src/Stories/StoryMarkAsWatchedResponse.php b/src/Stories/StoryMarkAsWatchedResponse.php index fda3b64a..8ee1680e 100644 --- a/src/Stories/StoryMarkAsWatchedResponse.php +++ b/src/Stories/StoryMarkAsWatchedResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\StoryMarkAsWatchedResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\Data * * @phpstan-type StoryMarkAsWatchedResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/StoryMarkAsWatchedResponse/Data.php b/src/Stories/StoryMarkAsWatchedResponse/Data.php index 6e760b33..a346721b 100644 --- a/src/Stories/StoryMarkAsWatchedResponse/Data.php +++ b/src/Stories/StoryMarkAsWatchedResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryMarkAsWatchedResponse; +namespace OnlyFansAPI\Stories\StoryMarkAsWatchedResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/Stories/StoryMarkAsWatchedResponse/_Meta.php b/src/Stories/StoryMarkAsWatchedResponse/_Meta.php index 0a893950..4722123c 100644 --- a/src/Stories/StoryMarkAsWatchedResponse/_Meta.php +++ b/src/Stories/StoryMarkAsWatchedResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryMarkAsWatchedResponse; +namespace OnlyFansAPI\Stories\StoryMarkAsWatchedResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta\_Cache; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta\_Credits; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Cache.php b/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Cache.php index c6aee3a8..06e34b26 100644 --- a/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Cache.php +++ b/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Credits.php b/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Credits.php index b184633a..80436211 100644 --- a/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Credits.php +++ b/src/Stories/StoryMarkAsWatchedResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/StoryMarkAsWatchedResponse/_Meta/_RateLimits.php b/src/Stories/StoryMarkAsWatchedResponse/_Meta/_RateLimits.php index 2f9a6385..19deb27c 100644 --- a/src/Stories/StoryMarkAsWatchedResponse/_Meta/_RateLimits.php +++ b/src/Stories/StoryMarkAsWatchedResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryMarkAsWatchedResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryMarkAsWatchedResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/StoryNewResponse.php b/src/Stories/StoryNewResponse.php index 935501e2..98643188 100644 --- a/src/Stories/StoryNewResponse.php +++ b/src/Stories/StoryNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryNewResponse\_Meta; -use Onlyfansapi\Stories\StoryNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryNewResponse\_Meta; +use OnlyFansAPI\Stories\StoryNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Stories\StoryNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Stories\StoryNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Stories\StoryNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Stories\StoryNewResponse\Data * * @phpstan-type StoryNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Stories/StoryNewResponse/Data.php b/src/Stories/StoryNewResponse/Data.php index 1df372fa..f548fb8c 100644 --- a/src/Stories/StoryNewResponse/Data.php +++ b/src/Stories/StoryNewResponse/Data.php @@ -2,19 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse; +namespace OnlyFansAPI\Stories\StoryNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryNewResponse\Data\Media; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryNewResponse\Data\Media; +use OnlyFansAPI\Stories\StoryNewResponse\Data\Question; +use OnlyFansAPI\Stories\StoryNewResponse\Data\ReleaseForm; +use OnlyFansAPI\Stories\StoryNewResponse\Data\Text; /** - * @phpstan-import-type MediaShape from \Onlyfansapi\Stories\StoryNewResponse\Data\Media + * @phpstan-import-type MediaShape from \OnlyFansAPI\Stories\StoryNewResponse\Data\Media + * @phpstan-import-type QuestionShape from \OnlyFansAPI\Stories\StoryNewResponse\Data\Question + * @phpstan-import-type ReleaseFormShape from \OnlyFansAPI\Stories\StoryNewResponse\Data\ReleaseForm + * @phpstan-import-type TextShape from \OnlyFansAPI\Stories\StoryNewResponse\Data\Text * * @phpstan-type DataShape = array{ * id?: int|null, * canDelete?: bool|null, + * canvasHeight?: int|null, + * canvasWidth?: int|null, * commentsCount?: int|null, * createdAt?: string|null, * hasPost?: bool|null, @@ -24,8 +32,9 @@ * isWatched?: bool|null, * likesCount?: int|null, * media?: list|null, - * question?: string|null, - * releaseForms?: list|null, + * question?: null|Question|QuestionShape, + * releaseForms?: list|null, + * texts?: list|null, * tipsAmount?: string|null, * tipsAmountRaw?: int|null, * tipsCount?: int|null, @@ -45,6 +54,12 @@ final class Data implements BaseModel #[Optional] public ?bool $canDelete; + #[Optional] + public ?int $canvasHeight; + + #[Optional] + public ?int $canvasWidth; + #[Optional] public ?int $commentsCount; @@ -73,13 +88,17 @@ final class Data implements BaseModel #[Optional(list: Media::class)] public ?array $media; - #[Optional(nullable: true)] - public ?string $question; + #[Optional] + public ?Question $question; - /** @var list|null $releaseForms */ - #[Optional(list: 'mixed')] + /** @var list|null $releaseForms */ + #[Optional(list: ReleaseForm::class)] public ?array $releaseForms; + /** @var list|null $texts */ + #[Optional(list: Text::class)] + public ?array $texts; + #[Optional] public ?string $tipsAmount; @@ -110,12 +129,16 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param list|null $media - * @param list|null $releaseForms + * @param Question|QuestionShape|null $question + * @param list|null $releaseForms + * @param list|null $texts * @param list|null $viewers */ public static function with( ?int $id = null, ?bool $canDelete = null, + ?int $canvasHeight = null, + ?int $canvasWidth = null, ?int $commentsCount = null, ?string $createdAt = null, ?bool $hasPost = null, @@ -125,8 +148,9 @@ public static function with( ?bool $isWatched = null, ?int $likesCount = null, ?array $media = null, - ?string $question = null, + Question|array|null $question = null, ?array $releaseForms = null, + ?array $texts = null, ?string $tipsAmount = null, ?int $tipsAmountRaw = null, ?int $tipsCount = null, @@ -138,6 +162,8 @@ public static function with( null !== $id && $self['id'] = $id; null !== $canDelete && $self['canDelete'] = $canDelete; + null !== $canvasHeight && $self['canvasHeight'] = $canvasHeight; + null !== $canvasWidth && $self['canvasWidth'] = $canvasWidth; null !== $commentsCount && $self['commentsCount'] = $commentsCount; null !== $createdAt && $self['createdAt'] = $createdAt; null !== $hasPost && $self['hasPost'] = $hasPost; @@ -149,6 +175,7 @@ public static function with( null !== $media && $self['media'] = $media; null !== $question && $self['question'] = $question; null !== $releaseForms && $self['releaseForms'] = $releaseForms; + null !== $texts && $self['texts'] = $texts; null !== $tipsAmount && $self['tipsAmount'] = $tipsAmount; null !== $tipsAmountRaw && $self['tipsAmountRaw'] = $tipsAmountRaw; null !== $tipsCount && $self['tipsCount'] = $tipsCount; @@ -175,6 +202,22 @@ public function withCanDelete(bool $canDelete): self return $self; } + public function withCanvasHeight(int $canvasHeight): self + { + $self = clone $this; + $self['canvasHeight'] = $canvasHeight; + + return $self; + } + + public function withCanvasWidth(int $canvasWidth): self + { + $self = clone $this; + $self['canvasWidth'] = $canvasWidth; + + return $self; + } + public function withCommentsCount(int $commentsCount): self { $self = clone $this; @@ -250,7 +293,10 @@ public function withMedia(array $media): self return $self; } - public function withQuestion(?string $question): self + /** + * @param Question|QuestionShape $question + */ + public function withQuestion(Question|array $question): self { $self = clone $this; $self['question'] = $question; @@ -259,7 +305,7 @@ public function withQuestion(?string $question): self } /** - * @param list $releaseForms + * @param list $releaseForms */ public function withReleaseForms(array $releaseForms): self { @@ -269,6 +315,17 @@ public function withReleaseForms(array $releaseForms): self return $self; } + /** + * @param list $texts + */ + public function withTexts(array $texts): self + { + $self = clone $this; + $self['texts'] = $texts; + + return $self; + } + public function withTipsAmount(string $tipsAmount): self { $self = clone $this; diff --git a/src/Stories/StoryNewResponse/Data/Media.php b/src/Stories/StoryNewResponse/Data/Media.php index 4edbae13..2fc2300d 100644 --- a/src/Stories/StoryNewResponse/Data/Media.php +++ b/src/Stories/StoryNewResponse/Data/Media.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse\Data; +namespace OnlyFansAPI\Stories\StoryNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryNewResponse\Data\Media\Files; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryNewResponse\Data\Media\Files; /** - * @phpstan-import-type FilesShape from \Onlyfansapi\Stories\StoryNewResponse\Data\Media\Files + * @phpstan-import-type FilesShape from \OnlyFansAPI\Stories\StoryNewResponse\Data\Media\Files * * @phpstan-type MediaShape = array{ * id?: int|null, diff --git a/src/Stories/StoryNewResponse/Data/Media/Files.php b/src/Stories/StoryNewResponse/Data/Media/Files.php index 06b1bee6..b264ad4a 100644 --- a/src/Stories/StoryNewResponse/Data/Media/Files.php +++ b/src/Stories/StoryNewResponse/Data/Media/Files.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse\Data\Media; +namespace OnlyFansAPI\Stories\StoryNewResponse\Data\Media; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryNewResponse\Data\Media\Files\Full; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryNewResponse\Data\Media\Files\Full; /** - * @phpstan-import-type FullShape from \Onlyfansapi\Stories\StoryNewResponse\Data\Media\Files\Full + * @phpstan-import-type FullShape from \OnlyFansAPI\Stories\StoryNewResponse\Data\Media\Files\Full * * @phpstan-type FilesShape = array{ * full?: null|Full|FullShape, diff --git a/src/Stories/StoryNewResponse/Data/Media/Files/Full.php b/src/Stories/StoryNewResponse/Data/Media/Files/Full.php index bafd9ecb..7c33e04f 100644 --- a/src/Stories/StoryNewResponse/Data/Media/Files/Full.php +++ b/src/Stories/StoryNewResponse/Data/Media/Files/Full.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse\Data\Media\Files; +namespace OnlyFansAPI\Stories\StoryNewResponse\Data\Media\Files; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type FullShape = array{ diff --git a/src/Stories/StoryNewResponse/Data/Question.php b/src/Stories/StoryNewResponse/Data/Question.php new file mode 100644 index 00000000..40d52734 --- /dev/null +++ b/src/Stories/StoryNewResponse/Data/Question.php @@ -0,0 +1,93 @@ + */ + use SdkModel; + + #[Optional] + public ?Entity $entity; + + #[Optional] + public ?Positions $positions; + + #[Optional] + public ?string $type; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param Entity|EntityShape|null $entity + * @param Positions|PositionsShape|null $positions + */ + public static function with( + Entity|array|null $entity = null, + Positions|array|null $positions = null, + ?string $type = null, + ): self { + $self = new self; + + null !== $entity && $self['entity'] = $entity; + null !== $positions && $self['positions'] = $positions; + null !== $type && $self['type'] = $type; + + return $self; + } + + /** + * @param Entity|EntityShape $entity + */ + public function withEntity(Entity|array $entity): self + { + $self = clone $this; + $self['entity'] = $entity; + + return $self; + } + + /** + * @param Positions|PositionsShape $positions + */ + public function withPositions(Positions|array $positions): self + { + $self = clone $this; + $self['positions'] = $positions; + + return $self; + } + + public function withType(string $type): self + { + $self = clone $this; + $self['type'] = $type; + + return $self; + } +} diff --git a/src/Stories/StoryNewResponse/Data/Question/Entity.php b/src/Stories/StoryNewResponse/Data/Question/Entity.php new file mode 100644 index 00000000..81d266f5 --- /dev/null +++ b/src/Stories/StoryNewResponse/Data/Question/Entity.php @@ -0,0 +1,77 @@ + */ + use SdkModel; + + #[Optional] + public ?int $id; + + #[Optional] + public ?string $createdAt; + + #[Optional] + public ?string $text; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?int $id = null, + ?string $createdAt = null, + ?string $text = null + ): self { + $self = new self; + + null !== $id && $self['id'] = $id; + null !== $createdAt && $self['createdAt'] = $createdAt; + null !== $text && $self['text'] = $text; + + return $self; + } + + public function withID(int $id): self + { + $self = clone $this; + $self['id'] = $id; + + return $self; + } + + public function withCreatedAt(string $createdAt): self + { + $self = clone $this; + $self['createdAt'] = $createdAt; + + return $self; + } + + public function withText(string $text): self + { + $self = clone $this; + $self['text'] = $text; + + return $self; + } +} diff --git a/src/Stories/StoryNewResponse/Data/Question/Positions.php b/src/Stories/StoryNewResponse/Data/Question/Positions.php new file mode 100644 index 00000000..5f21299d --- /dev/null +++ b/src/Stories/StoryNewResponse/Data/Question/Positions.php @@ -0,0 +1,163 @@ + */ + use SdkModel; + + #[Optional] + public ?int $angle; + + #[Optional] + public ?string $color; + + #[Optional] + public ?int $height; + + #[Optional] + public ?int $left; + + #[Optional] + public ?int $top; + + #[Optional] + public ?int $width; + + #[Optional(nullable: true)] + public ?string $x; + + #[Optional(nullable: true)] + public ?string $y; + + #[Optional] + public ?int $zIndex; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?int $angle = null, + ?string $color = null, + ?int $height = null, + ?int $left = null, + ?int $top = null, + ?int $width = null, + ?string $x = null, + ?string $y = null, + ?int $zIndex = null, + ): self { + $self = new self; + + null !== $angle && $self['angle'] = $angle; + null !== $color && $self['color'] = $color; + null !== $height && $self['height'] = $height; + null !== $left && $self['left'] = $left; + null !== $top && $self['top'] = $top; + null !== $width && $self['width'] = $width; + null !== $x && $self['x'] = $x; + null !== $y && $self['y'] = $y; + null !== $zIndex && $self['zIndex'] = $zIndex; + + return $self; + } + + public function withAngle(int $angle): self + { + $self = clone $this; + $self['angle'] = $angle; + + return $self; + } + + public function withColor(string $color): self + { + $self = clone $this; + $self['color'] = $color; + + return $self; + } + + public function withHeight(int $height): self + { + $self = clone $this; + $self['height'] = $height; + + return $self; + } + + public function withLeft(int $left): self + { + $self = clone $this; + $self['left'] = $left; + + return $self; + } + + public function withTop(int $top): self + { + $self = clone $this; + $self['top'] = $top; + + return $self; + } + + public function withWidth(int $width): self + { + $self = clone $this; + $self['width'] = $width; + + return $self; + } + + public function withX(?string $x): self + { + $self = clone $this; + $self['x'] = $x; + + return $self; + } + + public function withY(?string $y): self + { + $self = clone $this; + $self['y'] = $y; + + return $self; + } + + public function withZIndex(int $zIndex): self + { + $self = clone $this; + $self['zIndex'] = $zIndex; + + return $self; + } +} diff --git a/src/Stories/StoryNewResponse/Data/ReleaseForm.php b/src/Stories/StoryNewResponse/Data/ReleaseForm.php new file mode 100644 index 00000000..e69ab950 --- /dev/null +++ b/src/Stories/StoryNewResponse/Data/ReleaseForm.php @@ -0,0 +1,115 @@ + */ + use SdkModel; + + #[Optional] + public ?int $id; + + #[Optional] + public ?string $name; + + #[Optional] + public ?string $partnerSource; + + #[Optional] + public ?string $type; + + #[Optional] + public ?User $user; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param User|UserShape|null $user + */ + public static function with( + ?int $id = null, + ?string $name = null, + ?string $partnerSource = null, + ?string $type = null, + User|array|null $user = null, + ): self { + $self = new self; + + null !== $id && $self['id'] = $id; + null !== $name && $self['name'] = $name; + null !== $partnerSource && $self['partnerSource'] = $partnerSource; + null !== $type && $self['type'] = $type; + null !== $user && $self['user'] = $user; + + return $self; + } + + public function withID(int $id): self + { + $self = clone $this; + $self['id'] = $id; + + return $self; + } + + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + public function withPartnerSource(string $partnerSource): self + { + $self = clone $this; + $self['partnerSource'] = $partnerSource; + + return $self; + } + + public function withType(string $type): self + { + $self = clone $this; + $self['type'] = $type; + + return $self; + } + + /** + * @param User|UserShape $user + */ + public function withUser(User|array $user): self + { + $self = clone $this; + $self['user'] = $user; + + return $self; + } +} diff --git a/src/Stories/StoryNewResponse/Data/ReleaseForm/User.php b/src/Stories/StoryNewResponse/Data/ReleaseForm/User.php new file mode 100644 index 00000000..bf0fb374 --- /dev/null +++ b/src/Stories/StoryNewResponse/Data/ReleaseForm/User.php @@ -0,0 +1,163 @@ + */ + use SdkModel; + + #[Optional] + public ?int $id; + + #[Optional(nullable: true)] + public ?string $avatar; + + #[Optional(nullable: true)] + public ?string $avatarThumbs; + + #[Optional] + public ?bool $isFromGuest; + + #[Optional] + public ?bool $isIdentityVerified; + + #[Optional] + public ?string $ivStatus; + + #[Optional] + public ?string $name; + + #[Optional] + public ?string $username; + + #[Optional] + public ?string $view; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + ?int $id = null, + ?string $avatar = null, + ?string $avatarThumbs = null, + ?bool $isFromGuest = null, + ?bool $isIdentityVerified = null, + ?string $ivStatus = null, + ?string $name = null, + ?string $username = null, + ?string $view = null, + ): self { + $self = new self; + + null !== $id && $self['id'] = $id; + null !== $avatar && $self['avatar'] = $avatar; + null !== $avatarThumbs && $self['avatarThumbs'] = $avatarThumbs; + null !== $isFromGuest && $self['isFromGuest'] = $isFromGuest; + null !== $isIdentityVerified && $self['isIdentityVerified'] = $isIdentityVerified; + null !== $ivStatus && $self['ivStatus'] = $ivStatus; + null !== $name && $self['name'] = $name; + null !== $username && $self['username'] = $username; + null !== $view && $self['view'] = $view; + + return $self; + } + + public function withID(int $id): self + { + $self = clone $this; + $self['id'] = $id; + + return $self; + } + + public function withAvatar(?string $avatar): self + { + $self = clone $this; + $self['avatar'] = $avatar; + + return $self; + } + + public function withAvatarThumbs(?string $avatarThumbs): self + { + $self = clone $this; + $self['avatarThumbs'] = $avatarThumbs; + + return $self; + } + + public function withIsFromGuest(bool $isFromGuest): self + { + $self = clone $this; + $self['isFromGuest'] = $isFromGuest; + + return $self; + } + + public function withIsIdentityVerified(bool $isIdentityVerified): self + { + $self = clone $this; + $self['isIdentityVerified'] = $isIdentityVerified; + + return $self; + } + + public function withIvStatus(string $ivStatus): self + { + $self = clone $this; + $self['ivStatus'] = $ivStatus; + + return $self; + } + + public function withName(string $name): self + { + $self = clone $this; + $self['name'] = $name; + + return $self; + } + + public function withUsername(string $username): self + { + $self = clone $this; + $self['username'] = $username; + + return $self; + } + + public function withView(string $view): self + { + $self = clone $this; + $self['view'] = $view; + + return $self; + } +} diff --git a/src/Stories/StoryNewResponse/Data/Text.php b/src/Stories/StoryNewResponse/Data/Text.php new file mode 100644 index 00000000..3b308ab6 --- /dev/null +++ b/src/Stories/StoryNewResponse/Data/Text.php @@ -0,0 +1,281 @@ +|null, + * zIndex?: int|null, + * } + */ +final class Text implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + #[Optional] + public ?int $angle; + + #[Optional] + public ?string $bgColor; + + #[Optional] + public ?string $color; + + #[Optional] + public ?string $fontFamily; + + #[Optional] + public ?string $fontSize; + + #[Optional(nullable: true)] + public ?string $fontStyle; + + #[Optional] + public ?int $fontWeight; + + #[Optional] + public ?int $left; + + #[Optional] + public ?int $scale; + + #[Optional] + public ?string $text; + + #[Optional] + public ?string $textAlign; + + #[Optional] + public ?float $textHeight; + + #[Optional] + public ?int $textWidth; + + #[Optional] + public ?int $top; + + #[Optional] + public ?string $type; + + /** @var list|null $users */ + #[Optional(list: 'mixed')] + public ?array $users; + + #[Optional] + public ?int $zIndex; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param list|null $users + */ + public static function with( + ?int $angle = null, + ?string $bgColor = null, + ?string $color = null, + ?string $fontFamily = null, + ?string $fontSize = null, + ?string $fontStyle = null, + ?int $fontWeight = null, + ?int $left = null, + ?int $scale = null, + ?string $text = null, + ?string $textAlign = null, + ?float $textHeight = null, + ?int $textWidth = null, + ?int $top = null, + ?string $type = null, + ?array $users = null, + ?int $zIndex = null, + ): self { + $self = new self; + + null !== $angle && $self['angle'] = $angle; + null !== $bgColor && $self['bgColor'] = $bgColor; + null !== $color && $self['color'] = $color; + null !== $fontFamily && $self['fontFamily'] = $fontFamily; + null !== $fontSize && $self['fontSize'] = $fontSize; + null !== $fontStyle && $self['fontStyle'] = $fontStyle; + null !== $fontWeight && $self['fontWeight'] = $fontWeight; + null !== $left && $self['left'] = $left; + null !== $scale && $self['scale'] = $scale; + null !== $text && $self['text'] = $text; + null !== $textAlign && $self['textAlign'] = $textAlign; + null !== $textHeight && $self['textHeight'] = $textHeight; + null !== $textWidth && $self['textWidth'] = $textWidth; + null !== $top && $self['top'] = $top; + null !== $type && $self['type'] = $type; + null !== $users && $self['users'] = $users; + null !== $zIndex && $self['zIndex'] = $zIndex; + + return $self; + } + + public function withAngle(int $angle): self + { + $self = clone $this; + $self['angle'] = $angle; + + return $self; + } + + public function withBgColor(string $bgColor): self + { + $self = clone $this; + $self['bgColor'] = $bgColor; + + return $self; + } + + public function withColor(string $color): self + { + $self = clone $this; + $self['color'] = $color; + + return $self; + } + + public function withFontFamily(string $fontFamily): self + { + $self = clone $this; + $self['fontFamily'] = $fontFamily; + + return $self; + } + + public function withFontSize(string $fontSize): self + { + $self = clone $this; + $self['fontSize'] = $fontSize; + + return $self; + } + + public function withFontStyle(?string $fontStyle): self + { + $self = clone $this; + $self['fontStyle'] = $fontStyle; + + return $self; + } + + public function withFontWeight(int $fontWeight): self + { + $self = clone $this; + $self['fontWeight'] = $fontWeight; + + return $self; + } + + public function withLeft(int $left): self + { + $self = clone $this; + $self['left'] = $left; + + return $self; + } + + public function withScale(int $scale): self + { + $self = clone $this; + $self['scale'] = $scale; + + return $self; + } + + public function withText(string $text): self + { + $self = clone $this; + $self['text'] = $text; + + return $self; + } + + public function withTextAlign(string $textAlign): self + { + $self = clone $this; + $self['textAlign'] = $textAlign; + + return $self; + } + + public function withTextHeight(float $textHeight): self + { + $self = clone $this; + $self['textHeight'] = $textHeight; + + return $self; + } + + public function withTextWidth(int $textWidth): self + { + $self = clone $this; + $self['textWidth'] = $textWidth; + + return $self; + } + + public function withTop(int $top): self + { + $self = clone $this; + $self['top'] = $top; + + return $self; + } + + public function withType(string $type): self + { + $self = clone $this; + $self['type'] = $type; + + return $self; + } + + /** + * @param list $users + */ + public function withUsers(array $users): self + { + $self = clone $this; + $self['users'] = $users; + + return $self; + } + + public function withZIndex(int $zIndex): self + { + $self = clone $this; + $self['zIndex'] = $zIndex; + + return $self; + } +} diff --git a/src/Stories/StoryNewResponse/_Meta.php b/src/Stories/StoryNewResponse/_Meta.php index a1d2457c..3f16e3c5 100644 --- a/src/Stories/StoryNewResponse/_Meta.php +++ b/src/Stories/StoryNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse; +namespace OnlyFansAPI\Stories\StoryNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Stories\StoryNewResponse\_Meta\_Cache; -use Onlyfansapi\Stories\StoryNewResponse\_Meta\_Credits; -use Onlyfansapi\Stories\StoryNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Stories\StoryNewResponse\_Meta\_Cache; +use OnlyFansAPI\Stories\StoryNewResponse\_Meta\_Credits; +use OnlyFansAPI\Stories\StoryNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Stories\StoryNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Stories\StoryNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Stories\StoryNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Stories\StoryNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Stories\StoryNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Stories\StoryNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Stories/StoryNewResponse/_Meta/_Cache.php b/src/Stories/StoryNewResponse/_Meta/_Cache.php index 47a443d6..bf5d98fc 100644 --- a/src/Stories/StoryNewResponse/_Meta/_Cache.php +++ b/src/Stories/StoryNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Stories/StoryNewResponse/_Meta/_Credits.php b/src/Stories/StoryNewResponse/_Meta/_Credits.php index 2ea9da90..37213579 100644 --- a/src/Stories/StoryNewResponse/_Meta/_Credits.php +++ b/src/Stories/StoryNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Stories/StoryNewResponse/_Meta/_RateLimits.php b/src/Stories/StoryNewResponse/_Meta/_RateLimits.php index af843a16..09bdfbf8 100644 --- a/src/Stories/StoryNewResponse/_Meta/_RateLimits.php +++ b/src/Stories/StoryNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories\StoryNewResponse\_Meta; +namespace OnlyFansAPI\Stories\StoryNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Stories/StoryRetrieveParams.php b/src/Stories/StoryRetrieveParams.php index cf257c6a..e6d07ea7 100644 --- a/src/Stories/StoryRetrieveParams.php +++ b/src/Stories/StoryRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve details of a specific story by its ID. * - * @see Onlyfansapi\Services\StoriesService::retrieve() + * @see OnlyFansAPI\Services\StoriesService::retrieve() * * @phpstan-type StoryRetrieveParamsShape = array{account: string} */ diff --git a/src/Stories/StoryRetrieveStatsParams.php b/src/Stories/StoryRetrieveStatsParams.php index 80e2a573..e326a87d 100644 --- a/src/Stories/StoryRetrieveStatsParams.php +++ b/src/Stories/StoryRetrieveStatsParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Stories; +namespace OnlyFansAPI\Stories; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Retrieve viewer count, likes count, comments count, and tips statistics for a specific story by its ID. * - * @see Onlyfansapi\Services\StoriesService::retrieveStats() + * @see OnlyFansAPI\Services\StoriesService::retrieveStats() * * @phpstan-type StoryRetrieveStatsParamsShape = array{account: string} */ diff --git a/src/Subscribers/SubscriberGetStatisticsResponse.php b/src/Subscribers/SubscriberGetStatisticsResponse.php index d8e50087..fab5a89b 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers; +namespace OnlyFansAPI\Subscribers; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data * * @phpstan-type SubscriberGetStatisticsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Subscribers/SubscriberGetStatisticsResponse/Data.php b/src/Subscribers/SubscriberGetStatisticsResponse/Data.php index 4fb42fff..435733e8 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse/Data.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse; +namespace OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data\Earning; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data\Earning; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data\Subscribe; /** - * @phpstan-import-type EarningShape from \Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data\Earning - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data\Subscribe + * @phpstan-import-type EarningShape from \OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data\Earning + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data\Subscribe * * @phpstan-type DataShape = array{ * delta?: float|null, diff --git a/src/Subscribers/SubscriberGetStatisticsResponse/Data/Earning.php b/src/Subscribers/SubscriberGetStatisticsResponse/Data/Earning.php index 15b880c9..9d644bbc 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse/Data/Earning.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse/Data/Earning.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data; +namespace OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type EarningShape = array{count?: float|null, date?: string|null} diff --git a/src/Subscribers/SubscriberGetStatisticsResponse/Data/Subscribe.php b/src/Subscribers/SubscriberGetStatisticsResponse/Data/Subscribe.php index 5afea9cf..7ff37cf9 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse/Data/Subscribe.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse/Data/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\Data; +namespace OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{count?: int|null, date?: string|null} diff --git a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta.php b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta.php index 004c448a..3cdfed57 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse; +namespace OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Cache; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Credits; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Cache; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Credits; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Cache.php b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Cache.php index 0c2d0ee7..07781ee7 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Cache.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta; +namespace OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Credits.php b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Credits.php index b19a3ae5..418e28eb 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Credits.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta; +namespace OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_RateLimits.php b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_RateLimits.php index ef05424b..bcc77037 100644 --- a/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_RateLimits.php +++ b/src/Subscribers/SubscriberGetStatisticsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse\_Meta; +namespace OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Subscribers/SubscriberRetrieveStatisticsParams.php b/src/Subscribers/SubscriberRetrieveStatisticsParams.php index 2de0cac9..8a5f1f95 100644 --- a/src/Subscribers/SubscriberRetrieveStatisticsParams.php +++ b/src/Subscribers/SubscriberRetrieveStatisticsParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers; +namespace OnlyFansAPI\Subscribers; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Subscribers\SubscriberRetrieveStatisticsParams\Type; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Subscribers\SubscriberRetrieveStatisticsParams\Type; /** * Get subscriber and earning statistics for an account for a specified timeframe. Optionally, filter by all, renews, or new subscribers. * - * @see Onlyfansapi\Services\SubscribersService::retrieveStatistics() + * @see OnlyFansAPI\Services\SubscribersService::retrieveStatistics() * * @phpstan-type SubscriberRetrieveStatisticsParamsShape = array{ * endDate?: string|null, diff --git a/src/Subscribers/SubscriberRetrieveStatisticsParams/Type.php b/src/Subscribers/SubscriberRetrieveStatisticsParams/Type.php index 4ed4fdde..6f38af37 100644 --- a/src/Subscribers/SubscriberRetrieveStatisticsParams/Type.php +++ b/src/Subscribers/SubscriberRetrieveStatisticsParams/Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\Subscribers\SubscriberRetrieveStatisticsParams; +namespace OnlyFansAPI\Subscribers\SubscriberRetrieveStatisticsParams; /** * Filter the subscriber statistics (default = total). diff --git a/src/TrackingLinks/Tags/TagAddParams.php b/src/TrackingLinks/Tags/TagAddParams.php index 60481174..1a9a9477 100644 --- a/src/TrackingLinks/Tags/TagAddParams.php +++ b/src/TrackingLinks/Tags/TagAddParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags; +namespace OnlyFansAPI\TrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Add tags to a specific tracking link. Existing tags are preserved. This is a free endpoint. * - * @see Onlyfansapi\Services\TrackingLinks\TagsService::add() + * @see OnlyFansAPI\Services\TrackingLinks\TagsService::add() * * @phpstan-type TagAddParamsShape = array{account: string, tags: list} */ diff --git a/src/TrackingLinks/Tags/TagAddResponse.php b/src/TrackingLinks/Tags/TagAddResponse.php index 499e9704..b4feb1b3 100644 --- a/src/TrackingLinks/Tags/TagAddResponse.php +++ b/src/TrackingLinks/Tags/TagAddResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags; +namespace OnlyFansAPI\TrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\Tags\TagAddResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\Data * * @phpstan-type TagAddResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrackingLinks/Tags/TagAddResponse/Data.php b/src/TrackingLinks/Tags/TagAddResponse/Data.php index d9c2b4ec..c00ef52d 100644 --- a/src/TrackingLinks/Tags/TagAddResponse/Data.php +++ b/src/TrackingLinks/Tags/TagAddResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\TrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/TrackingLinks/Tags/TagAddResponse/_Meta.php b/src/TrackingLinks/Tags/TagAddResponse/_Meta.php index ab2412fe..ebf9ea2b 100644 --- a/src/TrackingLinks/Tags/TagAddResponse/_Meta.php +++ b/src/TrackingLinks/Tags/TagAddResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\TrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php b/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php index 6a1241de..cd4b99f6 100644 --- a/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php b/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php index d4b2b9b8..1e1a322e 100644 --- a/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/Tags/TagAddResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php b/src/TrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php index 3669002f..7fe663a4 100644 --- a/src/TrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/Tags/TagAddResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/Tags/TagListParams.php b/src/TrackingLinks/Tags/TagListParams.php index a0329c24..2ca12982 100644 --- a/src/TrackingLinks/Tags/TagListParams.php +++ b/src/TrackingLinks/Tags/TagListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags; +namespace OnlyFansAPI\TrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get tags for a specific tracking link. This is a free endpoint. * - * @see Onlyfansapi\Services\TrackingLinks\TagsService::list() + * @see OnlyFansAPI\Services\TrackingLinks\TagsService::list() * * @phpstan-type TagListParamsShape = array{account: string} */ diff --git a/src/TrackingLinks/Tags/TagListResponse.php b/src/TrackingLinks/Tags/TagListResponse.php index 305fe498..7be56656 100644 --- a/src/TrackingLinks/Tags/TagListResponse.php +++ b/src/TrackingLinks/Tags/TagListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags; +namespace OnlyFansAPI\TrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\Tags\TagListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\Tags\TagListResponse\Data * * @phpstan-type TagListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrackingLinks/Tags/TagListResponse/Data.php b/src/TrackingLinks/Tags/TagListResponse/Data.php index f30d0ca8..491249e1 100644 --- a/src/TrackingLinks/Tags/TagListResponse/Data.php +++ b/src/TrackingLinks/Tags/TagListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagListResponse; +namespace OnlyFansAPI\TrackingLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/TrackingLinks/Tags/TagListResponse/_Meta.php b/src/TrackingLinks/Tags/TagListResponse/_Meta.php index 98ab3309..5e41c0e2 100644 --- a/src/TrackingLinks/Tags/TagListResponse/_Meta.php +++ b/src/TrackingLinks/Tags/TagListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagListResponse; +namespace OnlyFansAPI\TrackingLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/Tags/TagListResponse/_Meta/_Cache.php b/src/TrackingLinks/Tags/TagListResponse/_Meta/_Cache.php index 49facb33..e160769d 100644 --- a/src/TrackingLinks/Tags/TagListResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/Tags/TagListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/Tags/TagListResponse/_Meta/_Credits.php b/src/TrackingLinks/Tags/TagListResponse/_Meta/_Credits.php index 6d3d7c81..47749e08 100644 --- a/src/TrackingLinks/Tags/TagListResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/Tags/TagListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php b/src/TrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php index 8f8668ad..285a7380 100644 --- a/src/TrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/Tags/TagListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/Tags/TagRemoveParams.php b/src/TrackingLinks/Tags/TagRemoveParams.php index 6c3f584d..a8f6bab4 100644 --- a/src/TrackingLinks/Tags/TagRemoveParams.php +++ b/src/TrackingLinks/Tags/TagRemoveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags; +namespace OnlyFansAPI\TrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove tags from a specific tracking link. This is a free endpoint. * - * @see Onlyfansapi\Services\TrackingLinks\TagsService::remove() + * @see OnlyFansAPI\Services\TrackingLinks\TagsService::remove() * * @phpstan-type TagRemoveParamsShape = array{account: string, tags: list} */ diff --git a/src/TrackingLinks/Tags/TagRemoveResponse.php b/src/TrackingLinks/Tags/TagRemoveResponse.php index 46008162..6545d0c5 100644 --- a/src/TrackingLinks/Tags/TagRemoveResponse.php +++ b/src/TrackingLinks/Tags/TagRemoveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags; +namespace OnlyFansAPI\TrackingLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\Data * * @phpstan-type TagRemoveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrackingLinks/Tags/TagRemoveResponse/Data.php b/src/TrackingLinks/Tags/TagRemoveResponse/Data.php index 64696f36..a966f5a8 100644 --- a/src/TrackingLinks/Tags/TagRemoveResponse/Data.php +++ b/src/TrackingLinks/Tags/TagRemoveResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta.php b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta.php index 3fec97e9..2e696e14 100644 --- a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta.php +++ b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php index b44a1c95..8419039c 100644 --- a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php index d91a7f6c..93c4e7e7 100644 --- a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php index 72c5b4de..9d8505fa 100644 --- a/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkCreateParams.php b/src/TrackingLinks/TrackingLinkCreateParams.php index 13ea04c5..ea0d1554 100644 --- a/src/TrackingLinks/TrackingLinkCreateParams.php +++ b/src/TrackingLinks/TrackingLinkCreateParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a new Tracking Link for the account. * - * @see Onlyfansapi\Services\TrackingLinksService::create() + * @see OnlyFansAPI\Services\TrackingLinksService::create() * * @phpstan-type TrackingLinkCreateParamsShape = array{ * name: string, tags?: list|null diff --git a/src/TrackingLinks/TrackingLinkDeleteParams.php b/src/TrackingLinks/TrackingLinkDeleteParams.php index 88b99467..efb3b84a 100644 --- a/src/TrackingLinks/TrackingLinkDeleteParams.php +++ b/src/TrackingLinks/TrackingLinkDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a Tracking Link. * - * @see Onlyfansapi\Services\TrackingLinksService::delete() + * @see OnlyFansAPI\Services\TrackingLinksService::delete() * * @phpstan-type TrackingLinkDeleteParamsShape = array{account: string} */ diff --git a/src/TrackingLinks/TrackingLinkDeleteResponse.php b/src/TrackingLinks/TrackingLinkDeleteResponse.php index a7566a28..b40a1295 100644 --- a/src/TrackingLinks/TrackingLinkDeleteResponse.php +++ b/src/TrackingLinks/TrackingLinkDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\Data * * @phpstan-type TrackingLinkDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrackingLinks/TrackingLinkDeleteResponse/Data.php b/src/TrackingLinks/TrackingLinkDeleteResponse/Data.php index 040977e4..aeb1f976 100644 --- a/src/TrackingLinks/TrackingLinkDeleteResponse/Data.php +++ b/src/TrackingLinks/TrackingLinkDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta.php b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta.php index 434b3cb1..ce843554 100644 --- a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta.php +++ b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Cache.php b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Cache.php index 6fc4dbaa..3a5a6442 100644 --- a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Credits.php b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Credits.php index 51b90f96..cf7cb654 100644 --- a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_RateLimits.php b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_RateLimits.php index 7492156b..887f07af 100644 --- a/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/TrackingLinkDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetCohortArpsParams.php b/src/TrackingLinks/TrackingLinkGetCohortArpsParams.php index 261fec7f..0cde1926 100644 --- a/src/TrackingLinks/TrackingLinkGetCohortArpsParams.php +++ b/src/TrackingLinks/TrackingLinkGetCohortArpsParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetCohortArpsParams\RevenueBasis; /** * Get per-link time-to-profit cohort ARPS windows for a specific Tracking Link. * - * @see Onlyfansapi\Services\TrackingLinksService::getCohortArps() + * @see OnlyFansAPI\Services\TrackingLinksService::getCohortArps() * * @phpstan-type TrackingLinkGetCohortArpsParamsShape = array{ * account: string, diff --git a/src/TrackingLinks/TrackingLinkGetCohortArpsParams/RevenueBasis.php b/src/TrackingLinks/TrackingLinkGetCohortArpsParams/RevenueBasis.php index 8c39fdb8..8433e6ad 100644 --- a/src/TrackingLinks/TrackingLinkGetCohortArpsParams/RevenueBasis.php +++ b/src/TrackingLinks/TrackingLinkGetCohortArpsParams/RevenueBasis.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetCohortArpsParams; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetCohortArpsParams; /** * Revenue basis. Defaults to `net`. diff --git a/src/TrackingLinks/TrackingLinkGetResponse.php b/src/TrackingLinks/TrackingLinkGetResponse.php index cfd16f69..f0122b30 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse.php +++ b/src/TrackingLinks/TrackingLinkGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data * * @phpstan-type TrackingLinkGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrackingLinks/TrackingLinkGetResponse/Data.php b/src/TrackingLinks/TrackingLinkGetResponse/Data.php index a92bb082..69803ad2 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/Data.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Cost; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Links; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Cost; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Links; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Revenue; /** - * @phpstan-import-type CostShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Cost - * @phpstan-import-type LinksShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Links - * @phpstan-import-type RevenueShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Revenue + * @phpstan-import-type CostShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Cost + * @phpstan-import-type LinksShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Links + * @phpstan-import-type RevenueShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Revenue * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/TrackingLinks/TrackingLinkGetResponse/Data/Cost.php b/src/TrackingLinks/TrackingLinkGetResponse/Data/Cost.php index cd0d39f8..c146f76f 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/Data/Cost.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/Data/Cost.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CostShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetResponse/Data/Links.php b/src/TrackingLinks/TrackingLinkGetResponse/Data/Links.php index 875d886c..42a912e3 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/Data/Links.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/Data/Links.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Links\Related; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Links\Related; /** - * @phpstan-import-type RelatedShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Links\Related + * @phpstan-import-type RelatedShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Links\Related * * @phpstan-type LinksShape = array{related?: null|Related|RelatedShape} */ diff --git a/src/TrackingLinks/TrackingLinkGetResponse/Data/Links/Related.php b/src/TrackingLinks/TrackingLinkGetResponse/Data/Links/Related.php index 87c50093..7645297c 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/Data/Links/Related.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/Data/Links/Related.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data\Links; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data\Links; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RelatedShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetResponse/Data/Revenue.php b/src/TrackingLinks/TrackingLinkGetResponse/Data/Revenue.php index 88f8b0a3..41b63ea4 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/Data/Revenue.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/Data/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetResponse/_Meta.php b/src/TrackingLinks/TrackingLinkGetResponse/_Meta.php index 695c8e1b..cb1923c9 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/_Meta.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Cache.php b/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Cache.php index 62b41cba..cb4fb048 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Credits.php b/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Credits.php index 07a84b07..d16c0eeb 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_RateLimits.php b/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_RateLimits.php index fc786299..a3741416 100644 --- a/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/TrackingLinkGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetStatsParams.php b/src/TrackingLinks/TrackingLinkGetStatsParams.php index 8867463d..dff00d8c 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsParams.php +++ b/src/TrackingLinks/TrackingLinkGetStatsParams.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get dashboard-style summary plus daily and monthly metrics for a specific Tracking Link. @@ -19,7 +19,7 @@ * - Daily data can only be tracked from the date the account was connected to OnlyFans API; earlier periods are not available. * . * - * @see Onlyfansapi\Services\TrackingLinksService::getStats() + * @see OnlyFansAPI\Services\TrackingLinksService::getStats() * * @phpstan-type TrackingLinkGetStatsParamsShape = array{ * account: string, dateEnd?: string|null, dateStart?: string|null diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse.php b/src/TrackingLinks/TrackingLinkGetStatsResponse.php index 5b4ce859..700600c3 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data * * @phpstan-type TrackingLinkGetStatsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data.php b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data.php index b1e5c459..785fd024 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data\DailyMetric; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data\MonthlyMetric; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data\Summary; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data\DailyMetric; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data\MonthlyMetric; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data\Summary; /** - * @phpstan-import-type DailyMetricShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data\DailyMetric - * @phpstan-import-type MonthlyMetricShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data\MonthlyMetric - * @phpstan-import-type SummaryShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data\Summary + * @phpstan-import-type DailyMetricShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data\DailyMetric + * @phpstan-import-type MonthlyMetricShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data\MonthlyMetric + * @phpstan-import-type SummaryShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data\Summary * * @phpstan-type DataShape = array{ * dailyMetrics?: list|null, diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/DailyMetric.php b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/DailyMetric.php index 95130b56..72db822e 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/DailyMetric.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/DailyMetric.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DailyMetricShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/MonthlyMetric.php b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/MonthlyMetric.php index bcfd2bb2..183b0ef9 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/MonthlyMetric.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/MonthlyMetric.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type MonthlyMetricShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/Summary.php b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/Summary.php index 8d2cfad2..3d6dee01 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/Summary.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse/Data/Summary.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryShape = array{ diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta.php b/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta.php index fb2f24a9..bf84bd59 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Cache.php b/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Cache.php index 35b162cb..b55765ec 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Credits.php b/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Credits.php index bd0c19f3..b648a2c8 100644 --- a/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/TrackingLinkGetStatsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListParams.php b/src/TrackingLinks/TrackingLinkListParams.php index 42115914..c76ac179 100644 --- a/src/TrackingLinks/TrackingLinkListParams.php +++ b/src/TrackingLinks/TrackingLinkListParams.php @@ -2,29 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sort; -use Onlyfansapi\TrackingLinks\TrackingLinkListParams\Sortby; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Pagination; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sort; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\Sortby; +use OnlyFansAPI\TrackingLinks\TrackingLinkListParams\WithDeleted; /** * List all tracking links for the account and revenue data. * - * @see Onlyfansapi\Services\TrackingLinksService::list() + * @see OnlyFansAPI\Services\TrackingLinksService::list() * * @phpstan-type TrackingLinkListParamsShape = array{ * endDate?: string|null, * limit?: int|null, * offset?: int|null, + * pagination?: null|Pagination|value-of, * sort?: null|Sort|value-of, * sortby?: null|Sortby|value-of, * startDate?: string|null, * synchronous?: bool|null, - * withDeleted?: bool|null, + * withDeleted?: null|WithDeleted|value-of, * } */ final class TrackingLinkListParams implements BaseModel @@ -34,56 +37,62 @@ final class TrackingLinkListParams implements BaseModel use SdkParams; /** - * The end date for Tracking Links. Keep empty to get all. + * The end date for tracking links. Keep empty to get all. Must not be greater than 255 characters. */ #[Optional(nullable: true)] public ?string $endDate; /** - * The number of tracking links to return. Default `3`. + * The number of tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. */ - #[Optional(nullable: true)] + #[Optional] public ?int $limit; /** - * The offset used for pagination. Default `0`. + * The offset used for pagination. Default `0`. Must be at least 0. */ - #[Optional(nullable: true)] + #[Optional] public ?int $offset; + /** @var value-of|null $pagination */ + #[Optional(enum: Pagination::class)] + public ?int $pagination; + /** - * Sort the results. Default `desc`. + * Sort direction. Default `desc`. * * @var value-of|null $sort */ - #[Optional(enum: Sort::class, nullable: true)] + #[Optional(enum: Sort::class)] public ?string $sort; /** - * Sort by subscriber count (claims), or creation date. + * Sort by subscriber count (`claims`) or creation date (`created_date`). * * @var value-of|null $sortby */ - #[Optional(enum: Sortby::class, nullable: true)] + #[Optional(enum: Sortby::class)] public ?string $sortby; /** - * The start date for Tracking Links. Keep empty to get all. + * The start date for tracking links. Keep empty to get all. Must not be greater than 255 characters. */ #[Optional(nullable: true)] public ?string $startDate; /** - * Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false`. + * Wait for revenue calculation instead of processing it in the background. */ - #[Optional(nullable: true)] + #[Optional] public ?bool $synchronous; /** - * Whether or not to include deleted tracking links in the response. Default `false`. + * Whether to include deleted tracking links. Default `true`. + * + * @var value-of|null $withDeleted */ - #[Optional(nullable: true)] - public ?bool $withDeleted; + #[Optional(enum: WithDeleted::class)] + public ?int $withDeleted; public function __construct() { @@ -95,24 +104,28 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param Pagination|value-of|null $pagination * @param Sort|value-of|null $sort * @param Sortby|value-of|null $sortby + * @param WithDeleted|value-of|null $withDeleted */ public static function with( ?string $endDate = null, ?int $limit = null, ?int $offset = null, + Pagination|int|null $pagination = null, Sort|string|null $sort = null, Sortby|string|null $sortby = null, ?string $startDate = null, ?bool $synchronous = null, - ?bool $withDeleted = null, + WithDeleted|int|null $withDeleted = null, ): self { $self = new self; null !== $endDate && $self['endDate'] = $endDate; null !== $limit && $self['limit'] = $limit; null !== $offset && $self['offset'] = $offset; + null !== $pagination && $self['pagination'] = $pagination; null !== $sort && $self['sort'] = $sort; null !== $sortby && $self['sortby'] = $sortby; null !== $startDate && $self['startDate'] = $startDate; @@ -123,7 +136,7 @@ public static function with( } /** - * The end date for Tracking Links. Keep empty to get all. + * The end date for tracking links. Keep empty to get all. Must not be greater than 255 characters. */ public function withEndDate(?string $endDate): self { @@ -134,9 +147,9 @@ public function withEndDate(?string $endDate): self } /** - * The number of tracking links to return. Default `3`. + * The number of tracking links to return. Default `10`. Must be at least 1. Must not be greater than 100. */ - public function withLimit(?int $limit): self + public function withLimit(int $limit): self { $self = clone $this; $self['limit'] = $limit; @@ -145,9 +158,9 @@ public function withLimit(?int $limit): self } /** - * The offset used for pagination. Default `0`. + * The offset used for pagination. Default `0`. Must be at least 0. */ - public function withOffset(?int $offset): self + public function withOffset(int $offset): self { $self = clone $this; $self['offset'] = $offset; @@ -156,11 +169,22 @@ public function withOffset(?int $offset): self } /** - * Sort the results. Default `desc`. + * @param Pagination|value-of $pagination + */ + public function withPagination(Pagination|int $pagination): self + { + $self = clone $this; + $self['pagination'] = $pagination; + + return $self; + } + + /** + * Sort direction. Default `desc`. * - * @param Sort|value-of|null $sort + * @param Sort|value-of $sort */ - public function withSort(Sort|string|null $sort): self + public function withSort(Sort|string $sort): self { $self = clone $this; $self['sort'] = $sort; @@ -169,11 +193,11 @@ public function withSort(Sort|string|null $sort): self } /** - * Sort by subscriber count (claims), or creation date. + * Sort by subscriber count (`claims`) or creation date (`created_date`). * - * @param Sortby|value-of|null $sortby + * @param Sortby|value-of $sortby */ - public function withSortby(Sortby|string|null $sortby): self + public function withSortby(Sortby|string $sortby): self { $self = clone $this; $self['sortby'] = $sortby; @@ -182,7 +206,7 @@ public function withSortby(Sortby|string|null $sortby): self } /** - * The start date for Tracking Links. Keep empty to get all. + * The start date for tracking links. Keep empty to get all. Must not be greater than 255 characters. */ public function withStartDate(?string $startDate): self { @@ -193,9 +217,9 @@ public function withStartDate(?string $startDate): self } /** - * Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false`. + * Wait for revenue calculation instead of processing it in the background. */ - public function withSynchronous(?bool $synchronous): self + public function withSynchronous(bool $synchronous): self { $self = clone $this; $self['synchronous'] = $synchronous; @@ -204,9 +228,11 @@ public function withSynchronous(?bool $synchronous): self } /** - * Whether or not to include deleted tracking links in the response. Default `false`. + * Whether to include deleted tracking links. Default `true`. + * + * @param WithDeleted|value-of $withDeleted */ - public function withWithDeleted(?bool $withDeleted): self + public function withWithDeleted(WithDeleted|int $withDeleted): self { $self = clone $this; $self['withDeleted'] = $withDeleted; diff --git a/src/TrackingLinks/TrackingLinkListParams/Pagination.php b/src/TrackingLinks/TrackingLinkListParams/Pagination.php new file mode 100644 index 00000000..f101e1a2 --- /dev/null +++ b/src/TrackingLinks/TrackingLinkListParams/Pagination.php @@ -0,0 +1,12 @@ +|null diff --git a/src/TrackingLinks/TrackingLinkListResponse/Data/List_.php b/src/TrackingLinks/TrackingLinkListResponse/Data/List_.php index 25e8ca1d..5f273208 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/Data/List_.php +++ b/src/TrackingLinks/TrackingLinkListResponse/Data/List_.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_\Links; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_\Links; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_\Revenue; /** - * @phpstan-import-type LinksShape from \Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_\Links - * @phpstan-import-type RevenueShape from \Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_\Revenue + * @phpstan-import-type LinksShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_\Links + * @phpstan-import-type RevenueShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_\Revenue * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links.php b/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links.php index bd07e7ff..0211fa62 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links.php +++ b/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_\Links\Related; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_\Links\Related; /** - * @phpstan-import-type RelatedShape from \Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_\Links\Related + * @phpstan-import-type RelatedShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_\Links\Related * * @phpstan-type LinksShape = array{related?: null|Related|RelatedShape} */ diff --git a/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links/Related.php b/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links/Related.php index 062ef9f8..e41f3f1a 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links/Related.php +++ b/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Links/Related.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_\Links; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_\Links; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RelatedShape = array{subscribers?: string|null} diff --git a/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Revenue.php b/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Revenue.php index 00d24483..1bf5d4b3 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Revenue.php +++ b/src/TrackingLinks/TrackingLinkListResponse/Data/List_/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse\Data\List_; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListResponse/_Meta.php b/src/TrackingLinks/TrackingLinkListResponse/_Meta.php index fc126827..29f238dc 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/_Meta.php +++ b/src/TrackingLinks/TrackingLinkListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Cache.php b/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Cache.php index 281094f9..20223ae9 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Credits.php b/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Credits.php index ea76af83..89d98668 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/TrackingLinkListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListResponse/_Meta/_RateLimits.php b/src/TrackingLinks/TrackingLinkListResponse/_Meta/_RateLimits.php index 96dceb29..c2df4138 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/TrackingLinkListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListResponse/_Pagination.php b/src/TrackingLinks/TrackingLinkListResponse/_Pagination.php index e9c68fe4..d3c039bf 100644 --- a/src/TrackingLinks/TrackingLinkListResponse/_Pagination.php +++ b/src/TrackingLinks/TrackingLinkListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/TrackingLinks/TrackingLinkListSpendersParams.php b/src/TrackingLinks/TrackingLinkListSpendersParams.php index b1724fde..1c78d636 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersParams.php +++ b/src/TrackingLinks/TrackingLinkListSpendersParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get list of spenders who made purchases through a Tracking Link. * - * @see Onlyfansapi\Services\TrackingLinksService::listSpenders() + * @see OnlyFansAPI\Services\TrackingLinksService::listSpenders() * * @phpstan-type TrackingLinkListSpendersParamsShape = array{ * account: string, limit?: int|null, minSpend?: float|null, offset?: int|null diff --git a/src/TrackingLinks/TrackingLinkListSpendersResponse.php b/src/TrackingLinks/TrackingLinkListSpendersResponse.php index 993db8a0..4e656f9d 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersResponse.php +++ b/src/TrackingLinks/TrackingLinkListSpendersResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\Data * * @phpstan-type TrackingLinkListSpendersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/TrackingLinks/TrackingLinkListSpendersResponse/Data.php b/src/TrackingLinks/TrackingLinkListSpendersResponse/Data.php index 1fa58e7f..fb025532 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersResponse/Data.php +++ b/src/TrackingLinks/TrackingLinkListSpendersResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\Data\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\Data\Revenue; /** - * @phpstan-import-type RevenueShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\Data\Revenue + * @phpstan-import-type RevenueShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\Data\Revenue * * @phpstan-type DataShape = array{ * onlyfansID?: string|null, diff --git a/src/TrackingLinks/TrackingLinkListSpendersResponse/Data/Revenue.php b/src/TrackingLinks/TrackingLinkListSpendersResponse/Data/Revenue.php index 923737e7..703eadbb 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersResponse/Data/Revenue.php +++ b/src/TrackingLinks/TrackingLinkListSpendersResponse/Data/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta.php b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta.php index f1efcc5a..1d45402f 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta.php +++ b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Cache.php b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Cache.php index 98e64b9e..8e4c867a 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Credits.php b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Credits.php index 55881cd5..8c3ac7e3 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_RateLimits.php b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_RateLimits.php index 6d3949ed..3e0aa908 100644 --- a/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/TrackingLinkListSpendersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListSubscribersParams.php b/src/TrackingLinks/TrackingLinkListSubscribersParams.php index 39ddb5b5..b29de0c7 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersParams.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get list of subscribers who joined through a Tracking Link. * - * @see Onlyfansapi\Services\TrackingLinksService::listSubscribers() + * @see OnlyFansAPI\Services\TrackingLinksService::listSubscribers() * * @phpstan-type TrackingLinkListSubscribersParamsShape = array{ * account: string, limit: int, offset: int diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse.php index 04b5db2a..217ca9e4 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data * * @phpstan-type TrackingLinkListSubscribersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data.php index 07dd0444..609a3922 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null, marker?: int|null diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_.php index 7b6d9a79..5a5502a5 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_\AvatarThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_\AvatarThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_\AvatarThumbs * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_/AvatarThumbs.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_/AvatarThumbs.php index 8a92d7bb..0f10e895 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_/AvatarThumbs.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta.php index ed45fe7d..15fc5336 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Cache.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Cache.php index d42fdbdd..d056dbcf 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Credits.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Credits.php index 40865063..9b17ba44 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_RateLimits.php b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_RateLimits.php index d001eeeb..5dfc196f 100644 --- a/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/TrackingLinkListSubscribersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkNewResponse.php b/src/TrackingLinks/TrackingLinkNewResponse.php index a44bbb46..c5314193 100644 --- a/src/TrackingLinks/TrackingLinkNewResponse.php +++ b/src/TrackingLinks/TrackingLinkNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\Data * * @phpstan-type TrackingLinkNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/TrackingLinks/TrackingLinkNewResponse/Data.php b/src/TrackingLinks/TrackingLinkNewResponse/Data.php index 9a22e33e..cc64268d 100644 --- a/src/TrackingLinks/TrackingLinkNewResponse/Data.php +++ b/src/TrackingLinks/TrackingLinkNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkNewResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/TrackingLinks/TrackingLinkNewResponse/_Meta.php b/src/TrackingLinks/TrackingLinkNewResponse/_Meta.php index 9ef6dff1..fbe9004e 100644 --- a/src/TrackingLinks/TrackingLinkNewResponse/_Meta.php +++ b/src/TrackingLinks/TrackingLinkNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkNewResponse; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta\_Cache; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta\_Credits; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta\_Cache; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta\_Credits; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Cache.php b/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Cache.php index 64bcc679..de5bb5b3 100644 --- a/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Cache.php +++ b/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Credits.php b/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Credits.php index 286b6fbd..b7c5c18e 100644 --- a/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Credits.php +++ b/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_RateLimits.php b/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_RateLimits.php index 1c574cd7..ab4faefa 100644 --- a/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_RateLimits.php +++ b/src/TrackingLinks/TrackingLinkNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks\TrackingLinkNewResponse\_Meta; +namespace OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrackingLinks/TrackingLinkRetrieveParams.php b/src/TrackingLinks/TrackingLinkRetrieveParams.php index 481e71ca..56bebedd 100644 --- a/src/TrackingLinks/TrackingLinkRetrieveParams.php +++ b/src/TrackingLinks/TrackingLinkRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrackingLinks; +namespace OnlyFansAPI\TrackingLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get individual Tracking Link details and it's revenue data. * - * @see Onlyfansapi\Services\TrackingLinksService::retrieve() + * @see OnlyFansAPI\Services\TrackingLinksService::retrieve() * * @phpstan-type TrackingLinkRetrieveParamsShape = array{account: string} */ diff --git a/src/Transactions/TransactionListParams.php b/src/Transactions/TransactionListParams.php index a3d4377d..5f26cff9 100644 --- a/src/Transactions/TransactionListParams.php +++ b/src/Transactions/TransactionListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions; +namespace OnlyFansAPI\Transactions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get a paginated list of transactions for an Account. Newest transactions are first. You can filter by transaction type and tips source. * - * @see Onlyfansapi\Services\TransactionsService::list() + * @see OnlyFansAPI\Services\TransactionsService::list() * * @phpstan-type TransactionListParamsShape = array{ * limit?: string|null, @@ -41,7 +41,7 @@ final class TransactionListParams implements BaseModel public ?string $marker; /** - * The start date for transactions list. Default: `-30days`. + * The start date for the transactions list. Defaults to 30 days ago. */ #[Optional] public ?string $startDate; @@ -109,7 +109,7 @@ public function withMarker(string $marker): self } /** - * The start date for transactions list. Default: `-30days`. + * The start date for the transactions list. Defaults to 30 days ago. */ public function withStartDate(string $startDate): self { diff --git a/src/Transactions/TransactionListResponse.php b/src/Transactions/TransactionListResponse.php index 73ad5793..2434cf73 100644 --- a/src/Transactions/TransactionListResponse.php +++ b/src/Transactions/TransactionListResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions; +namespace OnlyFansAPI\Transactions; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Transactions\TransactionListResponse\_Meta; -use Onlyfansapi\Transactions\TransactionListResponse\_Pagination; -use Onlyfansapi\Transactions\TransactionListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Transactions\TransactionListResponse\_Meta; +use OnlyFansAPI\Transactions\TransactionListResponse\_Pagination; +use OnlyFansAPI\Transactions\TransactionListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Transactions\TransactionListResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\Transactions\TransactionListResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\Transactions\TransactionListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Transactions\TransactionListResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\Transactions\TransactionListResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\Transactions\TransactionListResponse\Data * * @phpstan-type TransactionListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/Transactions/TransactionListResponse/Data.php b/src/Transactions/TransactionListResponse/Data.php index f4f9b52c..e331f4d9 100644 --- a/src/Transactions/TransactionListResponse/Data.php +++ b/src/Transactions/TransactionListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse; +namespace OnlyFansAPI\Transactions\TransactionListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Transactions\TransactionListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Transactions\TransactionListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\Transactions\TransactionListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\Transactions\TransactionListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, diff --git a/src/Transactions/TransactionListResponse/Data/List_.php b/src/Transactions/TransactionListResponse/Data/List_.php index fe6641cc..77021e14 100644 --- a/src/Transactions/TransactionListResponse/Data/List_.php +++ b/src/Transactions/TransactionListResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse\Data; +namespace OnlyFansAPI\Transactions\TransactionListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Transactions\TransactionListResponse\Data\List_\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Transactions\TransactionListResponse\Data\List_\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\Transactions\TransactionListResponse\Data\List_\User + * @phpstan-import-type UserShape from \OnlyFansAPI\Transactions\TransactionListResponse\Data\List_\User * * @phpstan-type ListShape = array{ * id?: string|null, diff --git a/src/Transactions/TransactionListResponse/Data/List_/User.php b/src/Transactions/TransactionListResponse/Data/List_/User.php index 347a3275..516925aa 100644 --- a/src/Transactions/TransactionListResponse/Data/List_/User.php +++ b/src/Transactions/TransactionListResponse/Data/List_/User.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse\Data\List_; +namespace OnlyFansAPI\Transactions\TransactionListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Transactions\TransactionListResponse\Data\List_\User\AvatarThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Transactions\TransactionListResponse\Data\List_\User\AvatarThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Transactions\TransactionListResponse\Data\List_\User\AvatarThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Transactions\TransactionListResponse\Data\List_\User\AvatarThumbs * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/Transactions/TransactionListResponse/Data/List_/User/AvatarThumbs.php b/src/Transactions/TransactionListResponse/Data/List_/User/AvatarThumbs.php index df6efa4e..5fd3433d 100644 --- a/src/Transactions/TransactionListResponse/Data/List_/User/AvatarThumbs.php +++ b/src/Transactions/TransactionListResponse/Data/List_/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse\Data\List_\User; +namespace OnlyFansAPI\Transactions\TransactionListResponse\Data\List_\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Transactions/TransactionListResponse/_Meta.php b/src/Transactions/TransactionListResponse/_Meta.php index e7f4617a..ab83cd43 100644 --- a/src/Transactions/TransactionListResponse/_Meta.php +++ b/src/Transactions/TransactionListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse; +namespace OnlyFansAPI\Transactions\TransactionListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Transactions\TransactionListResponse\_Meta\_Cache; -use Onlyfansapi\Transactions\TransactionListResponse\_Meta\_Credits; -use Onlyfansapi\Transactions\TransactionListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Transactions\TransactionListResponse\_Meta\_Cache; +use OnlyFansAPI\Transactions\TransactionListResponse\_Meta\_Credits; +use OnlyFansAPI\Transactions\TransactionListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Transactions\TransactionListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Transactions\TransactionListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Transactions\TransactionListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Transactions\TransactionListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Transactions\TransactionListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Transactions\TransactionListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Transactions/TransactionListResponse/_Meta/_Cache.php b/src/Transactions/TransactionListResponse/_Meta/_Cache.php index d327ed22..516ace40 100644 --- a/src/Transactions/TransactionListResponse/_Meta/_Cache.php +++ b/src/Transactions/TransactionListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse\_Meta; +namespace OnlyFansAPI\Transactions\TransactionListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Transactions/TransactionListResponse/_Meta/_Credits.php b/src/Transactions/TransactionListResponse/_Meta/_Credits.php index 7718f823..742aa3b9 100644 --- a/src/Transactions/TransactionListResponse/_Meta/_Credits.php +++ b/src/Transactions/TransactionListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse\_Meta; +namespace OnlyFansAPI\Transactions\TransactionListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Transactions/TransactionListResponse/_Meta/_RateLimits.php b/src/Transactions/TransactionListResponse/_Meta/_RateLimits.php index 942211de..9a71b27a 100644 --- a/src/Transactions/TransactionListResponse/_Meta/_RateLimits.php +++ b/src/Transactions/TransactionListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse\_Meta; +namespace OnlyFansAPI\Transactions\TransactionListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Transactions/TransactionListResponse/_Pagination.php b/src/Transactions/TransactionListResponse/_Pagination.php index 0cd2a389..ab9089fa 100644 --- a/src/Transactions/TransactionListResponse/_Pagination.php +++ b/src/Transactions/TransactionListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Transactions\TransactionListResponse; +namespace OnlyFansAPI\Transactions\TransactionListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/TrialLinks/Tags/TagAddParams.php b/src/TrialLinks/Tags/TagAddParams.php index 183dcaa5..49bfcdb0 100644 --- a/src/TrialLinks/Tags/TagAddParams.php +++ b/src/TrialLinks/Tags/TagAddParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags; +namespace OnlyFansAPI\TrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Add tags to a specific free trial link. Existing tags are preserved. This is a free endpoint. * - * @see Onlyfansapi\Services\TrialLinks\TagsService::add() + * @see OnlyFansAPI\Services\TrialLinks\TagsService::add() * * @phpstan-type TagAddParamsShape = array{account: string, tags: list} */ diff --git a/src/TrialLinks/Tags/TagAddResponse.php b/src/TrialLinks/Tags/TagAddResponse.php index db70f895..8d65894c 100644 --- a/src/TrialLinks/Tags/TagAddResponse.php +++ b/src/TrialLinks/Tags/TagAddResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags; +namespace OnlyFansAPI\TrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\Tags\TagAddResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\Tags\TagAddResponse\Data * * @phpstan-type TagAddResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrialLinks/Tags/TagAddResponse/Data.php b/src/TrialLinks/Tags/TagAddResponse/Data.php index 935a36c9..f930ac95 100644 --- a/src/TrialLinks/Tags/TagAddResponse/Data.php +++ b/src/TrialLinks/Tags/TagAddResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\TrialLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/TrialLinks/Tags/TagAddResponse/_Meta.php b/src/TrialLinks/Tags/TagAddResponse/_Meta.php index a57bec8e..a95ebe9a 100644 --- a/src/TrialLinks/Tags/TagAddResponse/_Meta.php +++ b/src/TrialLinks/Tags/TagAddResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagAddResponse; +namespace OnlyFansAPI\TrialLinks\Tags\TagAddResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/Tags/TagAddResponse/_Meta/_Cache.php b/src/TrialLinks/Tags/TagAddResponse/_Meta/_Cache.php index 3ef5144e..47fd21f4 100644 --- a/src/TrialLinks/Tags/TagAddResponse/_Meta/_Cache.php +++ b/src/TrialLinks/Tags/TagAddResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/Tags/TagAddResponse/_Meta/_Credits.php b/src/TrialLinks/Tags/TagAddResponse/_Meta/_Credits.php index 0d7017e0..5fe945cb 100644 --- a/src/TrialLinks/Tags/TagAddResponse/_Meta/_Credits.php +++ b/src/TrialLinks/Tags/TagAddResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php b/src/TrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php index 5a0cd633..cd482ed7 100644 --- a/src/TrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/Tags/TagAddResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagAddResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagAddResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/Tags/TagListParams.php b/src/TrialLinks/Tags/TagListParams.php index fb9cfc4c..9d93c648 100644 --- a/src/TrialLinks/Tags/TagListParams.php +++ b/src/TrialLinks/Tags/TagListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags; +namespace OnlyFansAPI\TrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get tags for a specific free trial link. This is a free endpoint. * - * @see Onlyfansapi\Services\TrialLinks\TagsService::list() + * @see OnlyFansAPI\Services\TrialLinks\TagsService::list() * * @phpstan-type TagListParamsShape = array{account: string} */ diff --git a/src/TrialLinks/Tags/TagListResponse.php b/src/TrialLinks/Tags/TagListResponse.php index 0faf05e0..b548d0d6 100644 --- a/src/TrialLinks/Tags/TagListResponse.php +++ b/src/TrialLinks/Tags/TagListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags; +namespace OnlyFansAPI\TrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\TrialLinks\Tags\TagListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\Tags\TagListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\Tags\TagListResponse\Data * * @phpstan-type TagListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrialLinks/Tags/TagListResponse/Data.php b/src/TrialLinks/Tags/TagListResponse/Data.php index 00567ddd..1538e6c0 100644 --- a/src/TrialLinks/Tags/TagListResponse/Data.php +++ b/src/TrialLinks/Tags/TagListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagListResponse; +namespace OnlyFansAPI\TrialLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/TrialLinks/Tags/TagListResponse/_Meta.php b/src/TrialLinks/Tags/TagListResponse/_Meta.php index 7e443c09..0f2d1bb4 100644 --- a/src/TrialLinks/Tags/TagListResponse/_Meta.php +++ b/src/TrialLinks/Tags/TagListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagListResponse; +namespace OnlyFansAPI\TrialLinks\Tags\TagListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/Tags/TagListResponse/_Meta/_Cache.php b/src/TrialLinks/Tags/TagListResponse/_Meta/_Cache.php index c7506228..8f3a4cf8 100644 --- a/src/TrialLinks/Tags/TagListResponse/_Meta/_Cache.php +++ b/src/TrialLinks/Tags/TagListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/Tags/TagListResponse/_Meta/_Credits.php b/src/TrialLinks/Tags/TagListResponse/_Meta/_Credits.php index 7098d6ac..d38d64c2 100644 --- a/src/TrialLinks/Tags/TagListResponse/_Meta/_Credits.php +++ b/src/TrialLinks/Tags/TagListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php b/src/TrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php index 54552bdf..603cf700 100644 --- a/src/TrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/Tags/TagListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagListResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/Tags/TagRemoveParams.php b/src/TrialLinks/Tags/TagRemoveParams.php index 35d9a219..53491c03 100644 --- a/src/TrialLinks/Tags/TagRemoveParams.php +++ b/src/TrialLinks/Tags/TagRemoveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags; +namespace OnlyFansAPI\TrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove tags from a specific free trial link. This is a free endpoint. * - * @see Onlyfansapi\Services\TrialLinks\TagsService::remove() + * @see OnlyFansAPI\Services\TrialLinks\TagsService::remove() * * @phpstan-type TagRemoveParamsShape = array{account: string, tags: list} */ diff --git a/src/TrialLinks/Tags/TagRemoveResponse.php b/src/TrialLinks/Tags/TagRemoveResponse.php index 476b4f61..9f3d6aa7 100644 --- a/src/TrialLinks/Tags/TagRemoveResponse.php +++ b/src/TrialLinks/Tags/TagRemoveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags; +namespace OnlyFansAPI\TrialLinks\Tags; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\Data * * @phpstan-type TagRemoveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrialLinks/Tags/TagRemoveResponse/Data.php b/src/TrialLinks/Tags/TagRemoveResponse/Data.php index c87f1de9..c341c097 100644 --- a/src/TrialLinks/Tags/TagRemoveResponse/Data.php +++ b/src/TrialLinks/Tags/TagRemoveResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{tags?: list|null} diff --git a/src/TrialLinks/Tags/TagRemoveResponse/_Meta.php b/src/TrialLinks/Tags/TagRemoveResponse/_Meta.php index 50ec32b6..aa0c5e7d 100644 --- a/src/TrialLinks/Tags/TagRemoveResponse/_Meta.php +++ b/src/TrialLinks/Tags/TagRemoveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagRemoveResponse; +namespace OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php b/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php index aa2c3a93..a21d42ad 100644 --- a/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php +++ b/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php b/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php index 9246302e..5ea71eb7 100644 --- a/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php +++ b/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php b/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php index 85be424c..4eff5bc4 100644 --- a/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/Tags/TagRemoveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\Tags\TagRemoveResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/TrialLinkCreateParams.php b/src/TrialLinks/TrialLinkCreateParams.php index fcb21f75..36c6a018 100644 --- a/src/TrialLinks/TrialLinkCreateParams.php +++ b/src/TrialLinks/TrialLinkCreateParams.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\Duration; -use Onlyfansapi\TrialLinks\TrialLinkCreateParams\OfferLimit; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\Duration; +use OnlyFansAPI\TrialLinks\TrialLinkCreateParams\OfferLimit; /** * Create a new free trial link for the account. * - * @see Onlyfansapi\Services\TrialLinksService::create() + * @see OnlyFansAPI\Services\TrialLinksService::create() * * @phpstan-type TrialLinkCreateParamsShape = array{ * duration: Duration|value-of, diff --git a/src/TrialLinks/TrialLinkCreateParams/Duration.php b/src/TrialLinks/TrialLinkCreateParams/Duration.php index f85cd3c0..800ecfd3 100644 --- a/src/TrialLinks/TrialLinkCreateParams/Duration.php +++ b/src/TrialLinks/TrialLinkCreateParams/Duration.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkCreateParams; +namespace OnlyFansAPI\TrialLinks\TrialLinkCreateParams; /** * The duration of the free trial **in days**. Must be **1**, **3**, **7**, **14**, **30** (1 month), **90** (3 months), **180** (6 months), or **360** (12 months). diff --git a/src/TrialLinks/TrialLinkCreateParams/OfferLimit.php b/src/TrialLinks/TrialLinkCreateParams/OfferLimit.php index 022c5fe7..492e02ad 100644 --- a/src/TrialLinks/TrialLinkCreateParams/OfferLimit.php +++ b/src/TrialLinks/TrialLinkCreateParams/OfferLimit.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkCreateParams; +namespace OnlyFansAPI\TrialLinks\TrialLinkCreateParams; /** * How many people can use this offer. Must either be **0** (for no limit), or a number between **1**-**10**, **50**, or **100**. diff --git a/src/TrialLinks/TrialLinkDeleteParams.php b/src/TrialLinks/TrialLinkDeleteParams.php index 82ab707f..22adb826 100644 --- a/src/TrialLinks/TrialLinkDeleteParams.php +++ b/src/TrialLinks/TrialLinkDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a free trial link by its ID. * - * @see Onlyfansapi\Services\TrialLinksService::delete() + * @see OnlyFansAPI\Services\TrialLinksService::delete() * * @phpstan-type TrialLinkDeleteParamsShape = array{account: string} */ diff --git a/src/TrialLinks/TrialLinkDeleteResponse.php b/src/TrialLinks/TrialLinkDeleteResponse.php index fab5d0c4..9b10e934 100644 --- a/src/TrialLinks/TrialLinkDeleteResponse.php +++ b/src/TrialLinks/TrialLinkDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\Data * * @phpstan-type TrialLinkDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrialLinks/TrialLinkDeleteResponse/Data.php b/src/TrialLinks/TrialLinkDeleteResponse/Data.php index 76517144..9a8fee12 100644 --- a/src/TrialLinks/TrialLinkDeleteResponse/Data.php +++ b/src/TrialLinks/TrialLinkDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkDeleteResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/TrialLinks/TrialLinkDeleteResponse/_Meta.php b/src/TrialLinks/TrialLinkDeleteResponse/_Meta.php index 0d4b0ac0..ac080ee5 100644 --- a/src/TrialLinks/TrialLinkDeleteResponse/_Meta.php +++ b/src/TrialLinks/TrialLinkDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkDeleteResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Cache.php b/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Cache.php index d25f66ad..e5c3f86a 100644 --- a/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Cache.php +++ b/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Credits.php b/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Credits.php index 218cb284..fa1747e3 100644 --- a/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Credits.php +++ b/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_RateLimits.php b/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_RateLimits.php index 086de09a..5e8471bd 100644 --- a/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/TrialLinkDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkDeleteResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/TrialLinkGetResponse.php b/src/TrialLinks/TrialLinkGetResponse.php index 46e54e6a..aa73afc1 100644 --- a/src/TrialLinks/TrialLinkGetResponse.php +++ b/src/TrialLinks/TrialLinkGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data * * @phpstan-type TrialLinkGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrialLinks/TrialLinkGetResponse/Data.php b/src/TrialLinks/TrialLinkGetResponse/Data.php index b840b07a..4b23ecf5 100644 --- a/src/TrialLinks/TrialLinkGetResponse/Data.php +++ b/src/TrialLinks/TrialLinkGetResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Cost; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Links; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Cost; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Links; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Revenue; /** - * @phpstan-import-type CostShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Cost - * @phpstan-import-type LinksShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Links - * @phpstan-import-type RevenueShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Revenue + * @phpstan-import-type CostShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Cost + * @phpstan-import-type LinksShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Links + * @phpstan-import-type RevenueShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Revenue * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/TrialLinks/TrialLinkGetResponse/Data/Cost.php b/src/TrialLinks/TrialLinkGetResponse/Data/Cost.php index d6be4ce2..66562e66 100644 --- a/src/TrialLinks/TrialLinkGetResponse/Data/Cost.php +++ b/src/TrialLinks/TrialLinkGetResponse/Data/Cost.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type CostShape = array{ diff --git a/src/TrialLinks/TrialLinkGetResponse/Data/Links.php b/src/TrialLinks/TrialLinkGetResponse/Data/Links.php index 7a84bb19..a94cfe9c 100644 --- a/src/TrialLinks/TrialLinkGetResponse/Data/Links.php +++ b/src/TrialLinks/TrialLinkGetResponse/Data/Links.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Links\Related; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Links\Related; /** - * @phpstan-import-type RelatedShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Links\Related + * @phpstan-import-type RelatedShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Links\Related * * @phpstan-type LinksShape = array{related?: null|Related|RelatedShape} */ diff --git a/src/TrialLinks/TrialLinkGetResponse/Data/Links/Related.php b/src/TrialLinks/TrialLinkGetResponse/Data/Links/Related.php index 2c756d75..468a66fe 100644 --- a/src/TrialLinks/TrialLinkGetResponse/Data/Links/Related.php +++ b/src/TrialLinks/TrialLinkGetResponse/Data/Links/Related.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data\Links; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data\Links; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RelatedShape = array{subscribers?: string|null} diff --git a/src/TrialLinks/TrialLinkGetResponse/Data/Revenue.php b/src/TrialLinks/TrialLinkGetResponse/Data/Revenue.php index 8dc866b9..22845762 100644 --- a/src/TrialLinks/TrialLinkGetResponse/Data/Revenue.php +++ b/src/TrialLinks/TrialLinkGetResponse/Data/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/TrialLinks/TrialLinkGetResponse/_Meta.php b/src/TrialLinks/TrialLinkGetResponse/_Meta.php index f60bd5a6..183f3f59 100644 --- a/src/TrialLinks/TrialLinkGetResponse/_Meta.php +++ b/src/TrialLinks/TrialLinkGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/TrialLinkGetResponse/_Meta/_Cache.php b/src/TrialLinks/TrialLinkGetResponse/_Meta/_Cache.php index 11800887..d3f2a532 100644 --- a/src/TrialLinks/TrialLinkGetResponse/_Meta/_Cache.php +++ b/src/TrialLinks/TrialLinkGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/TrialLinkGetResponse/_Meta/_Credits.php b/src/TrialLinks/TrialLinkGetResponse/_Meta/_Credits.php index 657dd87f..acbb648b 100644 --- a/src/TrialLinks/TrialLinkGetResponse/_Meta/_Credits.php +++ b/src/TrialLinks/TrialLinkGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/TrialLinkGetResponse/_Meta/_RateLimits.php b/src/TrialLinks/TrialLinkGetResponse/_Meta/_RateLimits.php index be0f7512..34243f30 100644 --- a/src/TrialLinks/TrialLinkGetResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/TrialLinkGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/TrialLinkGetStatsResponse.php b/src/TrialLinks/TrialLinkGetStatsResponse.php index f519ec9f..8629b931 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data * * @phpstan-type TrialLinkGetStatsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrialLinks/TrialLinkGetStatsResponse/Data.php b/src/TrialLinks/TrialLinkGetStatsResponse/Data.php index a51ac171..13da99d1 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse/Data.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse/Data.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data\DailyMetric; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data\MonthlyMetric; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data\Summary; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data\DailyMetric; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data\MonthlyMetric; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data\Summary; /** - * @phpstan-import-type DailyMetricShape from \Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data\DailyMetric - * @phpstan-import-type MonthlyMetricShape from \Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data\MonthlyMetric - * @phpstan-import-type SummaryShape from \Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data\Summary + * @phpstan-import-type DailyMetricShape from \OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data\DailyMetric + * @phpstan-import-type MonthlyMetricShape from \OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data\MonthlyMetric + * @phpstan-import-type SummaryShape from \OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data\Summary * * @phpstan-type DataShape = array{ * dailyMetrics?: list|null, diff --git a/src/TrialLinks/TrialLinkGetStatsResponse/Data/DailyMetric.php b/src/TrialLinks/TrialLinkGetStatsResponse/Data/DailyMetric.php index e4bc9568..8a6f0a62 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse/Data/DailyMetric.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse/Data/DailyMetric.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DailyMetricShape = array{ diff --git a/src/TrialLinks/TrialLinkGetStatsResponse/Data/MonthlyMetric.php b/src/TrialLinks/TrialLinkGetStatsResponse/Data/MonthlyMetric.php index 99a0dc74..911d70e1 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse/Data/MonthlyMetric.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse/Data/MonthlyMetric.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type MonthlyMetricShape = array{ diff --git a/src/TrialLinks/TrialLinkGetStatsResponse/Data/Summary.php b/src/TrialLinks/TrialLinkGetStatsResponse/Data/Summary.php index 03ba3fef..75a56658 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse/Data/Summary.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse/Data/Summary.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SummaryShape = array{ diff --git a/src/TrialLinks/TrialLinkGetStatsResponse/_Meta.php b/src/TrialLinks/TrialLinkGetStatsResponse/_Meta.php index 8e52f02f..f212ccfe 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse/_Meta.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Cache.php b/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Cache.php index 521c51e5..4ea08dde 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Cache.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Credits.php b/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Credits.php index 6bdd6faf..ada7ae52 100644 --- a/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Credits.php +++ b/src/TrialLinks/TrialLinkGetStatsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/TrialLinkListParams.php b/src/TrialLinks/TrialLinkListParams.php index 81ee826f..13142b83 100644 --- a/src/TrialLinks/TrialLinkListParams.php +++ b/src/TrialLinks/TrialLinkListParams.php @@ -2,26 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Field; -use Onlyfansapi\TrialLinks\TrialLinkListParams\Sort; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Field; +use OnlyFansAPI\TrialLinks\TrialLinkListParams\Sort; /** * List all free trial links for the account, including the details and statistics. * - * @see Onlyfansapi\Services\TrialLinksService::list() + * @see OnlyFansAPI\Services\TrialLinksService::list() * * @phpstan-type TrialLinkListParamsShape = array{ - * limit: int, - * offset: int, + * endDate?: string|null, * field?: null|Field|value-of, + * limit?: int|null, + * offset?: int|null, * sort?: null|Sort|value-of, + * startDate?: string|null, * synchronous?: bool|null, * } */ @@ -32,53 +33,51 @@ final class TrialLinkListParams implements BaseModel use SdkParams; /** - * The number of trial links to return. Default `10`. + * The end date for trial links. Keep empty to get all. Must not be greater than 255 characters. */ - #[Required] - public int $limit; - - /** - * The offset used for pagination. Default `0`. - */ - #[Required] - public int $offset; + #[Optional(nullable: true)] + public ?string $endDate; /** - * Sort the results by a field. Default `create_date`. + * Field to sort by. Default `create_date`. * * @var value-of|null $field */ - #[Optional(enum: Field::class, nullable: true)] + #[Optional(enum: Field::class)] public ?string $field; /** - * Sort the results. Default `desc`. + * The number of trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. + */ + #[Optional] + public ?int $limit; + + /** + * The offset used for pagination. Default `0`. Must be at least 0. + */ + #[Optional] + public ?int $offset; + + /** + * Sort direction. Default `desc`. * * @var value-of|null $sort */ - #[Optional(enum: Sort::class, nullable: true)] + #[Optional(enum: Sort::class)] public ?string $sort; /** - * Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false`. + * The start date for trial links. Keep empty to get all. Must not be greater than 255 characters. */ #[Optional(nullable: true)] - public ?bool $synchronous; + public ?string $startDate; /** - * `new TrialLinkListParams()` is missing required properties by the API. - * - * To enforce required parameters use - * ``` - * TrialLinkListParams::with(limit: ..., offset: ...) - * ``` - * - * Otherwise ensure the following setters are called - * - * ``` - * (new TrialLinkListParams)->withLimit(...)->withOffset(...) - * ``` + * Wait for revenue calculation instead of processing it in the background. */ + #[Optional] + public ?bool $synchronous; + public function __construct() { $this->initialize(); @@ -93,26 +92,53 @@ public function __construct() * @param Sort|value-of|null $sort */ public static function with( - int $limit, - int $offset, + ?string $endDate = null, Field|string|null $field = null, + ?int $limit = null, + ?int $offset = null, Sort|string|null $sort = null, + ?string $startDate = null, ?bool $synchronous = null, ): self { $self = new self; - $self['limit'] = $limit; - $self['offset'] = $offset; - + null !== $endDate && $self['endDate'] = $endDate; null !== $field && $self['field'] = $field; + null !== $limit && $self['limit'] = $limit; + null !== $offset && $self['offset'] = $offset; null !== $sort && $self['sort'] = $sort; + null !== $startDate && $self['startDate'] = $startDate; null !== $synchronous && $self['synchronous'] = $synchronous; return $self; } /** - * The number of trial links to return. Default `10`. + * The end date for trial links. Keep empty to get all. Must not be greater than 255 characters. + */ + public function withEndDate(?string $endDate): self + { + $self = clone $this; + $self['endDate'] = $endDate; + + return $self; + } + + /** + * Field to sort by. Default `create_date`. + * + * @param Field|value-of $field + */ + public function withField(Field|string $field): self + { + $self = clone $this; + $self['field'] = $field; + + return $self; + } + + /** + * The number of trial links to return. Default `10`. Must be at least 1. Must not be greater than 100. */ public function withLimit(int $limit): self { @@ -123,7 +149,7 @@ public function withLimit(int $limit): self } /** - * The offset used for pagination. Default `0`. + * The offset used for pagination. Default `0`. Must be at least 0. */ public function withOffset(int $offset): self { @@ -134,35 +160,33 @@ public function withOffset(int $offset): self } /** - * Sort the results by a field. Default `create_date`. + * Sort direction. Default `desc`. * - * @param Field|value-of|null $field + * @param Sort|value-of $sort */ - public function withField(Field|string|null $field): self + public function withSort(Sort|string $sort): self { $self = clone $this; - $self['field'] = $field; + $self['sort'] = $sort; return $self; } /** - * Sort the results. Default `desc`. - * - * @param Sort|value-of|null $sort + * The start date for trial links. Keep empty to get all. Must not be greater than 255 characters. */ - public function withSort(Sort|string|null $sort): self + public function withStartDate(?string $startDate): self { $self = clone $this; - $self['sort'] = $sort; + $self['startDate'] = $startDate; return $self; } /** - * Wait for the revenue data to finish processing, instead of processing in the background. **Will result in longer response times, use with caution**. Default `false`. + * Wait for revenue calculation instead of processing it in the background. */ - public function withSynchronous(?bool $synchronous): self + public function withSynchronous(bool $synchronous): self { $self = clone $this; $self['synchronous'] = $synchronous; diff --git a/src/TrialLinks/TrialLinkListParams/Field.php b/src/TrialLinks/TrialLinkListParams/Field.php index ec7bab27..53c22afe 100644 --- a/src/TrialLinks/TrialLinkListParams/Field.php +++ b/src/TrialLinks/TrialLinkListParams/Field.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListParams; +namespace OnlyFansAPI\TrialLinks\TrialLinkListParams; /** - * Sort the results by a field. Default `create_date`. + * Field to sort by. Default `create_date`. */ enum Field: string { diff --git a/src/TrialLinks/TrialLinkListParams/Sort.php b/src/TrialLinks/TrialLinkListParams/Sort.php index 0f05b02c..9000fa98 100644 --- a/src/TrialLinks/TrialLinkListParams/Sort.php +++ b/src/TrialLinks/TrialLinkListParams/Sort.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListParams; +namespace OnlyFansAPI\TrialLinks\TrialLinkListParams; /** - * Sort the results. Default `desc`. + * Sort direction. Default `desc`. */ enum Sort: string { - case DESC = 'desc'; - case ASC = 'asc'; + + case DESC = 'desc'; } diff --git a/src/TrialLinks/TrialLinkListResponse.php b/src/TrialLinks/TrialLinkListResponse.php index 89bc3e05..85c9b525 100644 --- a/src/TrialLinks/TrialLinkListResponse.php +++ b/src/TrialLinks/TrialLinkListResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\_Pagination; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Pagination; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data * * @phpstan-type TrialLinkListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/TrialLinks/TrialLinkListResponse/Data.php b/src/TrialLinks/TrialLinkListResponse/Data.php index 10b97ad3..56116d93 100644 --- a/src/TrialLinks/TrialLinkListResponse/Data.php +++ b/src/TrialLinks/TrialLinkListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/TrialLinks/TrialLinkListResponse/Data/List_.php b/src/TrialLinks/TrialLinkListResponse/Data/List_.php index 06956721..2bcc6fc0 100644 --- a/src/TrialLinks/TrialLinkListResponse/Data/List_.php +++ b/src/TrialLinks/TrialLinkListResponse/Data/List_.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_\Links; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_\Links; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_\Revenue; /** - * @phpstan-import-type LinksShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_\Links - * @phpstan-import-type RevenueShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_\Revenue + * @phpstan-import-type LinksShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_\Links + * @phpstan-import-type RevenueShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_\Revenue * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/TrialLinks/TrialLinkListResponse/Data/List_/Links.php b/src/TrialLinks/TrialLinkListResponse/Data/List_/Links.php index d48db56b..ae89563f 100644 --- a/src/TrialLinks/TrialLinkListResponse/Data/List_/Links.php +++ b/src/TrialLinks/TrialLinkListResponse/Data/List_/Links.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_\Links\Related; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_\Links\Related; /** - * @phpstan-import-type RelatedShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_\Links\Related + * @phpstan-import-type RelatedShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_\Links\Related * * @phpstan-type LinksShape = array{related?: null|Related|RelatedShape} */ diff --git a/src/TrialLinks/TrialLinkListResponse/Data/List_/Links/Related.php b/src/TrialLinks/TrialLinkListResponse/Data/List_/Links/Related.php index bb3bb437..d0f803a8 100644 --- a/src/TrialLinks/TrialLinkListResponse/Data/List_/Links/Related.php +++ b/src/TrialLinks/TrialLinkListResponse/Data/List_/Links/Related.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_\Links; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_\Links; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RelatedShape = array{subscribers?: string|null} diff --git a/src/TrialLinks/TrialLinkListResponse/Data/List_/Revenue.php b/src/TrialLinks/TrialLinkListResponse/Data/List_/Revenue.php index bc343907..769c6559 100644 --- a/src/TrialLinks/TrialLinkListResponse/Data/List_/Revenue.php +++ b/src/TrialLinks/TrialLinkListResponse/Data/List_/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/TrialLinks/TrialLinkListResponse/_Meta.php b/src/TrialLinks/TrialLinkListResponse/_Meta.php index 6f1d6da2..fbce8561 100644 --- a/src/TrialLinks/TrialLinkListResponse/_Meta.php +++ b/src/TrialLinks/TrialLinkListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/TrialLinkListResponse/_Meta/_Cache.php b/src/TrialLinks/TrialLinkListResponse/_Meta/_Cache.php index 14db62dd..c19442d0 100644 --- a/src/TrialLinks/TrialLinkListResponse/_Meta/_Cache.php +++ b/src/TrialLinks/TrialLinkListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/TrialLinkListResponse/_Meta/_Credits.php b/src/TrialLinks/TrialLinkListResponse/_Meta/_Credits.php index 48c1c18f..b4583fbc 100644 --- a/src/TrialLinks/TrialLinkListResponse/_Meta/_Credits.php +++ b/src/TrialLinks/TrialLinkListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/TrialLinkListResponse/_Meta/_RateLimits.php b/src/TrialLinks/TrialLinkListResponse/_Meta/_RateLimits.php index 865a4359..241a5ac9 100644 --- a/src/TrialLinks/TrialLinkListResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/TrialLinkListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/TrialLinkListResponse/_Pagination.php b/src/TrialLinks/TrialLinkListResponse/_Pagination.php index c3219c34..5bc80410 100644 --- a/src/TrialLinks/TrialLinkListResponse/_Pagination.php +++ b/src/TrialLinks/TrialLinkListResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/TrialLinks/TrialLinkListSpendersParams.php b/src/TrialLinks/TrialLinkListSpendersParams.php index c630f3a9..c334e884 100644 --- a/src/TrialLinks/TrialLinkListSpendersParams.php +++ b/src/TrialLinks/TrialLinkListSpendersParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Only available if we already scraped subscribers and calculated revenue per fan. * - * @see Onlyfansapi\Services\TrialLinksService::listSpenders() + * @see OnlyFansAPI\Services\TrialLinksService::listSpenders() * * @phpstan-type TrialLinkListSpendersParamsShape = array{ * account: string, limit?: int|null, minSpend?: float|null, offset?: int|null diff --git a/src/TrialLinks/TrialLinkListSpendersResponse.php b/src/TrialLinks/TrialLinkListSpendersResponse.php index 8ba43ef4..468e1900 100644 --- a/src/TrialLinks/TrialLinkListSpendersResponse.php +++ b/src/TrialLinks/TrialLinkListSpendersResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\Data * * @phpstan-type TrialLinkListSpendersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/TrialLinks/TrialLinkListSpendersResponse/Data.php b/src/TrialLinks/TrialLinkListSpendersResponse/Data.php index 0727a7fc..a0649a51 100644 --- a/src/TrialLinks/TrialLinkListSpendersResponse/Data.php +++ b/src/TrialLinks/TrialLinkListSpendersResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\Data\Revenue; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\Data\Revenue; /** - * @phpstan-import-type RevenueShape from \Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\Data\Revenue + * @phpstan-import-type RevenueShape from \OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\Data\Revenue * * @phpstan-type DataShape = array{ * onlyfansID?: string|null, diff --git a/src/TrialLinks/TrialLinkListSpendersResponse/Data/Revenue.php b/src/TrialLinks/TrialLinkListSpendersResponse/Data/Revenue.php index 07869a7b..aaa4c413 100644 --- a/src/TrialLinks/TrialLinkListSpendersResponse/Data/Revenue.php +++ b/src/TrialLinks/TrialLinkListSpendersResponse/Data/Revenue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\Data; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type RevenueShape = array{ diff --git a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta.php b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta.php index fc10a078..386222f1 100644 --- a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta.php +++ b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Cache.php b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Cache.php index 82878e46..108c87b5 100644 --- a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Cache.php +++ b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Credits.php b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Credits.php index 983fd251..5ac86d17 100644 --- a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Credits.php +++ b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_RateLimits.php b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_RateLimits.php index 9546144f..90becc12 100644 --- a/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/TrialLinkListSpendersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/TrialLinkListSubscribersParams.php b/src/TrialLinks/TrialLinkListSubscribersParams.php index 8e7fa847..e5a4fb67 100644 --- a/src/TrialLinks/TrialLinkListSubscribersParams.php +++ b/src/TrialLinks/TrialLinkListSubscribersParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get list of subscribers who joined through a Free Trial Link. * - * @see Onlyfansapi\Services\TrialLinksService::listSubscribers() + * @see OnlyFansAPI\Services\TrialLinksService::listSubscribers() * * @phpstan-type TrialLinkListSubscribersParamsShape = array{ * account: string, limit: int, offset: int diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse.php b/src/TrialLinks/TrialLinkListSubscribersResponse.php index fa1c19c0..c4ff0744 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data * * @phpstan-type TrialLinkListSubscribersResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data.php index 0239e8ca..1c1fb87a 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_.php index 702fd713..ee797455 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderSize; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderThumbs; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\ListsState; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\PromoOffer; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderSize; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderThumbs; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\ListsState; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\PromoOffer; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\ListsState - * @phpstan-import-type PromoOfferShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\PromoOffer - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\ListsState + * @phpstan-import-type PromoOfferShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\PromoOffer + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/AvatarThumbs.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/AvatarThumbs.php index 331c72c5..2fab58e9 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/AvatarThumbs.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderSize.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderSize.php index 7953ed0f..1e389068 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderSize.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderThumbs.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderThumbs.php index 2eec3180..03aa66c7 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderThumbs.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/ListsState.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/ListsState.php index 603bd1a8..d581e72f 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/ListsState.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/PromoOffer.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/PromoOffer.php index 3355ec22..15c1396b 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/PromoOffer.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/PromoOffer.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PromoOfferShape = array{ diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData.php index 23bea5b5..2a0a6dea 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData/Subscribe.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData/Subscribe.php index 478a2e16..b822296e 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData/Subscribe.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData.php index cbec978c..48595a39 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData/Subscribe.php b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData/Subscribe.php index f05127a9..b4d4a5a0 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData/Subscribe.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/Data/List_/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\Data\List_\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta.php b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta.php index 6d679aed..6a9e245b 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Cache.php b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Cache.php index 1790094a..12a97bb8 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Cache.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Credits.php b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Credits.php index f4f72f69..6733c7cd 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Credits.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_RateLimits.php b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_RateLimits.php index ded461f0..5a48ede3 100644 --- a/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/TrialLinkListSubscribersResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/TrialLinkNewResponse.php b/src/TrialLinks/TrialLinkNewResponse.php index 4982845b..e3cda7e4 100644 --- a/src/TrialLinks/TrialLinkNewResponse.php +++ b/src/TrialLinks/TrialLinkNewResponse.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Pagination; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Pagination; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta - * @phpstan-import-type _PaginationShape from \Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Pagination - * @phpstan-import-type DataShape from \Onlyfansapi\TrialLinks\TrialLinkNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta + * @phpstan-import-type _PaginationShape from \OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Pagination + * @phpstan-import-type DataShape from \OnlyFansAPI\TrialLinks\TrialLinkNewResponse\Data * * @phpstan-type TrialLinkNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, diff --git a/src/TrialLinks/TrialLinkNewResponse/Data.php b/src/TrialLinks/TrialLinkNewResponse/Data.php index c9d2aee7..6b52761a 100644 --- a/src/TrialLinks/TrialLinkNewResponse/Data.php +++ b/src/TrialLinks/TrialLinkNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkNewResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/TrialLinks/TrialLinkNewResponse/_Meta.php b/src/TrialLinks/TrialLinkNewResponse/_Meta.php index bdd3867e..f4d1e91a 100644 --- a/src/TrialLinks/TrialLinkNewResponse/_Meta.php +++ b/src/TrialLinks/TrialLinkNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkNewResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta\_Cache; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta\_Credits; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta\_Cache; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta\_Credits; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/TrialLinks/TrialLinkNewResponse/_Meta/_Cache.php b/src/TrialLinks/TrialLinkNewResponse/_Meta/_Cache.php index f6a6c914..aa2dfe3b 100644 --- a/src/TrialLinks/TrialLinkNewResponse/_Meta/_Cache.php +++ b/src/TrialLinks/TrialLinkNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/TrialLinks/TrialLinkNewResponse/_Meta/_Credits.php b/src/TrialLinks/TrialLinkNewResponse/_Meta/_Credits.php index df569544..2975dec2 100644 --- a/src/TrialLinks/TrialLinkNewResponse/_Meta/_Credits.php +++ b/src/TrialLinks/TrialLinkNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/TrialLinks/TrialLinkNewResponse/_Meta/_RateLimits.php b/src/TrialLinks/TrialLinkNewResponse/_Meta/_RateLimits.php index 35105b5f..98ee4a8e 100644 --- a/src/TrialLinks/TrialLinkNewResponse/_Meta/_RateLimits.php +++ b/src/TrialLinks/TrialLinkNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkNewResponse\_Meta; +namespace OnlyFansAPI\TrialLinks\TrialLinkNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/TrialLinks/TrialLinkNewResponse/_Pagination.php b/src/TrialLinks/TrialLinkNewResponse/_Pagination.php index 3a6d885a..7988d35e 100644 --- a/src/TrialLinks/TrialLinkNewResponse/_Pagination.php +++ b/src/TrialLinks/TrialLinkNewResponse/_Pagination.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkNewResponse; +namespace OnlyFansAPI\TrialLinks\TrialLinkNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _PaginationShape = array{nextPage?: string|null} diff --git a/src/TrialLinks/TrialLinkRetrieveCohortArpsParams.php b/src/TrialLinks/TrialLinkRetrieveCohortArpsParams.php index 83f09fbd..6a45be18 100644 --- a/src/TrialLinks/TrialLinkRetrieveCohortArpsParams.php +++ b/src/TrialLinks/TrialLinkRetrieveCohortArpsParams.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\TrialLinks\TrialLinkRetrieveCohortArpsParams\RevenueBasis; /** * Get per-link time-to-profit cohort ARPS windows for a specific Free Trial Link. * - * @see Onlyfansapi\Services\TrialLinksService::retrieveCohortArps() + * @see OnlyFansAPI\Services\TrialLinksService::retrieveCohortArps() * * @phpstan-type TrialLinkRetrieveCohortArpsParamsShape = array{ * account: string, diff --git a/src/TrialLinks/TrialLinkRetrieveCohortArpsParams/RevenueBasis.php b/src/TrialLinks/TrialLinkRetrieveCohortArpsParams/RevenueBasis.php index 6efb8ed4..860d7921 100644 --- a/src/TrialLinks/TrialLinkRetrieveCohortArpsParams/RevenueBasis.php +++ b/src/TrialLinks/TrialLinkRetrieveCohortArpsParams/RevenueBasis.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks\TrialLinkRetrieveCohortArpsParams; +namespace OnlyFansAPI\TrialLinks\TrialLinkRetrieveCohortArpsParams; /** * Revenue basis. Defaults to `net`. diff --git a/src/TrialLinks/TrialLinkRetrieveParams.php b/src/TrialLinks/TrialLinkRetrieveParams.php index c51bcc61..f6c81253 100644 --- a/src/TrialLinks/TrialLinkRetrieveParams.php +++ b/src/TrialLinks/TrialLinkRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get individual Free Trial Link details and it's revenue data. * - * @see Onlyfansapi\Services\TrialLinksService::retrieve() + * @see OnlyFansAPI\Services\TrialLinksService::retrieve() * * @phpstan-type TrialLinkRetrieveParamsShape = array{account: string} */ diff --git a/src/TrialLinks/TrialLinkRetrieveStatsParams.php b/src/TrialLinks/TrialLinkRetrieveStatsParams.php index 22e2877d..3e57f4d4 100644 --- a/src/TrialLinks/TrialLinkRetrieveStatsParams.php +++ b/src/TrialLinks/TrialLinkRetrieveStatsParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\TrialLinks; +namespace OnlyFansAPI\TrialLinks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get dashboard-style summary plus daily and monthly metrics for a specific Free Trial Link. * - * @see Onlyfansapi\Services\TrialLinksService::retrieveStats() + * @see OnlyFansAPI\Services\TrialLinksService::retrieveStats() * * @phpstan-type TrialLinkRetrieveStatsParamsShape = array{ * account: string, dateEnd?: string|null, dateStart?: string|null diff --git a/src/UserLists/UserListCreateParams.php b/src/UserLists/UserListCreateParams.php index 4bb19fca..d2e0cd55 100644 --- a/src/UserLists/UserListCreateParams.php +++ b/src/UserLists/UserListCreateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a OnlyFans User List. * - * @see Onlyfansapi\Services\UserListsService::create() + * @see OnlyFansAPI\Services\UserListsService::create() * * @phpstan-type UserListCreateParamsShape = array{name: string} */ diff --git a/src/UserLists/UserListDeleteParams.php b/src/UserLists/UserListDeleteParams.php index b6eee84d..c88e64c7 100644 --- a/src/UserLists/UserListDeleteParams.php +++ b/src/UserLists/UserListDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Delete a OnlyFans User List. * - * @see Onlyfansapi\Services\UserListsService::delete() + * @see OnlyFansAPI\Services\UserListsService::delete() * * @phpstan-type UserListDeleteParamsShape = array{account: string} */ diff --git a/src/UserLists/UserListDeleteResponse.php b/src/UserLists/UserListDeleteResponse.php index 8ee71d83..e0a323d7 100644 --- a/src/UserLists/UserListDeleteResponse.php +++ b/src/UserLists/UserListDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListDeleteResponse\_Meta; -use Onlyfansapi\UserLists\UserListDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta; +use OnlyFansAPI\UserLists\UserListDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\UserListDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\UserListDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\UserListDeleteResponse\Data * * @phpstan-type UserListDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/UserListDeleteResponse/Data.php b/src/UserLists/UserListDeleteResponse/Data.php index b1aed18d..c3da94b8 100644 --- a/src/UserLists/UserListDeleteResponse/Data.php +++ b/src/UserLists/UserListDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListDeleteResponse; +namespace OnlyFansAPI\UserLists\UserListDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/UserLists/UserListDeleteResponse/_Meta.php b/src/UserLists/UserListDeleteResponse/_Meta.php index 6dd4ae51..96427057 100644 --- a/src/UserLists/UserListDeleteResponse/_Meta.php +++ b/src/UserLists/UserListDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListDeleteResponse; +namespace OnlyFansAPI\UserLists\UserListDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListDeleteResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\UserListDeleteResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\UserListDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\UserListDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\UserListDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\UserListDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/UserListDeleteResponse/_Meta/_Cache.php b/src/UserLists/UserListDeleteResponse/_Meta/_Cache.php index b9c87358..623f7060 100644 --- a/src/UserLists/UserListDeleteResponse/_Meta/_Cache.php +++ b/src/UserLists/UserListDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListDeleteResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/UserListDeleteResponse/_Meta/_Credits.php b/src/UserLists/UserListDeleteResponse/_Meta/_Credits.php index db1cbf92..4569fa85 100644 --- a/src/UserLists/UserListDeleteResponse/_Meta/_Credits.php +++ b/src/UserLists/UserListDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListDeleteResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/UserListDeleteResponse/_Meta/_RateLimits.php b/src/UserLists/UserListDeleteResponse/_Meta/_RateLimits.php index bb236d05..eadbef35 100644 --- a/src/UserLists/UserListDeleteResponse/_Meta/_RateLimits.php +++ b/src/UserLists/UserListDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListDeleteResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/UserListGetResponse.php b/src/UserLists/UserListGetResponse.php index 5d3d3229..0213c668 100644 --- a/src/UserLists/UserListGetResponse.php +++ b/src/UserLists/UserListGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListGetResponse\_Meta; -use Onlyfansapi\UserLists\UserListGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListGetResponse\_Meta; +use OnlyFansAPI\UserLists\UserListGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\UserListGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\UserListGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\UserListGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\UserListGetResponse\Data * * @phpstan-type UserListGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/UserListGetResponse/Data.php b/src/UserLists/UserListGetResponse/Data.php index e02c715a..bba9c473 100644 --- a/src/UserLists/UserListGetResponse/Data.php +++ b/src/UserLists/UserListGetResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListGetResponse; +namespace OnlyFansAPI\UserLists\UserListGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListGetResponse\Data\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListGetResponse\Data\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\UserLists\UserListGetResponse\Data\User + * @phpstan-import-type UserShape from \OnlyFansAPI\UserLists\UserListGetResponse\Data\User * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/UserLists/UserListGetResponse/Data/User.php b/src/UserLists/UserListGetResponse/Data/User.php index 2ba55c3a..1b3cd443 100644 --- a/src/UserLists/UserListGetResponse/Data/User.php +++ b/src/UserLists/UserListGetResponse/Data/User.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListGetResponse\Data; +namespace OnlyFansAPI\UserLists\UserListGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListGetResponse\Data\User\AvatarThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListGetResponse\Data\User\AvatarThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\UserLists\UserListGetResponse\Data\User\AvatarThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\UserLists\UserListGetResponse\Data\User\AvatarThumbs * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/UserLists/UserListGetResponse/Data/User/AvatarThumbs.php b/src/UserLists/UserListGetResponse/Data/User/AvatarThumbs.php index 8a109df2..fd412ad8 100644 --- a/src/UserLists/UserListGetResponse/Data/User/AvatarThumbs.php +++ b/src/UserLists/UserListGetResponse/Data/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListGetResponse\Data\User; +namespace OnlyFansAPI\UserLists\UserListGetResponse\Data\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/UserLists/UserListGetResponse/_Meta.php b/src/UserLists/UserListGetResponse/_Meta.php index d7eee7bd..9ff2cb3f 100644 --- a/src/UserLists/UserListGetResponse/_Meta.php +++ b/src/UserLists/UserListGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListGetResponse; +namespace OnlyFansAPI\UserLists\UserListGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListGetResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\UserListGetResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\UserListGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListGetResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\UserListGetResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\UserListGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\UserListGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\UserListGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\UserListGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\UserListGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\UserListGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\UserListGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/UserListGetResponse/_Meta/_Cache.php b/src/UserLists/UserListGetResponse/_Meta/_Cache.php index 86eb98b8..51656886 100644 --- a/src/UserLists/UserListGetResponse/_Meta/_Cache.php +++ b/src/UserLists/UserListGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListGetResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/UserListGetResponse/_Meta/_Credits.php b/src/UserLists/UserListGetResponse/_Meta/_Credits.php index cea860b4..0bd0fa45 100644 --- a/src/UserLists/UserListGetResponse/_Meta/_Credits.php +++ b/src/UserLists/UserListGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListGetResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/UserListGetResponse/_Meta/_RateLimits.php b/src/UserLists/UserListGetResponse/_Meta/_RateLimits.php index 83a35d7b..66f3483f 100644 --- a/src/UserLists/UserListGetResponse/_Meta/_RateLimits.php +++ b/src/UserLists/UserListGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListGetResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/UserListListParams.php b/src/UserLists/UserListListParams.php index 190dec16..a200395b 100644 --- a/src/UserLists/UserListListParams.php +++ b/src/UserLists/UserListListParams.php @@ -2,20 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListListParams\View; /** - * Get a list of OnlyFans Collections - User Lists. + * Get a list of OnlyFans Collections - User Lists. If you only want to get User Lists available for sending a Mass-Message, use `?view=queue`. * - * @see Onlyfansapi\Services\UserListsService::list() + * @see OnlyFansAPI\Services\UserListsService::list() * * @phpstan-type UserListListParamsShape = array{ - * limit?: int|null, offset?: int|null + * limit?: int|null, offset?: int|null, view?: null|View|value-of * } */ final class UserListListParams implements BaseModel @@ -36,6 +37,14 @@ final class UserListListParams implements BaseModel #[Optional(nullable: true)] public ?int $offset; + /** + * How to return the results. `queue` returns the user lists that are available for Mass-Messaging. + * + * @var value-of|null $view + */ + #[Optional(enum: View::class)] + public ?string $view; + public function __construct() { $this->initialize(); @@ -45,13 +54,19 @@ public function __construct() * Construct an instance from the required parameters. * * You must use named parameters to construct any parameters with a default value. + * + * @param View|value-of|null $view */ - public static function with(?int $limit = null, ?int $offset = null): self - { + public static function with( + ?int $limit = null, + ?int $offset = null, + View|string|null $view = null + ): self { $self = new self; null !== $limit && $self['limit'] = $limit; null !== $offset && $self['offset'] = $offset; + null !== $view && $self['view'] = $view; return $self; } @@ -77,4 +92,17 @@ public function withOffset(?int $offset): self return $self; } + + /** + * How to return the results. `queue` returns the user lists that are available for Mass-Messaging. + * + * @param View|value-of $view + */ + public function withView(View|string $view): self + { + $self = clone $this; + $self['view'] = $view; + + return $self; + } } diff --git a/src/UserLists/UserListListParams/View.php b/src/UserLists/UserListListParams/View.php new file mode 100644 index 00000000..8760cfb9 --- /dev/null +++ b/src/UserLists/UserListListParams/View.php @@ -0,0 +1,13 @@ +|null diff --git a/src/UserLists/UserListListResponse/Data.php b/src/UserLists/UserListListResponse/Data.php index 763437cf..68f160d3 100644 --- a/src/UserLists/UserListListResponse/Data.php +++ b/src/UserLists/UserListListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListListResponse; +namespace OnlyFansAPI\UserLists\UserListListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/UserLists/UserListListResponse/_Meta.php b/src/UserLists/UserListListResponse/_Meta.php index 70378cbd..1a6c3864 100644 --- a/src/UserLists/UserListListResponse/_Meta.php +++ b/src/UserLists/UserListListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListListResponse; +namespace OnlyFansAPI\UserLists\UserListListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListListResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\UserListListResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\UserListListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListListResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\UserListListResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\UserListListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\UserListListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\UserListListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\UserListListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\UserListListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\UserListListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\UserListListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/UserListListResponse/_Meta/_Cache.php b/src/UserLists/UserListListResponse/_Meta/_Cache.php index 1219b4a0..f3a264bb 100644 --- a/src/UserLists/UserListListResponse/_Meta/_Cache.php +++ b/src/UserLists/UserListListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListListResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/UserListListResponse/_Meta/_Credits.php b/src/UserLists/UserListListResponse/_Meta/_Credits.php index c965a7c0..adc938f1 100644 --- a/src/UserLists/UserListListResponse/_Meta/_Credits.php +++ b/src/UserLists/UserListListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListListResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/UserListListResponse/_Meta/_RateLimits.php b/src/UserLists/UserListListResponse/_Meta/_RateLimits.php index 36f12e7f..f13a6fbf 100644 --- a/src/UserLists/UserListListResponse/_Meta/_RateLimits.php +++ b/src/UserLists/UserListListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListListResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/UserListNewResponse.php b/src/UserLists/UserListNewResponse.php index 8b67af7b..e9d8b8c3 100644 --- a/src/UserLists/UserListNewResponse.php +++ b/src/UserLists/UserListNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListNewResponse\_Meta; -use Onlyfansapi\UserLists\UserListNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListNewResponse\_Meta; +use OnlyFansAPI\UserLists\UserListNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\UserListNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\UserListNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\UserListNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\UserListNewResponse\Data * * @phpstan-type UserListNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/UserListNewResponse/Data.php b/src/UserLists/UserListNewResponse/Data.php index 59a8afef..b4ec0d76 100644 --- a/src/UserLists/UserListNewResponse/Data.php +++ b/src/UserLists/UserListNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListNewResponse; +namespace OnlyFansAPI\UserLists\UserListNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/UserLists/UserListNewResponse/_Meta.php b/src/UserLists/UserListNewResponse/_Meta.php index 770e65d6..5d325ba0 100644 --- a/src/UserLists/UserListNewResponse/_Meta.php +++ b/src/UserLists/UserListNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListNewResponse; +namespace OnlyFansAPI\UserLists\UserListNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListNewResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\UserListNewResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\UserListNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListNewResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\UserListNewResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\UserListNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\UserListNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\UserListNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\UserListNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\UserListNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\UserListNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\UserListNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/UserListNewResponse/_Meta/_Cache.php b/src/UserLists/UserListNewResponse/_Meta/_Cache.php index f3fb094d..bee301f3 100644 --- a/src/UserLists/UserListNewResponse/_Meta/_Cache.php +++ b/src/UserLists/UserListNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListNewResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/UserListNewResponse/_Meta/_Credits.php b/src/UserLists/UserListNewResponse/_Meta/_Credits.php index 64d1a2a9..a1610ef8 100644 --- a/src/UserLists/UserListNewResponse/_Meta/_Credits.php +++ b/src/UserLists/UserListNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListNewResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/UserListNewResponse/_Meta/_RateLimits.php b/src/UserLists/UserListNewResponse/_Meta/_RateLimits.php index 45c2deb4..f0d6cecc 100644 --- a/src/UserLists/UserListNewResponse/_Meta/_RateLimits.php +++ b/src/UserLists/UserListNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListNewResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/UserListRetrieveParams.php b/src/UserLists/UserListRetrieveParams.php index 7cacabd5..2c868927 100644 --- a/src/UserLists/UserListRetrieveParams.php +++ b/src/UserLists/UserListRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get a user list. * - * @see Onlyfansapi\Services\UserListsService::retrieve() + * @see OnlyFansAPI\Services\UserListsService::retrieve() * * @phpstan-type UserListRetrieveParamsShape = array{account: string} */ diff --git a/src/UserLists/UserListUpdateParams.php b/src/UserLists/UserListUpdateParams.php index 45a341b6..45e68e28 100644 --- a/src/UserLists/UserListUpdateParams.php +++ b/src/UserLists/UserListUpdateParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Update a OnlyFans User List. * - * @see Onlyfansapi\Services\UserListsService::update() + * @see OnlyFansAPI\Services\UserListsService::update() * * @phpstan-type UserListUpdateParamsShape = array{ * account: string, name: string, isPinnedToFeed?: bool|null diff --git a/src/UserLists/UserListUpdateResponse.php b/src/UserLists/UserListUpdateResponse.php index c0340134..a855e456 100644 --- a/src/UserLists/UserListUpdateResponse.php +++ b/src/UserLists/UserListUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists; +namespace OnlyFansAPI\UserLists; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListUpdateResponse\_Meta; -use Onlyfansapi\UserLists\UserListUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta; +use OnlyFansAPI\UserLists\UserListUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\UserListUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\UserListUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\UserListUpdateResponse\Data * * @phpstan-type UserListUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/UserListUpdateResponse/Data.php b/src/UserLists/UserListUpdateResponse/Data.php index e785a74c..603bdd67 100644 --- a/src/UserLists/UserListUpdateResponse/Data.php +++ b/src/UserLists/UserListUpdateResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListUpdateResponse; +namespace OnlyFansAPI\UserLists\UserListUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/UserLists/UserListUpdateResponse/_Meta.php b/src/UserLists/UserListUpdateResponse/_Meta.php index 5035a58f..498e6100 100644 --- a/src/UserLists/UserListUpdateResponse/_Meta.php +++ b/src/UserLists/UserListUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListUpdateResponse; +namespace OnlyFansAPI\UserLists\UserListUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\UserListUpdateResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\UserListUpdateResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\UserListUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\UserListUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\UserListUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\UserListUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/UserListUpdateResponse/_Meta/_Cache.php b/src/UserLists/UserListUpdateResponse/_Meta/_Cache.php index 9e069635..f36cc850 100644 --- a/src/UserLists/UserListUpdateResponse/_Meta/_Cache.php +++ b/src/UserLists/UserListUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListUpdateResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/UserListUpdateResponse/_Meta/_Credits.php b/src/UserLists/UserListUpdateResponse/_Meta/_Credits.php index e62fb712..2ad7e3af 100644 --- a/src/UserLists/UserListUpdateResponse/_Meta/_Credits.php +++ b/src/UserLists/UserListUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListUpdateResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/UserListUpdateResponse/_Meta/_RateLimits.php b/src/UserLists/UserListUpdateResponse/_Meta/_RateLimits.php index 48567f60..2d7fe8d4 100644 --- a/src/UserLists/UserListUpdateResponse/_Meta/_RateLimits.php +++ b/src/UserLists/UserListUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\UserListUpdateResponse\_Meta; +namespace OnlyFansAPI\UserLists\UserListUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/Users/UserAddParams.php b/src/UserLists/Users/UserAddParams.php index fe5d1ea0..a46a513a 100644 --- a/src/UserLists/Users/UserAddParams.php +++ b/src/UserLists/Users/UserAddParams.php @@ -2,19 +2,22 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Add multiple Users To OnlyFans User List. * - * @see Onlyfansapi\Services\UserLists\UsersService::add() + * @see OnlyFansAPI\Services\UserLists\UsersService::add() * - * @phpstan-type UserAddParamsShape = array{account: string, ids: list} + * @phpstan-type UserAddParamsShape = array{ + * account: string, ids: list, skipInvalid?: bool|null + * } */ final class UserAddParams implements BaseModel { @@ -33,6 +36,12 @@ final class UserAddParams implements BaseModel #[Required(list: 'string')] public array $ids; + /** + * Set to `true` to skip the User IDs OnlyFans refuses instead of failing the whole batch. We drop the rejected IDs and retry the remainder for you (up to 5 OnlyFans attempts, each costing 1 credit), then respond `200` with `data.added` (the IDs that made it in) and `data.failed` (an object mapping each rejected User ID to the reason OnlyFans gave). Note this changes the shape of `data` — see the example responses. Failures that are not about individual users (e.g. an invalid or inaccessible list ID) still return the regular `400`. + */ + #[Optional('skip_invalid')] + public ?bool $skipInvalid; + /** * `new UserAddParams()` is missing required properties by the API. * @@ -59,13 +68,18 @@ public function __construct() * * @param list $ids */ - public static function with(string $account, array $ids): self - { + public static function with( + string $account, + array $ids, + ?bool $skipInvalid = null + ): self { $self = new self; $self['account'] = $account; $self['ids'] = $ids; + null !== $skipInvalid && $self['skipInvalid'] = $skipInvalid; + return $self; } @@ -89,4 +103,15 @@ public function withIDs(array $ids): self return $self; } + + /** + * Set to `true` to skip the User IDs OnlyFans refuses instead of failing the whole batch. We drop the rejected IDs and retry the remainder for you (up to 5 OnlyFans attempts, each costing 1 credit), then respond `200` with `data.added` (the IDs that made it in) and `data.failed` (an object mapping each rejected User ID to the reason OnlyFans gave). Note this changes the shape of `data` — see the example responses. Failures that are not about individual users (e.g. an invalid or inaccessible list ID) still return the regular `400`. + */ + public function withSkipInvalid(bool $skipInvalid): self + { + $self = clone $this; + $self['skipInvalid'] = $skipInvalid; + + return $self; + } } diff --git a/src/UserLists/Users/UserAddResponse.php b/src/UserLists/Users/UserAddResponse.php index 19b0916d..2b8f1d71 100644 --- a/src/UserLists/Users/UserAddResponse.php +++ b/src/UserLists/Users/UserAddResponse.php @@ -2,77 +2,32 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserAddResponse\_Meta; -use Onlyfansapi\UserLists\Users\UserAddResponse\Data; +use OnlyFansAPI\Core\Concerns\SdkUnion; +use OnlyFansAPI\Core\Conversion\Contracts\Converter; +use OnlyFansAPI\Core\Conversion\Contracts\ConverterSource; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\Users\UserAddResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\Users\UserAddResponse\Data + * Default: OnlyFans accepted every User ID. * - * @phpstan-type UserAddResponseShape = array{ - * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape - * } + * @phpstan-import-type UnionMember0Shape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0 + * @phpstan-import-type UnionMember1Shape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1 + * + * @phpstan-type UserAddResponseVariants = UnionMember0|UnionMember1 + * @phpstan-type UserAddResponseShape = UserAddResponseVariants|UnionMember0Shape|UnionMember1Shape */ -final class UserAddResponse implements BaseModel +final class UserAddResponse implements ConverterSource { - /** @use SdkModel */ - use SdkModel; - - #[Optional] - public ?_Meta $_meta; - - #[Optional] - public ?Data $data; - - public function __construct() - { - $this->initialize(); - } + use SdkUnion; /** - * Construct an instance from the required parameters. - * - * You must use named parameters to construct any parameters with a default value. - * - * @param _Meta|_MetaShape|null $_meta - * @param Data|DataShape|null $data + * @return list|array */ - public static function with( - _Meta|array|null $_meta = null, - Data|array|null $data = null - ): self { - $self = new self; - - null !== $_meta && $self['_meta'] = $_meta; - null !== $data && $self['data'] = $data; - - return $self; - } - - /** - * @param _Meta|_MetaShape $_meta - */ - public function withMeta(_Meta|array $_meta): self + public static function variants(): array { - $self = clone $this; - $self['_meta'] = $_meta; - - return $self; - } - - /** - * @param Data|DataShape $data - */ - public function withData(Data|array $data): self - { - $self = clone $this; - $self['data'] = $data; - - return $self; + return [UnionMember0::class, UnionMember1::class]; } } diff --git a/src/UserLists/Users/UserAddResponse/UnionMember0.php b/src/UserLists/Users/UserAddResponse/UnionMember0.php new file mode 100644 index 00000000..0a539afc --- /dev/null +++ b/src/UserLists/Users/UserAddResponse/UnionMember0.php @@ -0,0 +1,80 @@ + */ + use SdkModel; + + #[Optional] + public ?_Meta $_meta; + + #[Optional] + public ?Data $data; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param _Meta|_MetaShape|null $_meta + * @param Data|DataShape|null $data + */ + public static function with( + _Meta|array|null $_meta = null, + Data|array|null $data = null + ): self { + $self = new self; + + null !== $_meta && $self['_meta'] = $_meta; + null !== $data && $self['data'] = $data; + + return $self; + } + + /** + * @param _Meta|_MetaShape $_meta + */ + public function withMeta(_Meta|array $_meta): self + { + $self = clone $this; + $self['_meta'] = $_meta; + + return $self; + } + + /** + * @param Data|DataShape $data + */ + public function withData(Data|array $data): self + { + $self = clone $this; + $self['data'] = $data; + + return $self; + } +} diff --git a/src/UserLists/Users/UserAddResponse/Data.php b/src/UserLists/Users/UserAddResponse/UnionMember0/Data.php similarity index 84% rename from src/UserLists/Users/UserAddResponse/Data.php rename to src/UserLists/Users/UserAddResponse/UnionMember0/Data.php index 795e309e..227f54ad 100644 --- a/src/UserLists/Users/UserAddResponse/Data.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember0/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserAddResponse; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{_1224114714?: list|null} diff --git a/src/Messages/MessageAttachTagsResponse/_Meta.php b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta.php similarity index 72% rename from src/Messages/MessageAttachTagsResponse/_Meta.php rename to src/UserLists/Users/UserAddResponse/UnionMember0/_Meta.php index 0f8c8599..4d16cccb 100644 --- a/src/Messages/MessageAttachTagsResponse/_Meta.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Messages\MessageAttachTagsResponse; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta\_Cache; -use Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta\_Credits; -use Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta\_Cache; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta\_Credits; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Media/Vault/Lists/ListListResponse/_Meta/_Cache.php b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_Cache.php similarity index 85% rename from src/Media/Vault/Lists/ListListResponse/_Meta/_Cache.php rename to src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_Cache.php index 376dba67..5a4c6d71 100644 --- a/src/Media/Vault/Lists/ListListResponse/_Meta/_Cache.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Messages/MessageAttachTagsResponse/_Meta/_Credits.php b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_Credits.php similarity index 87% rename from src/Messages/MessageAttachTagsResponse/_Meta/_Credits.php rename to src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_Credits.php index 45512382..90bfbda5 100644 --- a/src/Messages/MessageAttachTagsResponse/_Meta/_Credits.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Messages/MessageAttachTagsResponse/_Meta/_RateLimits.php b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_RateLimits.php similarity index 91% rename from src/Messages/MessageAttachTagsResponse/_Meta/_RateLimits.php rename to src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_RateLimits.php index c72b828c..dfaf1706 100644 --- a/src/Messages/MessageAttachTagsResponse/_Meta/_RateLimits.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember0/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Messages\MessageAttachTagsResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember0\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/Users/UserAddResponse/UnionMember1.php b/src/UserLists/Users/UserAddResponse/UnionMember1.php new file mode 100644 index 00000000..493e2210 --- /dev/null +++ b/src/UserLists/Users/UserAddResponse/UnionMember1.php @@ -0,0 +1,80 @@ + */ + use SdkModel; + + #[Optional] + public ?_Meta $_meta; + + #[Optional] + public ?Data $data; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param _Meta|_MetaShape|null $_meta + * @param Data|DataShape|null $data + */ + public static function with( + _Meta|array|null $_meta = null, + Data|array|null $data = null + ): self { + $self = new self; + + null !== $_meta && $self['_meta'] = $_meta; + null !== $data && $self['data'] = $data; + + return $self; + } + + /** + * @param _Meta|_MetaShape $_meta + */ + public function withMeta(_Meta|array $_meta): self + { + $self = clone $this; + $self['_meta'] = $_meta; + + return $self; + } + + /** + * @param Data|DataShape $data + */ + public function withData(Data|array $data): self + { + $self = clone $this; + $self['data'] = $data; + + return $self; + } +} diff --git a/src/UserLists/Users/UserAddResponse/UnionMember1/Data.php b/src/UserLists/Users/UserAddResponse/UnionMember1/Data.php new file mode 100644 index 00000000..3f767bac --- /dev/null +++ b/src/UserLists/Users/UserAddResponse/UnionMember1/Data.php @@ -0,0 +1,77 @@ +|null, failed?: null|Failed|FailedShape + * } + */ +final class Data implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + /** @var list|null $added */ + #[Optional(list: 'int')] + public ?array $added; + + #[Optional] + public ?Failed $failed; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param list|null $added + * @param Failed|FailedShape|null $failed + */ + public static function with( + ?array $added = null, + Failed|array|null $failed = null + ): self { + $self = new self; + + null !== $added && $self['added'] = $added; + null !== $failed && $self['failed'] = $failed; + + return $self; + } + + /** + * @param list $added + */ + public function withAdded(array $added): self + { + $self = clone $this; + $self['added'] = $added; + + return $self; + } + + /** + * @param Failed|FailedShape $failed + */ + public function withFailed(Failed|array $failed): self + { + $self = clone $this; + $self['failed'] = $failed; + + return $self; + } +} diff --git a/src/UserLists/Users/UserAddResponse/UnionMember1/Data/Failed.php b/src/UserLists/Users/UserAddResponse/UnionMember1/Data/Failed.php new file mode 100644 index 00000000..7fb5c29a --- /dev/null +++ b/src/UserLists/Users/UserAddResponse/UnionMember1/Data/Failed.php @@ -0,0 +1,48 @@ + */ + use SdkModel; + + #[Optional('123456')] + public ?string $_123456; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with(?string $_123456 = null): self + { + $self = new self; + + null !== $_123456 && $self['_123456'] = $_123456; + + return $self; + } + + public function with123456(string $_123456): self + { + $self = clone $this; + $self['_123456'] = $_123456; + + return $self; + } +} diff --git a/src/Media/Vault/Lists/ListListResponse/_Meta.php b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta.php similarity index 72% rename from src/Media/Vault/Lists/ListListResponse/_Meta.php rename to src/UserLists/Users/UserAddResponse/UnionMember1/_Meta.php index 3be0b47c..85a087d2 100644 --- a/src/Media/Vault/Lists/ListListResponse/_Meta.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Media\Vault\Lists\ListListResponse; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta\_Cache; -use Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta\_Credits; -use Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta\_Cache; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta\_Credits; +use OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Media\Vault\Lists\ListListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/Users/UserAddResponse/_Meta/_Cache.php b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_Cache.php similarity index 85% rename from src/UserLists/Users/UserAddResponse/_Meta/_Cache.php rename to src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_Cache.php index 1f8ef448..004f8879 100644 --- a/src/UserLists/Users/UserAddResponse/_Meta/_Cache.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserAddResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/Users/UserAddResponse/_Meta/_Credits.php b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_Credits.php similarity index 87% rename from src/UserLists/Users/UserAddResponse/_Meta/_Credits.php rename to src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_Credits.php index d86a066c..6faeb687 100644 --- a/src/UserLists/Users/UserAddResponse/_Meta/_Credits.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserAddResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/Users/UserAddResponse/_Meta/_RateLimits.php b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_RateLimits.php similarity index 91% rename from src/UserLists/Users/UserAddResponse/_Meta/_RateLimits.php rename to src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_RateLimits.php index a0c22f5e..fbb3e899 100644 --- a/src/UserLists/Users/UserAddResponse/_Meta/_RateLimits.php +++ b/src/UserLists/Users/UserAddResponse/UnionMember1/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserAddResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserAddResponse\UnionMember1\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/Users/UserClearParams.php b/src/UserLists/Users/UserClearParams.php index 27184a5e..c7528d5b 100644 --- a/src/UserLists/Users/UserClearParams.php +++ b/src/UserLists/Users/UserClearParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove all users from a OnlyFans User List. * - * @see Onlyfansapi\Services\UserLists\UsersService::clear() + * @see OnlyFansAPI\Services\UserLists\UsersService::clear() * * @phpstan-type UserClearParamsShape = array{account: string} */ diff --git a/src/UserLists/Users/UserClearResponse.php b/src/UserLists/Users/UserClearResponse.php index e64b5f9f..826683de 100644 --- a/src/UserLists/Users/UserClearResponse.php +++ b/src/UserLists/Users/UserClearResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserClearResponse\_Meta; -use Onlyfansapi\UserLists\Users\UserClearResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta; +use OnlyFansAPI\UserLists\Users\UserClearResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\Users\UserClearResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\Users\UserClearResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\Users\UserClearResponse\Data * * @phpstan-type UserClearResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/Users/UserClearResponse/Data.php b/src/UserLists/Users/UserClearResponse/Data.php index f537d08b..1c9debeb 100644 --- a/src/UserLists/Users/UserClearResponse/Data.php +++ b/src/UserLists/Users/UserClearResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserClearResponse; +namespace OnlyFansAPI\UserLists\Users\UserClearResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/UserLists/Users/UserClearResponse/_Meta.php b/src/UserLists/Users/UserClearResponse/_Meta.php index 28bf71e4..b2423f70 100644 --- a/src/UserLists/Users/UserClearResponse/_Meta.php +++ b/src/UserLists/Users/UserClearResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserClearResponse; +namespace OnlyFansAPI\UserLists\Users\UserClearResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserClearResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\Users\UserClearResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\Users\UserClearResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\Users\UserClearResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\Users\UserClearResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\Users\UserClearResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/Users/UserClearResponse/_Meta/_Cache.php b/src/UserLists/Users/UserClearResponse/_Meta/_Cache.php index 0cdb8138..ba0e5056 100644 --- a/src/UserLists/Users/UserClearResponse/_Meta/_Cache.php +++ b/src/UserLists/Users/UserClearResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserClearResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/Users/UserClearResponse/_Meta/_Credits.php b/src/UserLists/Users/UserClearResponse/_Meta/_Credits.php index a07f133a..30cd677b 100644 --- a/src/UserLists/Users/UserClearResponse/_Meta/_Credits.php +++ b/src/UserLists/Users/UserClearResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserClearResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/Users/UserClearResponse/_Meta/_RateLimits.php b/src/UserLists/Users/UserClearResponse/_Meta/_RateLimits.php index 73dc3867..b1b2bf95 100644 --- a/src/UserLists/Users/UserClearResponse/_Meta/_RateLimits.php +++ b/src/UserLists/Users/UserClearResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserClearResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserClearResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/Users/UserListParams.php b/src/UserLists/Users/UserListParams.php index f49e8983..1e0cde9d 100644 --- a/src/UserLists/Users/UserListParams.php +++ b/src/UserLists/Users/UserListParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get all users in a OnlyFans User List. * - * @see Onlyfansapi\Services\UserLists\UsersService::list() + * @see OnlyFansAPI\Services\UserLists\UsersService::list() * * @phpstan-type UserListParamsShape = array{ * account: string, limit?: string|null, offset?: string|null diff --git a/src/UserLists/Users/UserListPinnedParams.php b/src/UserLists/Users/UserListPinnedParams.php index f9bdb033..6be23992 100644 --- a/src/UserLists/Users/UserListPinnedParams.php +++ b/src/UserLists/Users/UserListPinnedParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get pinned users from an OnlyFans User List. * - * @see Onlyfansapi\Services\UserLists\UsersService::listPinned() + * @see OnlyFansAPI\Services\UserLists\UsersService::listPinned() * * @phpstan-type UserListPinnedParamsShape = array{ * account: string, limit?: string|null, offset?: string|null diff --git a/src/UserLists/Users/UserListPinnedResponse.php b/src/UserLists/Users/UserListPinnedResponse.php index 23e671f0..1462aeb4 100644 --- a/src/UserLists/Users/UserListPinnedResponse.php +++ b/src/UserLists/Users/UserListPinnedResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data * * @phpstan-type UserListPinnedResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/Users/UserListPinnedResponse/Data.php b/src/UserLists/Users/UserListPinnedResponse/Data.php index 32371218..2fd535dd 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null, nextOffset?: int|null diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_.php index d8e866d6..5f60d5d4 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderSize; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderThumbs; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\ListsState; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\PromoOffer; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderSize; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderThumbs; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\ListsState; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\PromoOffer; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\ListsState - * @phpstan-import-type PromoOfferShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\PromoOffer - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\ListsState + * @phpstan-import-type PromoOfferShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\PromoOffer + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/AvatarThumbs.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/AvatarThumbs.php index 340049f5..65c96758 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/AvatarThumbs.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderSize.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderSize.php index 25a4dce2..3450588a 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderSize.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderThumbs.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderThumbs.php index 081f3b00..58f1eb15 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderThumbs.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/ListsState.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/ListsState.php index 06cceafc..89457413 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/ListsState.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/PromoOffer.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/PromoOffer.php index d4bb74e5..d0934765 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/PromoOffer.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/PromoOffer.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PromoOfferShape = array{ diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData.php index 262c8f0d..6fdf0191 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData/Subscribe.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData/Subscribe.php index c5cb65ed..20c79602 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData/Subscribe.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData.php index 942573da..20498d6c 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData/Subscribe.php b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData/Subscribe.php index c17e204c..bcda511c 100644 --- a/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData/Subscribe.php +++ b/src/UserLists/Users/UserListPinnedResponse/Data/List_/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\Data\List_\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/UserLists/Users/UserListPinnedResponse/_Meta.php b/src/UserLists/Users/UserListPinnedResponse/_Meta.php index 80948b8a..d262d224 100644 --- a/src/UserLists/Users/UserListPinnedResponse/_Meta.php +++ b/src/UserLists/Users/UserListPinnedResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/Users/UserListPinnedResponse/_Meta/_Cache.php b/src/UserLists/Users/UserListPinnedResponse/_Meta/_Cache.php index e120b50e..69b3a819 100644 --- a/src/UserLists/Users/UserListPinnedResponse/_Meta/_Cache.php +++ b/src/UserLists/Users/UserListPinnedResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/Users/UserListPinnedResponse/_Meta/_Credits.php b/src/UserLists/Users/UserListPinnedResponse/_Meta/_Credits.php index 87515568..55ea19e2 100644 --- a/src/UserLists/Users/UserListPinnedResponse/_Meta/_Credits.php +++ b/src/UserLists/Users/UserListPinnedResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/Users/UserListPinnedResponse/_Meta/_RateLimits.php b/src/UserLists/Users/UserListPinnedResponse/_Meta/_RateLimits.php index 861669d0..1e03b0a6 100644 --- a/src/UserLists/Users/UserListPinnedResponse/_Meta/_RateLimits.php +++ b/src/UserLists/Users/UserListPinnedResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListPinnedResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserListPinnedResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/Users/UserListResponse.php b/src/UserLists/Users/UserListResponse.php index ad0188b1..5007a4b8 100644 --- a/src/UserLists/Users/UserListResponse.php +++ b/src/UserLists/Users/UserListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListResponse\_Meta; -use Onlyfansapi\UserLists\Users\UserListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListResponse\_Meta; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\Users\UserListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\Users\UserListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data * * @phpstan-type UserListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/Users/UserListResponse/Data.php b/src/UserLists/Users/UserListResponse/Data.php index 1c34ec5e..b5cffd61 100644 --- a/src/UserLists/Users/UserListResponse/Data.php +++ b/src/UserLists/Users/UserListResponse/Data.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse; +namespace OnlyFansAPI\UserLists\Users\UserListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; /** - * @phpstan-import-type ListShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_ + * @phpstan-import-type ListShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_ * * @phpstan-type DataShape = array{ * hasMore?: bool|null, list?: list|null, nextOffset?: int|null diff --git a/src/UserLists/Users/UserListResponse/Data/List_.php b/src/UserLists/Users/UserListResponse/Data/List_.php index 882b9fa5..5e16fe50 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_.php +++ b/src/UserLists/Users/UserListResponse/Data/List_.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\AvatarThumbs; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\HeaderSize; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\HeaderThumbs; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\ListsState; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\PromoOffer; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedByData; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\AvatarThumbs; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\HeaderSize; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\HeaderThumbs; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\ListsState; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\PromoOffer; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedByData; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\ListsState - * @phpstan-import-type PromoOfferShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\PromoOffer - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\ListsState + * @phpstan-import-type PromoOfferShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\PromoOffer + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/UserLists/Users/UserListResponse/Data/List_/AvatarThumbs.php b/src/UserLists/Users/UserListResponse/Data/List_/AvatarThumbs.php index b8be705c..4ab1ba79 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/AvatarThumbs.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/UserLists/Users/UserListResponse/Data/List_/HeaderSize.php b/src/UserLists/Users/UserListResponse/Data/List_/HeaderSize.php index 9f6c9a5f..943b22f3 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/HeaderSize.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/UserLists/Users/UserListResponse/Data/List_/HeaderThumbs.php b/src/UserLists/Users/UserListResponse/Data/List_/HeaderThumbs.php index 1fae92f5..493328be 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/HeaderThumbs.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/UserLists/Users/UserListResponse/Data/List_/ListsState.php b/src/UserLists/Users/UserListResponse/Data/List_/ListsState.php index 9c243c9a..d5d3cddd 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/ListsState.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/UserLists/Users/UserListResponse/Data/List_/PromoOffer.php b/src/UserLists/Users/UserListResponse/Data/List_/PromoOffer.php index d83b8b05..3c27220d 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/PromoOffer.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/PromoOffer.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type PromoOfferShape = array{ diff --git a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData.php b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData.php index 5f0e94bf..35b7c91c 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData/Subscribe.php b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData/Subscribe.php index 672ef063..50e40119 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData/Subscribe.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedByData; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData.php b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData.php index 64e04dd0..acb4838c 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData\Subscribe * * @phpstan-type SubscribedOnDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData/Subscribe.php b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData/Subscribe.php index d1f1f21a..3217c6e1 100644 --- a/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData/Subscribe.php +++ b/src/UserLists/Users/UserListResponse/Data/List_/SubscribedOnData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\Data\List_\SubscribedOnData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/UserLists/Users/UserListResponse/_Meta.php b/src/UserLists/Users/UserListResponse/_Meta.php index 9e133051..028a6e55 100644 --- a/src/UserLists/Users/UserListResponse/_Meta.php +++ b/src/UserLists/Users/UserListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse; +namespace OnlyFansAPI\UserLists\Users\UserListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserListResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\Users\UserListResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\Users\UserListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserListResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\Users\UserListResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\Users\UserListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\Users\UserListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\Users\UserListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\Users\UserListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\Users\UserListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\Users\UserListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\Users\UserListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/Users/UserListResponse/_Meta/_Cache.php b/src/UserLists/Users/UserListResponse/_Meta/_Cache.php index 3f60e8fc..577ec431 100644 --- a/src/UserLists/Users/UserListResponse/_Meta/_Cache.php +++ b/src/UserLists/Users/UserListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/Users/UserListResponse/_Meta/_Credits.php b/src/UserLists/Users/UserListResponse/_Meta/_Credits.php index b9008f3f..6dc138c8 100644 --- a/src/UserLists/Users/UserListResponse/_Meta/_Credits.php +++ b/src/UserLists/Users/UserListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/Users/UserListResponse/_Meta/_RateLimits.php b/src/UserLists/Users/UserListResponse/_Meta/_RateLimits.php index 8e46d8f3..7f343950 100644 --- a/src/UserLists/Users/UserListResponse/_Meta/_RateLimits.php +++ b/src/UserLists/Users/UserListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserListResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/Users/UserPinParams.php b/src/UserLists/Users/UserPinParams.php index 13244e2d..0b4b244e 100644 --- a/src/UserLists/Users/UserPinParams.php +++ b/src/UserLists/Users/UserPinParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Pin a user in any OnlyFans user list. * - * @see Onlyfansapi\Services\UserLists\UsersService::pin() + * @see OnlyFansAPI\Services\UserLists\UsersService::pin() * * @phpstan-type UserPinParamsShape = array{account: string, userListID: string} */ diff --git a/src/UserLists/Users/UserPinResponse.php b/src/UserLists/Users/UserPinResponse.php index 3c7373fb..3a8091a7 100644 --- a/src/UserLists/Users/UserPinResponse.php +++ b/src/UserLists/Users/UserPinResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserPinResponse\_Meta; -use Onlyfansapi\UserLists\Users\UserPinResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta; +use OnlyFansAPI\UserLists\Users\UserPinResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\Users\UserPinResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\Users\UserPinResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\Users\UserPinResponse\Data * * @phpstan-type UserPinResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/Users/UserPinResponse/Data.php b/src/UserLists/Users/UserPinResponse/Data.php index 37c4fe35..3fb90e8e 100644 --- a/src/UserLists/Users/UserPinResponse/Data.php +++ b/src/UserLists/Users/UserPinResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserPinResponse; +namespace OnlyFansAPI\UserLists\Users\UserPinResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{success?: bool|null} diff --git a/src/UserLists/Users/UserPinResponse/_Meta.php b/src/UserLists/Users/UserPinResponse/_Meta.php index 949a64e4..aaa23c13 100644 --- a/src/UserLists/Users/UserPinResponse/_Meta.php +++ b/src/UserLists/Users/UserPinResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserPinResponse; +namespace OnlyFansAPI\UserLists\Users\UserPinResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserPinResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\Users\UserPinResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\Users\UserPinResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\Users\UserPinResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\Users\UserPinResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\Users\UserPinResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/Users/UserPinResponse/_Meta/_Cache.php b/src/UserLists/Users/UserPinResponse/_Meta/_Cache.php index b7103a3f..ac57d2d6 100644 --- a/src/UserLists/Users/UserPinResponse/_Meta/_Cache.php +++ b/src/UserLists/Users/UserPinResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserPinResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/Users/UserPinResponse/_Meta/_Credits.php b/src/UserLists/Users/UserPinResponse/_Meta/_Credits.php index 9976d140..4c602258 100644 --- a/src/UserLists/Users/UserPinResponse/_Meta/_Credits.php +++ b/src/UserLists/Users/UserPinResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserPinResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/Users/UserPinResponse/_Meta/_RateLimits.php b/src/UserLists/Users/UserPinResponse/_Meta/_RateLimits.php index f5428f5f..e1d5fb72 100644 --- a/src/UserLists/Users/UserPinResponse/_Meta/_RateLimits.php +++ b/src/UserLists/Users/UserPinResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserPinResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserPinResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/UserLists/Users/UserRemoveParams.php b/src/UserLists/Users/UserRemoveParams.php index b4298080..27b071a0 100644 --- a/src/UserLists/Users/UserRemoveParams.php +++ b/src/UserLists/Users/UserRemoveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Remove User from OnlyFans User List. * - * @see Onlyfansapi\Services\UserLists\UsersService::remove() + * @see OnlyFansAPI\Services\UserLists\UsersService::remove() * * @phpstan-type UserRemoveParamsShape = array{account: string, userListID: string} */ diff --git a/src/UserLists/Users/UserRemoveResponse.php b/src/UserLists/Users/UserRemoveResponse.php index 7582c569..58fec80a 100644 --- a/src/UserLists/Users/UserRemoveResponse.php +++ b/src/UserLists/Users/UserRemoveResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users; +namespace OnlyFansAPI\UserLists\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data * * @phpstan-type UserRemoveResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/UserLists/Users/UserRemoveResponse/Data.php b/src/UserLists/Users/UserRemoveResponse/Data.php index 18b07814..dc578aae 100644 --- a/src/UserLists/Users/UserRemoveResponse/Data.php +++ b/src/UserLists/Users/UserRemoveResponse/Data.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\UserState; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\UserState; /** - * @phpstan-import-type ListShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_ - * @phpstan-import-type UserStateShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\UserState + * @phpstan-import-type ListShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_ + * @phpstan-import-type UserStateShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\UserState * * @phpstan-type DataShape = array{ * list?: null|List_|ListShape, userState?: null|UserState|UserStateShape diff --git a/src/UserLists/Users/UserRemoveResponse/Data/List_.php b/src/UserLists/Users/UserRemoveResponse/Data/List_.php index 40f1d1b0..b30453e9 100644 --- a/src/UserLists/Users/UserRemoveResponse/Data/List_.php +++ b/src/UserLists/Users/UserRemoveResponse/Data/List_.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse\Data; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_\User; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_\User; /** - * @phpstan-import-type UserShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_\User + * @phpstan-import-type UserShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_\User * * @phpstan-type ListShape = array{ * id?: int|null, diff --git a/src/UserLists/Users/UserRemoveResponse/Data/List_/User.php b/src/UserLists/Users/UserRemoveResponse/Data/List_/User.php index 4967fef0..f67c0e4e 100644 --- a/src/UserLists/Users/UserRemoveResponse/Data/List_/User.php +++ b/src/UserLists/Users/UserRemoveResponse/Data/List_/User.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_\User\AvatarThumbs; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_\User\AvatarThumbs; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_\User\AvatarThumbs + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_\User\AvatarThumbs * * @phpstan-type UserShape = array{ * id?: int|null, diff --git a/src/UserLists/Users/UserRemoveResponse/Data/List_/User/AvatarThumbs.php b/src/UserLists/Users/UserRemoveResponse/Data/List_/User/AvatarThumbs.php index aa6e2547..24554bef 100644 --- a/src/UserLists/Users/UserRemoveResponse/Data/List_/User/AvatarThumbs.php +++ b/src/UserLists/Users/UserRemoveResponse/Data/List_/User/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse\Data\List_\User; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data\List_\User; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/UserLists/Users/UserRemoveResponse/Data/UserState.php b/src/UserLists/Users/UserRemoveResponse/Data/UserState.php index aa6e154b..6f02a309 100644 --- a/src/UserLists/Users/UserRemoveResponse/Data/UserState.php +++ b/src/UserLists/Users/UserRemoveResponse/Data/UserState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse\Data; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type UserStateShape = array{ diff --git a/src/UserLists/Users/UserRemoveResponse/_Meta.php b/src/UserLists/Users/UserRemoveResponse/_Meta.php index 1f8ac469..6a0394df 100644 --- a/src/UserLists/Users/UserRemoveResponse/_Meta.php +++ b/src/UserLists/Users/UserRemoveResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta\_Cache; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta\_Credits; -use Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta\_Cache; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta\_Credits; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/UserLists/Users/UserRemoveResponse/_Meta/_Cache.php b/src/UserLists/Users/UserRemoveResponse/_Meta/_Cache.php index 8544ae2c..bbda3f9e 100644 --- a/src/UserLists/Users/UserRemoveResponse/_Meta/_Cache.php +++ b/src/UserLists/Users/UserRemoveResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/UserLists/Users/UserRemoveResponse/_Meta/_Credits.php b/src/UserLists/Users/UserRemoveResponse/_Meta/_Credits.php index 69e98ac0..b8dae246 100644 --- a/src/UserLists/Users/UserRemoveResponse/_Meta/_Credits.php +++ b/src/UserLists/Users/UserRemoveResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/UserLists/Users/UserRemoveResponse/_Meta/_RateLimits.php b/src/UserLists/Users/UserRemoveResponse/_Meta/_RateLimits.php index cbc6fbbc..5f4be68c 100644 --- a/src/UserLists/Users/UserRemoveResponse/_Meta/_RateLimits.php +++ b/src/UserLists/Users/UserRemoveResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\UserLists\Users\UserRemoveResponse\_Meta; +namespace OnlyFansAPI\UserLists\Users\UserRemoveResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/Block/BlockCreateParams.php b/src/Users/Block/BlockCreateParams.php index 6dcb54cc..3264e64f 100644 --- a/src/Users/Block/BlockCreateParams.php +++ b/src/Users/Block/BlockCreateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block; +namespace OnlyFansAPI\Users\Block; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Block user from accessing your profile. * - * @see Onlyfansapi\Services\Users\BlockService::create() + * @see OnlyFansAPI\Services\Users\BlockService::create() * * @phpstan-type BlockCreateParamsShape = array{account: string} */ diff --git a/src/Users/Block/BlockDeleteParams.php b/src/Users/Block/BlockDeleteParams.php index f1d7b300..172791c5 100644 --- a/src/Users/Block/BlockDeleteParams.php +++ b/src/Users/Block/BlockDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block; +namespace OnlyFansAPI\Users\Block; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unblock a previously blocked user. * - * @see Onlyfansapi\Services\Users\BlockService::delete() + * @see OnlyFansAPI\Services\Users\BlockService::delete() * * @phpstan-type BlockDeleteParamsShape = array{account: string} */ diff --git a/src/Users/Block/BlockDeleteResponse.php b/src/Users/Block/BlockDeleteResponse.php index e84599df..acdc73bb 100644 --- a/src/Users/Block/BlockDeleteResponse.php +++ b/src/Users/Block/BlockDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block; +namespace OnlyFansAPI\Users\Block; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data * * @phpstan-type BlockDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/Block/BlockDeleteResponse/Data.php b/src/Users/Block/BlockDeleteResponse/Data.php index 6ffef82e..b09fb8e0 100644 --- a/src/Users/Block/BlockDeleteResponse/Data.php +++ b/src/Users/Block/BlockDeleteResponse/Data.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\AvatarThumbs; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\HeaderSize; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\HeaderThumbs; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\ListsState; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscribedByData; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscribedOnData; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscriptionBundle; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\AvatarThumbs; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\HeaderSize; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\HeaderThumbs; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\ListsState; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscribedByData; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscribedOnData; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscriptionBundle * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Users/Block/BlockDeleteResponse/Data/AvatarThumbs.php b/src/Users/Block/BlockDeleteResponse/Data/AvatarThumbs.php index b5ce5d20..062fce1e 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/AvatarThumbs.php +++ b/src/Users/Block/BlockDeleteResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Users/Block/BlockDeleteResponse/Data/HeaderSize.php b/src/Users/Block/BlockDeleteResponse/Data/HeaderSize.php index 964dfd56..10238be5 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/HeaderSize.php +++ b/src/Users/Block/BlockDeleteResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Users/Block/BlockDeleteResponse/Data/HeaderThumbs.php b/src/Users/Block/BlockDeleteResponse/Data/HeaderThumbs.php index a93dbccc..fc873a2a 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/HeaderThumbs.php +++ b/src/Users/Block/BlockDeleteResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Users/Block/BlockDeleteResponse/Data/ListsState.php b/src/Users/Block/BlockDeleteResponse/Data/ListsState.php index 260e2014..4cdafd01 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/ListsState.php +++ b/src/Users/Block/BlockDeleteResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData.php b/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData.php index c4efbdcc..ca5088a4 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData.php +++ b/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData/Subscribe.php b/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData/Subscribe.php index c26e92ef..e49189d8 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Users/Block/BlockDeleteResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Users/Block/BlockDeleteResponse/Data/SubscribedOnData.php b/src/Users/Block/BlockDeleteResponse/Data/SubscribedOnData.php index 15b0a203..e75e03ef 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/SubscribedOnData.php +++ b/src/Users/Block/BlockDeleteResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Users/Block/BlockDeleteResponse/Data/SubscriptionBundle.php b/src/Users/Block/BlockDeleteResponse/Data/SubscriptionBundle.php index b805ee15..c47dbaeb 100644 --- a/src/Users/Block/BlockDeleteResponse/Data/SubscriptionBundle.php +++ b/src/Users/Block/BlockDeleteResponse/Data/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Users/Block/BlockDeleteResponse/_Meta.php b/src/Users/Block/BlockDeleteResponse/_Meta.php index e8f83bd0..5019552e 100644 --- a/src/Users/Block/BlockDeleteResponse/_Meta.php +++ b/src/Users/Block/BlockDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Users/Block/BlockDeleteResponse/_Meta/_Cache.php b/src/Users/Block/BlockDeleteResponse/_Meta/_Cache.php index c017852f..d2e5ac3d 100644 --- a/src/Users/Block/BlockDeleteResponse/_Meta/_Cache.php +++ b/src/Users/Block/BlockDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/Block/BlockDeleteResponse/_Meta/_Credits.php b/src/Users/Block/BlockDeleteResponse/_Meta/_Credits.php index 93351e93..b1ab1022 100644 --- a/src/Users/Block/BlockDeleteResponse/_Meta/_Credits.php +++ b/src/Users/Block/BlockDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/Block/BlockDeleteResponse/_Meta/_RateLimits.php b/src/Users/Block/BlockDeleteResponse/_Meta/_RateLimits.php index 6ce6c016..b7de065d 100644 --- a/src/Users/Block/BlockDeleteResponse/_Meta/_RateLimits.php +++ b/src/Users/Block/BlockDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Block\BlockDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/Block/BlockNewResponse.php b/src/Users/Block/BlockNewResponse.php index 388ec313..933db6e2 100644 --- a/src/Users/Block/BlockNewResponse.php +++ b/src/Users/Block/BlockNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block; +namespace OnlyFansAPI\Users\Block; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockNewResponse\_Meta; -use Onlyfansapi\Users\Block\BlockNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockNewResponse\_Meta; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\Block\BlockNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\Block\BlockNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data * * @phpstan-type BlockNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/Block/BlockNewResponse/Data.php b/src/Users/Block/BlockNewResponse/Data.php index b3bc0788..2e4b2a3f 100644 --- a/src/Users/Block/BlockNewResponse/Data.php +++ b/src/Users/Block/BlockNewResponse/Data.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\AvatarThumbs; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\HeaderSize; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\HeaderThumbs; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\ListsState; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscribedByData; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscribedOnData; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscriptionBundle; +namespace OnlyFansAPI\Users\Block\BlockNewResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\AvatarThumbs; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\HeaderSize; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\HeaderThumbs; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\ListsState; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscribedByData; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscribedOnData; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscriptionBundle * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Users/Block/BlockNewResponse/Data/AvatarThumbs.php b/src/Users/Block/BlockNewResponse/Data/AvatarThumbs.php index 7fff09e6..85e9607a 100644 --- a/src/Users/Block/BlockNewResponse/Data/AvatarThumbs.php +++ b/src/Users/Block/BlockNewResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Users/Block/BlockNewResponse/Data/HeaderSize.php b/src/Users/Block/BlockNewResponse/Data/HeaderSize.php index 614721b3..450c3af0 100644 --- a/src/Users/Block/BlockNewResponse/Data/HeaderSize.php +++ b/src/Users/Block/BlockNewResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Users/Block/BlockNewResponse/Data/HeaderThumbs.php b/src/Users/Block/BlockNewResponse/Data/HeaderThumbs.php index b781bed8..1b910a81 100644 --- a/src/Users/Block/BlockNewResponse/Data/HeaderThumbs.php +++ b/src/Users/Block/BlockNewResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Users/Block/BlockNewResponse/Data/ListsState.php b/src/Users/Block/BlockNewResponse/Data/ListsState.php index bc901b69..3541b11f 100644 --- a/src/Users/Block/BlockNewResponse/Data/ListsState.php +++ b/src/Users/Block/BlockNewResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Users/Block/BlockNewResponse/Data/SubscribedByData.php b/src/Users/Block/BlockNewResponse/Data/SubscribedByData.php index 0868f9fd..ace5a60a 100644 --- a/src/Users/Block/BlockNewResponse/Data/SubscribedByData.php +++ b/src/Users/Block/BlockNewResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Users/Block/BlockNewResponse/Data/SubscribedByData/Subscribe.php b/src/Users/Block/BlockNewResponse/Data/SubscribedByData/Subscribe.php index d5236af4..5e968a19 100644 --- a/src/Users/Block/BlockNewResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Users/Block/BlockNewResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Users/Block/BlockNewResponse/Data/SubscribedOnData.php b/src/Users/Block/BlockNewResponse/Data/SubscribedOnData.php index 2faefe61..063e2cc5 100644 --- a/src/Users/Block/BlockNewResponse/Data/SubscribedOnData.php +++ b/src/Users/Block/BlockNewResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Users/Block/BlockNewResponse/Data/SubscriptionBundle.php b/src/Users/Block/BlockNewResponse/Data/SubscriptionBundle.php index e4d8c618..5256eff3 100644 --- a/src/Users/Block/BlockNewResponse/Data/SubscriptionBundle.php +++ b/src/Users/Block/BlockNewResponse/Data/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\Data; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Users/Block/BlockNewResponse/_Meta.php b/src/Users/Block/BlockNewResponse/_Meta.php index 1f799076..48e9fa17 100644 --- a/src/Users/Block/BlockNewResponse/_Meta.php +++ b/src/Users/Block/BlockNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse; +namespace OnlyFansAPI\Users\Block\BlockNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Block\BlockNewResponse\_Meta\_Cache; -use Onlyfansapi\Users\Block\BlockNewResponse\_Meta\_Credits; -use Onlyfansapi\Users\Block\BlockNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Block\BlockNewResponse\_Meta\_Cache; +use OnlyFansAPI\Users\Block\BlockNewResponse\_Meta\_Credits; +use OnlyFansAPI\Users\Block\BlockNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\Block\BlockNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\Block\BlockNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Users\Block\BlockNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\Block\BlockNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\Block\BlockNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Users\Block\BlockNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Users/Block/BlockNewResponse/_Meta/_Cache.php b/src/Users/Block/BlockNewResponse/_Meta/_Cache.php index b67a0446..b522751a 100644 --- a/src/Users/Block/BlockNewResponse/_Meta/_Cache.php +++ b/src/Users/Block/BlockNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\_Meta; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/Block/BlockNewResponse/_Meta/_Credits.php b/src/Users/Block/BlockNewResponse/_Meta/_Credits.php index 0633a58a..4b4e48ab 100644 --- a/src/Users/Block/BlockNewResponse/_Meta/_Credits.php +++ b/src/Users/Block/BlockNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\_Meta; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/Block/BlockNewResponse/_Meta/_RateLimits.php b/src/Users/Block/BlockNewResponse/_Meta/_RateLimits.php index 02eb5fdf..68397bfe 100644 --- a/src/Users/Block/BlockNewResponse/_Meta/_RateLimits.php +++ b/src/Users/Block/BlockNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Block\BlockNewResponse\_Meta; +namespace OnlyFansAPI\Users\Block\BlockNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/Restrict/RestrictCreateParams.php b/src/Users/Restrict/RestrictCreateParams.php index d0a8d31c..012101aa 100644 --- a/src/Users/Restrict/RestrictCreateParams.php +++ b/src/Users/Restrict/RestrictCreateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict; +namespace OnlyFansAPI\Users\Restrict; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Restrict a user. You will not see messages or comments from this them. * - * @see Onlyfansapi\Services\Users\RestrictService::create() + * @see OnlyFansAPI\Services\Users\RestrictService::create() * * @phpstan-type RestrictCreateParamsShape = array{account: string} */ diff --git a/src/Users/Restrict/RestrictDeleteParams.php b/src/Users/Restrict/RestrictDeleteParams.php index bf48ca1f..28d9c928 100644 --- a/src/Users/Restrict/RestrictDeleteParams.php +++ b/src/Users/Restrict/RestrictDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict; +namespace OnlyFansAPI\Users\Restrict; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unrestrict a previously restricted user. You will start seeing messages and comments from them again. * - * @see Onlyfansapi\Services\Users\RestrictService::delete() + * @see OnlyFansAPI\Services\Users\RestrictService::delete() * * @phpstan-type RestrictDeleteParamsShape = array{account: string} */ diff --git a/src/Users/Restrict/RestrictDeleteResponse.php b/src/Users/Restrict/RestrictDeleteResponse.php index a3e4e45e..c6797da4 100644 --- a/src/Users/Restrict/RestrictDeleteResponse.php +++ b/src/Users/Restrict/RestrictDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict; +namespace OnlyFansAPI\Users\Restrict; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data * * @phpstan-type RestrictDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data.php b/src/Users/Restrict/RestrictDeleteResponse/Data.php index 005b042d..503acd0b 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\AvatarThumbs; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\HeaderSize; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\HeaderThumbs; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\ListsState; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscribedOnData; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscriptionBundle; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\AvatarThumbs; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\HeaderSize; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\HeaderThumbs; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\ListsState; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscribedOnData; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscriptionBundle * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/AvatarThumbs.php b/src/Users/Restrict/RestrictDeleteResponse/Data/AvatarThumbs.php index 133e94d1..0c997daf 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/AvatarThumbs.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderSize.php b/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderSize.php index 581b5c3b..aef32337 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderSize.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderThumbs.php b/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderThumbs.php index c10465bf..9ef7bfed 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderThumbs.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/ListsState.php b/src/Users/Restrict/RestrictDeleteResponse/Data/ListsState.php index 50100df3..ded9b27d 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/ListsState.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData.php b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData.php index ae04a09a..9581bfa2 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData/Subscribe.php b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData/Subscribe.php index 73e9559c..8ec0a34a 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedOnData.php b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedOnData.php index f79545c9..dcd3aaf0 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedOnData.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscriptionBundle.php b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscriptionBundle.php index 37c291e3..d086f894 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/Data/SubscriptionBundle.php +++ b/src/Users/Restrict/RestrictDeleteResponse/Data/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Users/Restrict/RestrictDeleteResponse/_Meta.php b/src/Users/Restrict/RestrictDeleteResponse/_Meta.php index 16289363..77bf961f 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/_Meta.php +++ b/src/Users/Restrict/RestrictDeleteResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta\_Credits; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Cache.php b/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Cache.php index b92d8362..3e9a9a01 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Cache.php +++ b/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Credits.php b/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Credits.php index bcea3a02..8c3ee7aa 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Credits.php +++ b/src/Users/Restrict/RestrictDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/Restrict/RestrictDeleteResponse/_Meta/_RateLimits.php b/src/Users/Restrict/RestrictDeleteResponse/_Meta/_RateLimits.php index 05d4200f..518bcc4d 100644 --- a/src/Users/Restrict/RestrictDeleteResponse/_Meta/_RateLimits.php +++ b/src/Users/Restrict/RestrictDeleteResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Restrict\RestrictDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/Restrict/RestrictNewResponse.php b/src/Users/Restrict/RestrictNewResponse.php index 2f3c423b..d966fe69 100644 --- a/src/Users/Restrict/RestrictNewResponse.php +++ b/src/Users/Restrict/RestrictNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict; +namespace OnlyFansAPI\Users\Restrict; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data * * @phpstan-type RestrictNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/Restrict/RestrictNewResponse/Data.php b/src/Users/Restrict/RestrictNewResponse/Data.php index 5a327d9b..41a17820 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data.php +++ b/src/Users/Restrict/RestrictNewResponse/Data.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\AvatarThumbs; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\HeaderSize; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\HeaderThumbs; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\ListsState; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscribedByData; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscribedOnData; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscriptionBundle; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\AvatarThumbs; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\HeaderSize; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\HeaderThumbs; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\ListsState; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscribedByData; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscribedOnData; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscriptionBundle * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Users/Restrict/RestrictNewResponse/Data/AvatarThumbs.php b/src/Users/Restrict/RestrictNewResponse/Data/AvatarThumbs.php index 301b7e04..f3f61932 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/AvatarThumbs.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Users/Restrict/RestrictNewResponse/Data/HeaderSize.php b/src/Users/Restrict/RestrictNewResponse/Data/HeaderSize.php index 9009387d..4f24ff3d 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/HeaderSize.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Users/Restrict/RestrictNewResponse/Data/HeaderThumbs.php b/src/Users/Restrict/RestrictNewResponse/Data/HeaderThumbs.php index eda2329a..88ea5975 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/HeaderThumbs.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Users/Restrict/RestrictNewResponse/Data/ListsState.php b/src/Users/Restrict/RestrictNewResponse/Data/ListsState.php index e08eecc7..7f5947ab 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/ListsState.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData.php b/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData.php index 80e0ef36..986e05bd 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData/Subscribe.php b/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData/Subscribe.php index 3c14a82f..4fd11863 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Users/Restrict/RestrictNewResponse/Data/SubscribedOnData.php b/src/Users/Restrict/RestrictNewResponse/Data/SubscribedOnData.php index ecaff4af..99aa61c0 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/SubscribedOnData.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Users/Restrict/RestrictNewResponse/Data/SubscriptionBundle.php b/src/Users/Restrict/RestrictNewResponse/Data/SubscriptionBundle.php index 038e8d24..d3a11153 100644 --- a/src/Users/Restrict/RestrictNewResponse/Data/SubscriptionBundle.php +++ b/src/Users/Restrict/RestrictNewResponse/Data/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\Data; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Users/Restrict/RestrictNewResponse/_Meta.php b/src/Users/Restrict/RestrictNewResponse/_Meta.php index cc8f6e10..be413eb5 100644 --- a/src/Users/Restrict/RestrictNewResponse/_Meta.php +++ b/src/Users/Restrict/RestrictNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta\_Cache; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta\_Credits; -use Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta\_Cache; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta\_Credits; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Users/Restrict/RestrictNewResponse/_Meta/_Cache.php b/src/Users/Restrict/RestrictNewResponse/_Meta/_Cache.php index 000e3c68..704ba4cc 100644 --- a/src/Users/Restrict/RestrictNewResponse/_Meta/_Cache.php +++ b/src/Users/Restrict/RestrictNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/Restrict/RestrictNewResponse/_Meta/_Credits.php b/src/Users/Restrict/RestrictNewResponse/_Meta/_Credits.php index c64da3d8..1c813083 100644 --- a/src/Users/Restrict/RestrictNewResponse/_Meta/_Credits.php +++ b/src/Users/Restrict/RestrictNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/Restrict/RestrictNewResponse/_Meta/_RateLimits.php b/src/Users/Restrict/RestrictNewResponse/_Meta/_RateLimits.php index 74e0911e..61cab43e 100644 --- a/src/Users/Restrict/RestrictNewResponse/_Meta/_RateLimits.php +++ b/src/Users/Restrict/RestrictNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Restrict\RestrictNewResponse\_Meta; +namespace OnlyFansAPI\Users\Restrict\RestrictNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/Subscribe/SubscribeCreateParams.php b/src/Users/Subscribe/SubscribeCreateParams.php index 5311d4c6..8f88181a 100644 --- a/src/Users/Subscribe/SubscribeCreateParams.php +++ b/src/Users/Subscribe/SubscribeCreateParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe; +namespace OnlyFansAPI\Users\Subscribe; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Subscribe to a user's profile. * - * @see Onlyfansapi\Services\Users\SubscribeService::create() + * @see OnlyFansAPI\Services\Users\SubscribeService::create() * * @phpstan-type SubscribeCreateParamsShape = array{account: string} */ diff --git a/src/Users/Subscribe/SubscribeDeleteParams.php b/src/Users/Subscribe/SubscribeDeleteParams.php index 0f414a53..2c105f3e 100644 --- a/src/Users/Subscribe/SubscribeDeleteParams.php +++ b/src/Users/Subscribe/SubscribeDeleteParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe; +namespace OnlyFansAPI\Users\Subscribe; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Unsubscribe from a user's profile. * - * @see Onlyfansapi\Services\Users\SubscribeService::delete() + * @see OnlyFansAPI\Services\Users\SubscribeService::delete() * * @phpstan-type SubscribeDeleteParamsShape = array{ * account: string, reason: string diff --git a/src/Users/Subscribe/SubscribeDeleteResponse.php b/src/Users/Subscribe/SubscribeDeleteResponse.php index d37ee4b9..ff2819ca 100644 --- a/src/Users/Subscribe/SubscribeDeleteResponse.php +++ b/src/Users/Subscribe/SubscribeDeleteResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe; +namespace OnlyFansAPI\Users\Subscribe; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\Data * * @phpstan-type SubscribeDeleteResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/Subscribe/SubscribeDeleteResponse/Data.php b/src/Users/Subscribe/SubscribeDeleteResponse/Data.php index 974572e5..e22c147c 100644 --- a/src/Users/Subscribe/SubscribeDeleteResponse/Data.php +++ b/src/Users/Subscribe/SubscribeDeleteResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse; +namespace OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{message?: string|null, success?: bool|null} diff --git a/src/Users/Subscribe/SubscribeDeleteResponse/_Meta.php b/src/Users/Subscribe/SubscribeDeleteResponse/_Meta.php index d639b730..0170ff32 100644 --- a/src/Users/Subscribe/SubscribeDeleteResponse/_Meta.php +++ b/src/Users/Subscribe/SubscribeDeleteResponse/_Meta.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse; +namespace OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Cache; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Credits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Cache; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Credits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Credits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta\_Credits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, _credits?: null|_Credits|_CreditsShape diff --git a/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Cache.php b/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Cache.php index 628a2f22..4379e570 100644 --- a/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Cache.php +++ b/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Credits.php b/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Credits.php index 4763f5fc..6e85b0aa 100644 --- a/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Credits.php +++ b/src/Users/Subscribe/SubscribeDeleteResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse\_Meta; +namespace OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/Subscribe/SubscribeNewResponse.php b/src/Users/Subscribe/SubscribeNewResponse.php index 72098652..8f034847 100644 --- a/src/Users/Subscribe/SubscribeNewResponse.php +++ b/src/Users/Subscribe/SubscribeNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe; +namespace OnlyFansAPI\Users\Subscribe; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data * * @phpstan-type SubscribeNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/Subscribe/SubscribeNewResponse/Data.php b/src/Users/Subscribe/SubscribeNewResponse/Data.php index fa4f4cb5..bf42bf13 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/Data.php +++ b/src/Users/Subscribe/SubscribeNewResponse/Data.php @@ -2,23 +2,23 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\AvatarThumbs; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\HeaderSize; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\HeaderThumbs; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\ListsState; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\AvatarThumbs; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\HeaderSize; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\HeaderThumbs; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\ListsState; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Users/Subscribe/SubscribeNewResponse/Data/AvatarThumbs.php b/src/Users/Subscribe/SubscribeNewResponse/Data/AvatarThumbs.php index d3837258..a3246eaa 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/Data/AvatarThumbs.php +++ b/src/Users/Subscribe/SubscribeNewResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderSize.php b/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderSize.php index 7a17dfce..bbe2a98e 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderSize.php +++ b/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderThumbs.php b/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderThumbs.php index e4bafb88..b92a27bc 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderThumbs.php +++ b/src/Users/Subscribe/SubscribeNewResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Users/Subscribe/SubscribeNewResponse/Data/ListsState.php b/src/Users/Subscribe/SubscribeNewResponse/Data/ListsState.php index f4d6f748..ebb6f29f 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/Data/ListsState.php +++ b/src/Users/Subscribe/SubscribeNewResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData.php b/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData.php index bbb42ec6..c4ad4096 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData.php +++ b/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData/Subscribe.php b/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData/Subscribe.php index 618a66c6..88db2466 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Users/Subscribe/SubscribeNewResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Users/Subscribe/SubscribeNewResponse/_Meta.php b/src/Users/Subscribe/SubscribeNewResponse/_Meta.php index 8aeef06c..8aa73a15 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/_Meta.php +++ b/src/Users/Subscribe/SubscribeNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta\_Cache; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta\_Credits; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta\_Cache; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta\_Credits; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Cache.php b/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Cache.php index 6e092d97..e483c0e2 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Cache.php +++ b/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Credits.php b/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Credits.php index ca1095ad..d6946593 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Credits.php +++ b/src/Users/Subscribe/SubscribeNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/Subscribe/SubscribeNewResponse/_Meta/_RateLimits.php b/src/Users/Subscribe/SubscribeNewResponse/_Meta/_RateLimits.php index 8f142bdc..dee4ce4d 100644 --- a/src/Users/Subscribe/SubscribeNewResponse/_Meta/_RateLimits.php +++ b/src/Users/Subscribe/SubscribeNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\Subscribe\SubscribeNewResponse\_Meta; +namespace OnlyFansAPI\Users\Subscribe\SubscribeNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/UserGetResponse.php b/src/Users/UserGetResponse.php index 92588caa..1a6f2be8 100644 --- a/src/Users/UserGetResponse.php +++ b/src/Users/UserGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users; +namespace OnlyFansAPI\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserGetResponse\_Meta; -use Onlyfansapi\Users\UserGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserGetResponse\_Meta; +use OnlyFansAPI\Users\UserGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\UserGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\UserGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\UserGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\UserGetResponse\Data * * @phpstan-type UserGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/UserGetResponse/Data.php b/src/Users/UserGetResponse/Data.php index 62ca641c..f758614f 100644 --- a/src/Users/UserGetResponse/Data.php +++ b/src/Users/UserGetResponse/Data.php @@ -2,27 +2,27 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse; - -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserGetResponse\Data\AvatarThumbs; -use Onlyfansapi\Users\UserGetResponse\Data\HeaderSize; -use Onlyfansapi\Users\UserGetResponse\Data\HeaderThumbs; -use Onlyfansapi\Users\UserGetResponse\Data\ListsState; -use Onlyfansapi\Users\UserGetResponse\Data\SubscribedByData; -use Onlyfansapi\Users\UserGetResponse\Data\SubscribedOnData; -use Onlyfansapi\Users\UserGetResponse\Data\SubscriptionBundle; +namespace OnlyFansAPI\Users\UserGetResponse; + +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserGetResponse\Data\AvatarThumbs; +use OnlyFansAPI\Users\UserGetResponse\Data\HeaderSize; +use OnlyFansAPI\Users\UserGetResponse\Data\HeaderThumbs; +use OnlyFansAPI\Users\UserGetResponse\Data\ListsState; +use OnlyFansAPI\Users\UserGetResponse\Data\SubscribedByData; +use OnlyFansAPI\Users\UserGetResponse\Data\SubscribedOnData; +use OnlyFansAPI\Users\UserGetResponse\Data\SubscriptionBundle; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Users\UserGetResponse\Data\AvatarThumbs - * @phpstan-import-type HeaderSizeShape from \Onlyfansapi\Users\UserGetResponse\Data\HeaderSize - * @phpstan-import-type HeaderThumbsShape from \Onlyfansapi\Users\UserGetResponse\Data\HeaderThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Users\UserGetResponse\Data\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Users\UserGetResponse\Data\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Users\UserGetResponse\Data\SubscribedOnData - * @phpstan-import-type SubscriptionBundleShape from \Onlyfansapi\Users\UserGetResponse\Data\SubscriptionBundle + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Users\UserGetResponse\Data\AvatarThumbs + * @phpstan-import-type HeaderSizeShape from \OnlyFansAPI\Users\UserGetResponse\Data\HeaderSize + * @phpstan-import-type HeaderThumbsShape from \OnlyFansAPI\Users\UserGetResponse\Data\HeaderThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Users\UserGetResponse\Data\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Users\UserGetResponse\Data\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Users\UserGetResponse\Data\SubscribedOnData + * @phpstan-import-type SubscriptionBundleShape from \OnlyFansAPI\Users\UserGetResponse\Data\SubscriptionBundle * * @phpstan-type DataShape = array{ * id?: int|null, diff --git a/src/Users/UserGetResponse/Data/AvatarThumbs.php b/src/Users/UserGetResponse/Data/AvatarThumbs.php index 0f8b1b0e..65bb178d 100644 --- a/src/Users/UserGetResponse/Data/AvatarThumbs.php +++ b/src/Users/UserGetResponse/Data/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data; +namespace OnlyFansAPI\Users\UserGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Users/UserGetResponse/Data/HeaderSize.php b/src/Users/UserGetResponse/Data/HeaderSize.php index 973143ef..fece0f3d 100644 --- a/src/Users/UserGetResponse/Data/HeaderSize.php +++ b/src/Users/UserGetResponse/Data/HeaderSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data; +namespace OnlyFansAPI\Users\UserGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderSizeShape = array{height?: int|null, width?: int|null} diff --git a/src/Users/UserGetResponse/Data/HeaderThumbs.php b/src/Users/UserGetResponse/Data/HeaderThumbs.php index 79ee1b6b..5022e255 100644 --- a/src/Users/UserGetResponse/Data/HeaderThumbs.php +++ b/src/Users/UserGetResponse/Data/HeaderThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data; +namespace OnlyFansAPI\Users\UserGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type HeaderThumbsShape = array{w480?: string|null, w760?: string|null} diff --git a/src/Users/UserGetResponse/Data/ListsState.php b/src/Users/UserGetResponse/Data/ListsState.php index 67f75c98..494195ac 100644 --- a/src/Users/UserGetResponse/Data/ListsState.php +++ b/src/Users/UserGetResponse/Data/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data; +namespace OnlyFansAPI\Users\UserGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Users/UserGetResponse/Data/SubscribedByData.php b/src/Users/UserGetResponse/Data/SubscribedByData.php index a92c156b..2b522585 100644 --- a/src/Users/UserGetResponse/Data/SubscribedByData.php +++ b/src/Users/UserGetResponse/Data/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data; +namespace OnlyFansAPI\Users\UserGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserGetResponse\Data\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserGetResponse\Data\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Users\UserGetResponse\Data\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Users\UserGetResponse\Data\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Users/UserGetResponse/Data/SubscribedByData/Subscribe.php b/src/Users/UserGetResponse/Data/SubscribedByData/Subscribe.php index 948b49f3..a769063e 100644 --- a/src/Users/UserGetResponse/Data/SubscribedByData/Subscribe.php +++ b/src/Users/UserGetResponse/Data/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data\SubscribedByData; +namespace OnlyFansAPI\Users\UserGetResponse\Data\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Users/UserGetResponse/Data/SubscribedOnData.php b/src/Users/UserGetResponse/Data/SubscribedOnData.php index 8062b86c..6d045059 100644 --- a/src/Users/UserGetResponse/Data/SubscribedOnData.php +++ b/src/Users/UserGetResponse/Data/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data; +namespace OnlyFansAPI\Users\UserGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Users/UserGetResponse/Data/SubscriptionBundle.php b/src/Users/UserGetResponse/Data/SubscriptionBundle.php index cdfbb0d4..9fd3f420 100644 --- a/src/Users/UserGetResponse/Data/SubscriptionBundle.php +++ b/src/Users/UserGetResponse/Data/SubscriptionBundle.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\Data; +namespace OnlyFansAPI\Users\UserGetResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscriptionBundleShape = array{ diff --git a/src/Users/UserGetResponse/_Meta.php b/src/Users/UserGetResponse/_Meta.php index 0772fd86..4ad75281 100644 --- a/src/Users/UserGetResponse/_Meta.php +++ b/src/Users/UserGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse; +namespace OnlyFansAPI\Users\UserGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserGetResponse\_Meta\_Cache; -use Onlyfansapi\Users\UserGetResponse\_Meta\_Credits; -use Onlyfansapi\Users\UserGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserGetResponse\_Meta\_Cache; +use OnlyFansAPI\Users\UserGetResponse\_Meta\_Credits; +use OnlyFansAPI\Users\UserGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\UserGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\UserGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Users\UserGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\UserGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\UserGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Users\UserGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Users/UserGetResponse/_Meta/_Cache.php b/src/Users/UserGetResponse/_Meta/_Cache.php index 274cfd0e..e9652d51 100644 --- a/src/Users/UserGetResponse/_Meta/_Cache.php +++ b/src/Users/UserGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\_Meta; +namespace OnlyFansAPI\Users\UserGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/UserGetResponse/_Meta/_Credits.php b/src/Users/UserGetResponse/_Meta/_Credits.php index e536b814..dfa98b4f 100644 --- a/src/Users/UserGetResponse/_Meta/_Credits.php +++ b/src/Users/UserGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\_Meta; +namespace OnlyFansAPI\Users\UserGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/UserGetResponse/_Meta/_RateLimits.php b/src/Users/UserGetResponse/_Meta/_RateLimits.php index 4fb338c4..9dc19726 100644 --- a/src/Users/UserGetResponse/_Meta/_RateLimits.php +++ b/src/Users/UserGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserGetResponse\_Meta; +namespace OnlyFansAPI\Users\UserGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/UserListParams.php b/src/Users/UserListParams.php index a6344f8c..ae036698 100644 --- a/src/Users/UserListParams.php +++ b/src/Users/UserListParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users; +namespace OnlyFansAPI\Users; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Save on credits by getting up to 10 user details with a single request. User details are retrieved using the current `{account}` so fields like `subscribedOnData` which include potential subscription details will be included. * - * @see Onlyfansapi\Services\UsersService::list() + * @see OnlyFansAPI\Services\UsersService::list() * * @phpstan-type UserListParamsShape = array{ids: string} */ diff --git a/src/Users/UserListResponse.php b/src/Users/UserListResponse.php index f7000acb..fe7bdf11 100644 --- a/src/Users/UserListResponse.php +++ b/src/Users/UserListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users; +namespace OnlyFansAPI\Users; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserListResponse\_Meta; -use Onlyfansapi\Users\UserListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserListResponse\_Meta; +use OnlyFansAPI\Users\UserListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Users\UserListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Users\UserListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Users\UserListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Users\UserListResponse\Data * * @phpstan-type UserListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Users/UserListResponse/Data.php b/src/Users/UserListResponse/Data.php index f052c86c..199a2cbf 100644 --- a/src/Users/UserListResponse/Data.php +++ b/src/Users/UserListResponse/Data.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse; +namespace OnlyFansAPI\Users\UserListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserListResponse\Data\_1000000; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserListResponse\Data\_1000000; /** - * @phpstan-import-type _1000000Shape from \Onlyfansapi\Users\UserListResponse\Data\_1000000 + * @phpstan-import-type _1000000Shape from \OnlyFansAPI\Users\UserListResponse\Data\_1000000 * * @phpstan-type DataShape = array{ - * _1000000?: null|\Onlyfansapi\Users\UserListResponse\Data\_1000000|_1000000Shape, + * _1000000?: null|\OnlyFansAPI\Users\UserListResponse\Data\_1000000|_1000000Shape, * } */ final class Data implements BaseModel diff --git a/src/Users/UserListResponse/Data/_1000000.php b/src/Users/UserListResponse/Data/_1000000.php index da7c6108..fba2c0f0 100644 --- a/src/Users/UserListResponse/Data/_1000000.php +++ b/src/Users/UserListResponse/Data/_1000000.php @@ -2,21 +2,21 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\Data; +namespace OnlyFansAPI\Users\UserListResponse\Data; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserListResponse\Data\_1000000\AvatarThumbs; -use Onlyfansapi\Users\UserListResponse\Data\_1000000\ListsState; -use Onlyfansapi\Users\UserListResponse\Data\_1000000\SubscribedByData; -use Onlyfansapi\Users\UserListResponse\Data\_1000000\SubscribedOnData; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserListResponse\Data\_1000000\AvatarThumbs; +use OnlyFansAPI\Users\UserListResponse\Data\_1000000\ListsState; +use OnlyFansAPI\Users\UserListResponse\Data\_1000000\SubscribedByData; +use OnlyFansAPI\Users\UserListResponse\Data\_1000000\SubscribedOnData; /** - * @phpstan-import-type AvatarThumbsShape from \Onlyfansapi\Users\UserListResponse\Data\_1000000\AvatarThumbs - * @phpstan-import-type ListsStateShape from \Onlyfansapi\Users\UserListResponse\Data\_1000000\ListsState - * @phpstan-import-type SubscribedByDataShape from \Onlyfansapi\Users\UserListResponse\Data\_1000000\SubscribedByData - * @phpstan-import-type SubscribedOnDataShape from \Onlyfansapi\Users\UserListResponse\Data\_1000000\SubscribedOnData + * @phpstan-import-type AvatarThumbsShape from \OnlyFansAPI\Users\UserListResponse\Data\_1000000\AvatarThumbs + * @phpstan-import-type ListsStateShape from \OnlyFansAPI\Users\UserListResponse\Data\_1000000\ListsState + * @phpstan-import-type SubscribedByDataShape from \OnlyFansAPI\Users\UserListResponse\Data\_1000000\SubscribedByData + * @phpstan-import-type SubscribedOnDataShape from \OnlyFansAPI\Users\UserListResponse\Data\_1000000\SubscribedOnData * * @phpstan-type _1000000Shape = array{ * id?: int|null, diff --git a/src/Users/UserListResponse/Data/_1000000/AvatarThumbs.php b/src/Users/UserListResponse/Data/_1000000/AvatarThumbs.php index c4e72669..2a206438 100644 --- a/src/Users/UserListResponse/Data/_1000000/AvatarThumbs.php +++ b/src/Users/UserListResponse/Data/_1000000/AvatarThumbs.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\Data\_1000000; +namespace OnlyFansAPI\Users\UserListResponse\Data\_1000000; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type AvatarThumbsShape = array{c144?: string|null, c50?: string|null} diff --git a/src/Users/UserListResponse/Data/_1000000/ListsState.php b/src/Users/UserListResponse/Data/_1000000/ListsState.php index 28a26cd1..2cea6291 100644 --- a/src/Users/UserListResponse/Data/_1000000/ListsState.php +++ b/src/Users/UserListResponse/Data/_1000000/ListsState.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\Data\_1000000; +namespace OnlyFansAPI\Users\UserListResponse\Data\_1000000; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type ListsStateShape = array{ diff --git a/src/Users/UserListResponse/Data/_1000000/SubscribedByData.php b/src/Users/UserListResponse/Data/_1000000/SubscribedByData.php index fd6c73de..a8e0aa95 100644 --- a/src/Users/UserListResponse/Data/_1000000/SubscribedByData.php +++ b/src/Users/UserListResponse/Data/_1000000/SubscribedByData.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\Data\_1000000; +namespace OnlyFansAPI\Users\UserListResponse\Data\_1000000; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserListResponse\Data\_1000000\SubscribedByData\Subscribe; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserListResponse\Data\_1000000\SubscribedByData\Subscribe; /** - * @phpstan-import-type SubscribeShape from \Onlyfansapi\Users\UserListResponse\Data\_1000000\SubscribedByData\Subscribe + * @phpstan-import-type SubscribeShape from \OnlyFansAPI\Users\UserListResponse\Data\_1000000\SubscribedByData\Subscribe * * @phpstan-type SubscribedByDataShape = array{ * discountFinishedAt?: string|null, diff --git a/src/Users/UserListResponse/Data/_1000000/SubscribedByData/Subscribe.php b/src/Users/UserListResponse/Data/_1000000/SubscribedByData/Subscribe.php index e7405673..3d32cc0f 100644 --- a/src/Users/UserListResponse/Data/_1000000/SubscribedByData/Subscribe.php +++ b/src/Users/UserListResponse/Data/_1000000/SubscribedByData/Subscribe.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\Data\_1000000\SubscribedByData; +namespace OnlyFansAPI\Users\UserListResponse\Data\_1000000\SubscribedByData; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribeShape = array{ diff --git a/src/Users/UserListResponse/Data/_1000000/SubscribedOnData.php b/src/Users/UserListResponse/Data/_1000000/SubscribedOnData.php index 797c828b..8a7133d4 100644 --- a/src/Users/UserListResponse/Data/_1000000/SubscribedOnData.php +++ b/src/Users/UserListResponse/Data/_1000000/SubscribedOnData.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\Data\_1000000; +namespace OnlyFansAPI\Users\UserListResponse\Data\_1000000; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type SubscribedOnDataShape = array{ diff --git a/src/Users/UserListResponse/_Meta.php b/src/Users/UserListResponse/_Meta.php index 8f9b146e..0cce9712 100644 --- a/src/Users/UserListResponse/_Meta.php +++ b/src/Users/UserListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse; +namespace OnlyFansAPI\Users\UserListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Users\UserListResponse\_Meta\_Cache; -use Onlyfansapi\Users\UserListResponse\_Meta\_Credits; -use Onlyfansapi\Users\UserListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Users\UserListResponse\_Meta\_Cache; +use OnlyFansAPI\Users\UserListResponse\_Meta\_Credits; +use OnlyFansAPI\Users\UserListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Users\UserListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Users\UserListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Users\UserListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Users\UserListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Users\UserListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Users\UserListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Users/UserListResponse/_Meta/_Cache.php b/src/Users/UserListResponse/_Meta/_Cache.php index fb7900f8..4eaae2e7 100644 --- a/src/Users/UserListResponse/_Meta/_Cache.php +++ b/src/Users/UserListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\_Meta; +namespace OnlyFansAPI\Users\UserListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Users/UserListResponse/_Meta/_Credits.php b/src/Users/UserListResponse/_Meta/_Credits.php index 0c827abb..b0aeacb8 100644 --- a/src/Users/UserListResponse/_Meta/_Credits.php +++ b/src/Users/UserListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\_Meta; +namespace OnlyFansAPI\Users\UserListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Users/UserListResponse/_Meta/_RateLimits.php b/src/Users/UserListResponse/_Meta/_RateLimits.php index b24c3ff3..0812039e 100644 --- a/src/Users/UserListResponse/_Meta/_RateLimits.php +++ b/src/Users/UserListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Users\UserListResponse\_Meta; +namespace OnlyFansAPI\Users\UserListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Users/UserRetrieveParams.php b/src/Users/UserRetrieveParams.php index d7bb62c7..1f6380fd 100644 --- a/src/Users/UserRetrieveParams.php +++ b/src/Users/UserRetrieveParams.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Users; +namespace OnlyFansAPI\Users; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Get OnlyFans Profile details for a given username. User details are retrieved using the current `{account}` so fields like `subscribedOnData` which include potential subscription details will be included. * - * @see Onlyfansapi\Services\UsersService::retrieve() + * @see OnlyFansAPI\Services\UsersService::retrieve() * * @phpstan-type UserRetrieveParamsShape = array{account: string} */ diff --git a/src/Version.php b/src/Version.php index 7500ce37..59d80d80 100644 --- a/src/Version.php +++ b/src/Version.php @@ -2,8 +2,8 @@ declare(strict_types=1); -namespace Onlyfansapi; +namespace OnlyFansAPI; // x-release-please-start-version -const VERSION = '0.2.0'; +const VERSION = '0.3.0'; // x-release-please-end diff --git a/src/Webhooks/WebhookCreateParams.php b/src/Webhooks/WebhookCreateParams.php index 61a0962a..59c5e16e 100644 --- a/src/Webhooks/WebhookCreateParams.php +++ b/src/Webhooks/WebhookCreateParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks; +namespace OnlyFansAPI\Webhooks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Create a new webhook for your Team. * - * @see Onlyfansapi\Services\WebhooksService::create() + * @see OnlyFansAPI\Services\WebhooksService::create() * * @phpstan-type WebhookCreateParamsShape = array{ * accountScope: string, @@ -30,7 +30,7 @@ final class WebhookCreateParams implements BaseModel use SdkParams; /** - * The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. */ #[Required('account_scope')] public string $accountScope; @@ -42,7 +42,7 @@ final class WebhookCreateParams implements BaseModel public string $endpointURL; /** - * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. + * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. * * @var list $events */ @@ -50,7 +50,7 @@ final class WebhookCreateParams implements BaseModel public array $events; /** - * An array of account IDs to apply the scope to. Required unless account_scope is "global". + * An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * * @var list|null $accountIDs */ @@ -113,7 +113,7 @@ public static function with( } /** - * The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. */ public function withAccountScope(string $accountScope): self { @@ -135,7 +135,7 @@ public function withEndpointURL(string $endpointURL): self } /** - * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. + * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. * * @param list $events */ @@ -148,7 +148,7 @@ public function withEvents(array $events): self } /** - * An array of account IDs to apply the scope to. Required unless account_scope is "global". + * An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * * @param list $accountIDs */ diff --git a/src/Webhooks/WebhookGetResponse.php b/src/Webhooks/WebhookGetResponse.php index ad253d3b..6bf90978 100644 --- a/src/Webhooks/WebhookGetResponse.php +++ b/src/Webhooks/WebhookGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks; +namespace OnlyFansAPI\Webhooks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookGetResponse\_Meta; -use Onlyfansapi\Webhooks\WebhookGetResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta; +use OnlyFansAPI\Webhooks\WebhookGetResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Webhooks\WebhookGetResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Webhooks\WebhookGetResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Webhooks\WebhookGetResponse\Data * * @phpstan-type WebhookGetResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Webhooks/WebhookGetResponse/Data.php b/src/Webhooks/WebhookGetResponse/Data.php index 625d1f09..49a7534f 100644 --- a/src/Webhooks/WebhookGetResponse/Data.php +++ b/src/Webhooks/WebhookGetResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookGetResponse; +namespace OnlyFansAPI\Webhooks\WebhookGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Webhooks/WebhookGetResponse/_Meta.php b/src/Webhooks/WebhookGetResponse/_Meta.php index 93f058dd..ae1f14b7 100644 --- a/src/Webhooks/WebhookGetResponse/_Meta.php +++ b/src/Webhooks/WebhookGetResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookGetResponse; +namespace OnlyFansAPI\Webhooks\WebhookGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookGetResponse\_Meta\_Cache; -use Onlyfansapi\Webhooks\WebhookGetResponse\_Meta\_Credits; -use Onlyfansapi\Webhooks\WebhookGetResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta\_Cache; +use OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta\_Credits; +use OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Webhooks\WebhookGetResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Webhooks\WebhookGetResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Webhooks\WebhookGetResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Webhooks/WebhookGetResponse/_Meta/_Cache.php b/src/Webhooks/WebhookGetResponse/_Meta/_Cache.php index 5ad5f435..8dd10b60 100644 --- a/src/Webhooks/WebhookGetResponse/_Meta/_Cache.php +++ b/src/Webhooks/WebhookGetResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookGetResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Webhooks/WebhookGetResponse/_Meta/_Credits.php b/src/Webhooks/WebhookGetResponse/_Meta/_Credits.php index e5b430b0..b9fdf9d6 100644 --- a/src/Webhooks/WebhookGetResponse/_Meta/_Credits.php +++ b/src/Webhooks/WebhookGetResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookGetResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Webhooks/WebhookGetResponse/_Meta/_RateLimits.php b/src/Webhooks/WebhookGetResponse/_Meta/_RateLimits.php index 7890edae..78befc8c 100644 --- a/src/Webhooks/WebhookGetResponse/_Meta/_RateLimits.php +++ b/src/Webhooks/WebhookGetResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookGetResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookGetResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Webhooks/WebhookListEventsResponse.php b/src/Webhooks/WebhookListEventsResponse.php index 6ab81df3..5f7ce8c4 100644 --- a/src/Webhooks/WebhookListEventsResponse.php +++ b/src/Webhooks/WebhookListEventsResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks; +namespace OnlyFansAPI\Webhooks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta; -use Onlyfansapi\Webhooks\WebhookListEventsResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Webhooks\WebhookListEventsResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Webhooks\WebhookListEventsResponse\Data * * @phpstan-type WebhookListEventsResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Webhooks/WebhookListEventsResponse/Data.php b/src/Webhooks/WebhookListEventsResponse/Data.php index e21dd5dd..10fb95c9 100644 --- a/src/Webhooks/WebhookListEventsResponse/Data.php +++ b/src/Webhooks/WebhookListEventsResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListEventsResponse; +namespace OnlyFansAPI\Webhooks\WebhookListEventsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{description?: string|null, value?: string|null} diff --git a/src/Webhooks/WebhookListEventsResponse/_Meta.php b/src/Webhooks/WebhookListEventsResponse/_Meta.php index 843d58c0..05a1e7ec 100644 --- a/src/Webhooks/WebhookListEventsResponse/_Meta.php +++ b/src/Webhooks/WebhookListEventsResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListEventsResponse; +namespace OnlyFansAPI\Webhooks\WebhookListEventsResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta\_Cache; -use Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta\_Credits; -use Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta\_Cache; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta\_Credits; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Webhooks/WebhookListEventsResponse/_Meta/_Cache.php b/src/Webhooks/WebhookListEventsResponse/_Meta/_Cache.php index 9f19275f..43a12769 100644 --- a/src/Webhooks/WebhookListEventsResponse/_Meta/_Cache.php +++ b/src/Webhooks/WebhookListEventsResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Webhooks/WebhookListEventsResponse/_Meta/_Credits.php b/src/Webhooks/WebhookListEventsResponse/_Meta/_Credits.php index ccbb6272..85cfff74 100644 --- a/src/Webhooks/WebhookListEventsResponse/_Meta/_Credits.php +++ b/src/Webhooks/WebhookListEventsResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Webhooks/WebhookListEventsResponse/_Meta/_RateLimits.php b/src/Webhooks/WebhookListEventsResponse/_Meta/_RateLimits.php index a35086d2..a470dab5 100644 --- a/src/Webhooks/WebhookListEventsResponse/_Meta/_RateLimits.php +++ b/src/Webhooks/WebhookListEventsResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListEventsResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookListEventsResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Webhooks/WebhookListResponse.php b/src/Webhooks/WebhookListResponse.php index 005916d1..6086d4fb 100644 --- a/src/Webhooks/WebhookListResponse.php +++ b/src/Webhooks/WebhookListResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks; +namespace OnlyFansAPI\Webhooks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookListResponse\_Meta; -use Onlyfansapi\Webhooks\WebhookListResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookListResponse\_Meta; +use OnlyFansAPI\Webhooks\WebhookListResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Webhooks\WebhookListResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Webhooks\WebhookListResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Webhooks\WebhookListResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Webhooks\WebhookListResponse\Data * * @phpstan-type WebhookListResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: list|null diff --git a/src/Webhooks/WebhookListResponse/Data.php b/src/Webhooks/WebhookListResponse/Data.php index 8514d3bc..1da24714 100644 --- a/src/Webhooks/WebhookListResponse/Data.php +++ b/src/Webhooks/WebhookListResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListResponse; +namespace OnlyFansAPI\Webhooks\WebhookListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Webhooks/WebhookListResponse/_Meta.php b/src/Webhooks/WebhookListResponse/_Meta.php index d40a1a69..3263a6ab 100644 --- a/src/Webhooks/WebhookListResponse/_Meta.php +++ b/src/Webhooks/WebhookListResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListResponse; +namespace OnlyFansAPI\Webhooks\WebhookListResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookListResponse\_Meta\_Cache; -use Onlyfansapi\Webhooks\WebhookListResponse\_Meta\_Credits; -use Onlyfansapi\Webhooks\WebhookListResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookListResponse\_Meta\_Cache; +use OnlyFansAPI\Webhooks\WebhookListResponse\_Meta\_Credits; +use OnlyFansAPI\Webhooks\WebhookListResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Webhooks\WebhookListResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Webhooks\WebhookListResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Webhooks\WebhookListResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Webhooks\WebhookListResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Webhooks\WebhookListResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Webhooks\WebhookListResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Webhooks/WebhookListResponse/_Meta/_Cache.php b/src/Webhooks/WebhookListResponse/_Meta/_Cache.php index 629d5b78..0472b3b3 100644 --- a/src/Webhooks/WebhookListResponse/_Meta/_Cache.php +++ b/src/Webhooks/WebhookListResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Webhooks/WebhookListResponse/_Meta/_Credits.php b/src/Webhooks/WebhookListResponse/_Meta/_Credits.php index 5f7b4856..09d21f6e 100644 --- a/src/Webhooks/WebhookListResponse/_Meta/_Credits.php +++ b/src/Webhooks/WebhookListResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Webhooks/WebhookListResponse/_Meta/_RateLimits.php b/src/Webhooks/WebhookListResponse/_Meta/_RateLimits.php index 79816cf1..244c85dd 100644 --- a/src/Webhooks/WebhookListResponse/_Meta/_RateLimits.php +++ b/src/Webhooks/WebhookListResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookListResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookListResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Webhooks/WebhookNewResponse.php b/src/Webhooks/WebhookNewResponse.php index dbe04724..37b13b10 100644 --- a/src/Webhooks/WebhookNewResponse.php +++ b/src/Webhooks/WebhookNewResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks; +namespace OnlyFansAPI\Webhooks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookNewResponse\_Meta; -use Onlyfansapi\Webhooks\WebhookNewResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta; +use OnlyFansAPI\Webhooks\WebhookNewResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Webhooks\WebhookNewResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Webhooks\WebhookNewResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Webhooks\WebhookNewResponse\Data * * @phpstan-type WebhookNewResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Webhooks/WebhookNewResponse/Data.php b/src/Webhooks/WebhookNewResponse/Data.php index 7e64778e..3da6dd26 100644 --- a/src/Webhooks/WebhookNewResponse/Data.php +++ b/src/Webhooks/WebhookNewResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookNewResponse; +namespace OnlyFansAPI\Webhooks\WebhookNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Webhooks/WebhookNewResponse/_Meta.php b/src/Webhooks/WebhookNewResponse/_Meta.php index de3ecd03..727dcf98 100644 --- a/src/Webhooks/WebhookNewResponse/_Meta.php +++ b/src/Webhooks/WebhookNewResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookNewResponse; +namespace OnlyFansAPI\Webhooks\WebhookNewResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookNewResponse\_Meta\_Cache; -use Onlyfansapi\Webhooks\WebhookNewResponse\_Meta\_Credits; -use Onlyfansapi\Webhooks\WebhookNewResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta\_Cache; +use OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta\_Credits; +use OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Webhooks\WebhookNewResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Webhooks\WebhookNewResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Webhooks\WebhookNewResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Webhooks/WebhookNewResponse/_Meta/_Cache.php b/src/Webhooks/WebhookNewResponse/_Meta/_Cache.php index 1fd7ef63..0dfcc058 100644 --- a/src/Webhooks/WebhookNewResponse/_Meta/_Cache.php +++ b/src/Webhooks/WebhookNewResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookNewResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Webhooks/WebhookNewResponse/_Meta/_Credits.php b/src/Webhooks/WebhookNewResponse/_Meta/_Credits.php index 68414fcb..a2b879f5 100644 --- a/src/Webhooks/WebhookNewResponse/_Meta/_Credits.php +++ b/src/Webhooks/WebhookNewResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookNewResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Webhooks/WebhookNewResponse/_Meta/_RateLimits.php b/src/Webhooks/WebhookNewResponse/_Meta/_RateLimits.php index 8ab7af6d..7ee644bc 100644 --- a/src/Webhooks/WebhookNewResponse/_Meta/_RateLimits.php +++ b/src/Webhooks/WebhookNewResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookNewResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookNewResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Webhooks/WebhookUpdateParams.php b/src/Webhooks/WebhookUpdateParams.php index 0912c0c4..a8bd05ff 100644 --- a/src/Webhooks/WebhookUpdateParams.php +++ b/src/Webhooks/WebhookUpdateParams.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks; +namespace OnlyFansAPI\Webhooks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Concerns\SdkParams; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Concerns\SdkParams; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * Update an existing webhook. * - * @see Onlyfansapi\Services\WebhooksService::update() + * @see OnlyFansAPI\Services\WebhooksService::update() * * @phpstan-type WebhookUpdateParamsShape = array{ * accountScope: string, @@ -30,7 +30,7 @@ final class WebhookUpdateParams implements BaseModel use SdkParams; /** - * The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. */ #[Required('account_scope')] public string $accountScope; @@ -42,7 +42,7 @@ final class WebhookUpdateParams implements BaseModel public string $endpointURL; /** - * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. + * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. * * @var list $events */ @@ -50,7 +50,7 @@ final class WebhookUpdateParams implements BaseModel public array $events; /** - * An array of account IDs to apply the scope to. Required unless account_scope is "global". + * An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * * @var list|null $accountIDs */ @@ -113,7 +113,7 @@ public static function with( } /** - * The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. + * The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts. */ public function withAccountScope(string $accountScope): self { @@ -135,7 +135,7 @@ public function withEndpointURL(string $endpointURL): self } /** - * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. + * An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint. A webhook is single-platform: subscribe to either OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. * * @param list $events */ @@ -148,7 +148,7 @@ public function withEvents(array $events): self } /** - * An array of account IDs to apply the scope to. Required unless account_scope is "global". + * An array of account IDs to apply the scope to. Use OnlyFans account IDs (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) for Fansly webhooks. Required unless account_scope is "global". * * @param list $accountIDs */ diff --git a/src/Webhooks/WebhookUpdateResponse.php b/src/Webhooks/WebhookUpdateResponse.php index 7cda9fea..d86f7265 100644 --- a/src/Webhooks/WebhookUpdateResponse.php +++ b/src/Webhooks/WebhookUpdateResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks; +namespace OnlyFansAPI\Webhooks; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta; -use Onlyfansapi\Webhooks\WebhookUpdateResponse\Data; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse\Data; /** - * @phpstan-import-type _MetaShape from \Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta - * @phpstan-import-type DataShape from \Onlyfansapi\Webhooks\WebhookUpdateResponse\Data + * @phpstan-import-type _MetaShape from \OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta + * @phpstan-import-type DataShape from \OnlyFansAPI\Webhooks\WebhookUpdateResponse\Data * * @phpstan-type WebhookUpdateResponseShape = array{ * _meta?: null|_Meta|_MetaShape, data?: null|Data|DataShape diff --git a/src/Webhooks/WebhookUpdateResponse/Data.php b/src/Webhooks/WebhookUpdateResponse/Data.php index 14ea9dad..d29b2f00 100644 --- a/src/Webhooks/WebhookUpdateResponse/Data.php +++ b/src/Webhooks/WebhookUpdateResponse/Data.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookUpdateResponse; +namespace OnlyFansAPI\Webhooks\WebhookUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type DataShape = array{ diff --git a/src/Webhooks/WebhookUpdateResponse/_Meta.php b/src/Webhooks/WebhookUpdateResponse/_Meta.php index d3d312fa..4c675b62 100644 --- a/src/Webhooks/WebhookUpdateResponse/_Meta.php +++ b/src/Webhooks/WebhookUpdateResponse/_Meta.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookUpdateResponse; +namespace OnlyFansAPI\Webhooks\WebhookUpdateResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta\_Cache; -use Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta\_Credits; -use Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta\_RateLimits; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta\_Cache; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta\_Credits; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta\_RateLimits; /** - * @phpstan-import-type _CacheShape from \Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta\_Cache - * @phpstan-import-type _CreditsShape from \Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta\_Credits - * @phpstan-import-type _RateLimitsShape from \Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta\_RateLimits + * @phpstan-import-type _CacheShape from \OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta\_Cache + * @phpstan-import-type _CreditsShape from \OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta\_Credits + * @phpstan-import-type _RateLimitsShape from \OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta\_RateLimits * * @phpstan-type _MetaShape = array{ * _cache?: null|_Cache|_CacheShape, diff --git a/src/Webhooks/WebhookUpdateResponse/_Meta/_Cache.php b/src/Webhooks/WebhookUpdateResponse/_Meta/_Cache.php index 8a131d3a..81d239af 100644 --- a/src/Webhooks/WebhookUpdateResponse/_Meta/_Cache.php +++ b/src/Webhooks/WebhookUpdateResponse/_Meta/_Cache.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CacheShape = array{isCached?: bool|null, note?: string|null} diff --git a/src/Webhooks/WebhookUpdateResponse/_Meta/_Credits.php b/src/Webhooks/WebhookUpdateResponse/_Meta/_Credits.php index 7a9907f4..216ba586 100644 --- a/src/Webhooks/WebhookUpdateResponse/_Meta/_Credits.php +++ b/src/Webhooks/WebhookUpdateResponse/_Meta/_Credits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _CreditsShape = array{ diff --git a/src/Webhooks/WebhookUpdateResponse/_Meta/_RateLimits.php b/src/Webhooks/WebhookUpdateResponse/_Meta/_RateLimits.php index 1be9201a..f054a1dd 100644 --- a/src/Webhooks/WebhookUpdateResponse/_Meta/_RateLimits.php +++ b/src/Webhooks/WebhookUpdateResponse/_Meta/_RateLimits.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Webhooks\WebhookUpdateResponse\_Meta; +namespace OnlyFansAPI\Webhooks\WebhookUpdateResponse\_Meta; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type _RateLimitsShape = array{ diff --git a/src/Whoami/WhoamiGetResponse.php b/src/Whoami/WhoamiGetResponse.php index f51ec4c4..682a9e32 100644 --- a/src/Whoami/WhoamiGetResponse.php +++ b/src/Whoami/WhoamiGetResponse.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Onlyfansapi\Whoami; +namespace OnlyFansAPI\Whoami; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; -use Onlyfansapi\Whoami\WhoamiGetResponse\APIKey; -use Onlyfansapi\Whoami\WhoamiGetResponse\Team; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; +use OnlyFansAPI\Whoami\WhoamiGetResponse\APIKey; +use OnlyFansAPI\Whoami\WhoamiGetResponse\Team; /** - * @phpstan-import-type APIKeyShape from \Onlyfansapi\Whoami\WhoamiGetResponse\APIKey - * @phpstan-import-type TeamShape from \Onlyfansapi\Whoami\WhoamiGetResponse\Team + * @phpstan-import-type APIKeyShape from \OnlyFansAPI\Whoami\WhoamiGetResponse\APIKey + * @phpstan-import-type TeamShape from \OnlyFansAPI\Whoami\WhoamiGetResponse\Team * * @phpstan-type WhoamiGetResponseShape = array{ * apiKey?: null|APIKey|APIKeyShape, team?: null|Team|TeamShape diff --git a/src/Whoami/WhoamiGetResponse/APIKey.php b/src/Whoami/WhoamiGetResponse/APIKey.php index 2705abf5..76ffc3e1 100644 --- a/src/Whoami/WhoamiGetResponse/APIKey.php +++ b/src/Whoami/WhoamiGetResponse/APIKey.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Whoami\WhoamiGetResponse; +namespace OnlyFansAPI\Whoami\WhoamiGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type APIKeyShape = array{ diff --git a/src/Whoami/WhoamiGetResponse/Team.php b/src/Whoami/WhoamiGetResponse/Team.php index b88883d4..db1dafbb 100644 --- a/src/Whoami/WhoamiGetResponse/Team.php +++ b/src/Whoami/WhoamiGetResponse/Team.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Onlyfansapi\Whoami\WhoamiGetResponse; +namespace OnlyFansAPI\Whoami\WhoamiGetResponse; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; /** * @phpstan-type TeamShape = array{name?: string|null, slug?: string|null} diff --git a/tests/ClientTest.php b/tests/ClientTest.php index ffb69e50..3711ceef 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -4,7 +4,7 @@ use Http\Discovery\Psr17FactoryDiscovery; use Http\Mock\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\TestCase; /** @@ -26,7 +26,7 @@ public function testDefaultHeaders(): void $transporter->setDefaultResponse($mockRsp); - $client = new \Onlyfansapi\Client( + $client = new \OnlyFansAPI\Client( baseUrl: 'http://localhost', apiKey: 'My API Key', requestOptions: ['transporter' => $transporter], diff --git a/tests/Core/ModelTest.php b/tests/Core/ModelTest.php index 7c8fd6cd..54bb053c 100644 --- a/tests/Core/ModelTest.php +++ b/tests/Core/ModelTest.php @@ -2,10 +2,10 @@ namespace Tests\Core; -use Onlyfansapi\Core\Attributes\Optional; -use Onlyfansapi\Core\Attributes\Required; -use Onlyfansapi\Core\Concerns\SdkModel; -use Onlyfansapi\Core\Contracts\BaseModel; +use OnlyFansAPI\Core\Attributes\Optional; +use OnlyFansAPI\Core\Attributes\Required; +use OnlyFansAPI\Core\Concerns\SdkModel; +use OnlyFansAPI\Core\Contracts\BaseModel; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Core/RequestTimeoutTest.php b/tests/Core/RequestTimeoutTest.php new file mode 100644 index 00000000..81c703a5 --- /dev/null +++ b/tests/Core/RequestTimeoutTest.php @@ -0,0 +1,81 @@ +buildClient(); + + $client->request('GET', '/', options: ['timeout' => 1.5]); + + $this->assertSame(1.5, $mock->getLastOptions()['timeout']); + } + + #[Test] + public function testPassesDefaultTimeoutToGuzzleTransporter(): void + { + [$client, $mock] = $this->buildClient(); + + $client->request('GET', '/'); + + $this->assertSame((new RequestOptions)->timeout, $mock->getLastOptions()['timeout']); + } + + #[Test] + public function testPassesTimeoutToStreamingTransporter(): void + { + [$client, $mock] = $this->buildClient(streaming: true); + + $client->request('GET', '/', headers: ['Accept' => 'text/event-stream'], options: ['timeout' => 2.5]); + + $options = $mock->getLastOptions(); + $this->assertTrue($options['stream']); + $this->assertSame(2.5, $options['timeout']); + } + + /** + * @return array{BaseClient, MockHandler} + */ + private function buildClient(bool $streaming = false): array + { + $response = $streaming + ? new Response(200, ['Content-Type' => 'text/event-stream'], '') + : new Response(200, ['Content-Type' => 'application/json'], '{}'); + + $mock = new MockHandler([$response]); + $guzzle = new GuzzleClient(['handler' => HandlerStack::create($mock)]); + + $options = RequestOptions::with( + transporter: $guzzle, + streamingTransporter: new StreamingHttpClient($guzzle), + uriFactory: Psr17FactoryDiscovery::findUriFactory(), + requestFactory: Psr17FactoryDiscovery::findRequestFactory(), + streamFactory: Psr17FactoryDiscovery::findStreamFactory(), + ); + + $client = new class(headers: [], baseUrl: 'http://localhost', options: $options) extends BaseClient {}; + + return [$client, $mock]; + } +} diff --git a/tests/Core/StreamingTransportTest.php b/tests/Core/StreamingTransportTest.php index 26b88d37..e339a383 100644 --- a/tests/Core/StreamingTransportTest.php +++ b/tests/Core/StreamingTransportTest.php @@ -4,9 +4,9 @@ use Http\Discovery\Psr17FactoryDiscovery; use Http\Mock\Client as MockClient; -use Onlyfansapi\Core\BaseClient; -use Onlyfansapi\Core\Util; -use Onlyfansapi\RequestOptions; +use OnlyFansAPI\Core\BaseClient; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\RequestOptions; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Core/UtilTest.php b/tests/Core/UtilTest.php index c1a0fb8d..e6a0b596 100644 --- a/tests/Core/UtilTest.php +++ b/tests/Core/UtilTest.php @@ -3,7 +3,7 @@ namespace Tests\Core; use Http\Discovery\Psr17FactoryDiscovery; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/AccountsTest.php b/tests/Services/AccountsTest.php index 06c44b45..4800b0dd 100644 --- a/tests/Services/AccountsTest.php +++ b/tests/Services/AccountsTest.php @@ -2,8 +2,8 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -47,7 +47,7 @@ public function testDisconnect(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->accounts->disconnect('nobis'); + $result = $this->client->accounts->disconnect('in'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertIsArray($result); diff --git a/tests/Services/Analytics/Financial/ProfitabilityTest.php b/tests/Services/Analytics/Financial/ProfitabilityTest.php index acb183f7..b1ae1ae1 100644 --- a/tests/Services/Analytics/Financial/ProfitabilityTest.php +++ b/tests/Services/Analytics/Financial/ProfitabilityTest.php @@ -2,8 +2,10 @@ namespace Tests\Services\Analytics\Financial; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetHistoryResponse; +use OnlyFansAPI\Analytics\Financial\Profitability\ProfitabilityGetProfitabilityResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -40,7 +42,7 @@ public function testGetHistory(): void ); // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertIsList($result); + $this->assertInstanceOf(ProfitabilityGetHistoryResponse::class, $result); } #[Test] @@ -57,7 +59,7 @@ public function testGetHistoryWithOptionalParams(): void ); // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertIsList($result); + $this->assertInstanceOf(ProfitabilityGetHistoryResponse::class, $result); } #[Test] @@ -80,7 +82,10 @@ public function testGetProfitability(): void ; // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertIsList($result); + $this->assertInstanceOf( + ProfitabilityGetProfitabilityResponse::class, + $result + ); } #[Test] @@ -103,6 +108,9 @@ public function testGetProfitabilityWithOptionalParams(): void ; // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertIsList($result); + $this->assertInstanceOf( + ProfitabilityGetProfitabilityResponse::class, + $result + ); } } diff --git a/tests/Services/Analytics/Financial/TransactionsTest.php b/tests/Services/Analytics/Financial/TransactionsTest.php index 9aeed27e..99e7203f 100644 --- a/tests/Services/Analytics/Financial/TransactionsTest.php +++ b/tests/Services/Analytics/Financial/TransactionsTest.php @@ -2,9 +2,9 @@ namespace Tests\Services\Analytics\Financial; -use Onlyfansapi\Analytics\Financial\Transactions\TransactionGetSummaryResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Analytics\Financial\Transactions\TransactionGetSummaryResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Analytics/FinancialTest.php b/tests/Services/Analytics/FinancialTest.php index 8abcd513..0911f195 100644 --- a/tests/Services/Analytics/FinancialTest.php +++ b/tests/Services/Analytics/FinancialTest.php @@ -2,9 +2,9 @@ namespace Tests\Services\Analytics; -use Onlyfansapi\Analytics\Financial\FinancialGetForecastResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Analytics\Financial\FinancialGetForecastResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Analytics/SummaryTest.php b/tests/Services/Analytics/SummaryTest.php index c201be0d..93e74b9b 100644 --- a/tests/Services/Analytics/SummaryTest.php +++ b/tests/Services/Analytics/SummaryTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Analytics; -use Onlyfansapi\Analytics\Summary\SummaryGetEarningsOverviewResponse; -use Onlyfansapi\Analytics\Summary\SummaryGetPeriodComparisonResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Analytics\Summary\SummaryGetEarningsOverviewResponse; +use OnlyFansAPI\Analytics\Summary\SummaryGetPeriodComparisonResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/AuthenticateTest.php b/tests/Services/AuthenticateTest.php index 0770ac78..a836de13 100644 --- a/tests/Services/AuthenticateTest.php +++ b/tests/Services/AuthenticateTest.php @@ -2,12 +2,12 @@ namespace Tests\Services; -use Onlyfansapi\Authenticate\AuthenticatePollStatusResponse; -use Onlyfansapi\Authenticate\AuthenticateReauthenticateResponse; -use Onlyfansapi\Authenticate\AuthenticateSend2faEmailResponse; -use Onlyfansapi\Authenticate\AuthenticateSubmit2faResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Authenticate\AuthenticatePollStatusResponse; +use OnlyFansAPI\Authenticate\AuthenticateReauthenticateResponse; +use OnlyFansAPI\Authenticate\AuthenticateSend2faEmailResponse; +use OnlyFansAPI\Authenticate\AuthenticateSubmit2faResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Banking/DetailsTest.php b/tests/Services/Banking/DetailsTest.php index 2fbe12de..c9a8c265 100644 --- a/tests/Services/Banking/DetailsTest.php +++ b/tests/Services/Banking/DetailsTest.php @@ -2,13 +2,13 @@ namespace Tests\Services\Banking; -use Onlyfansapi\Banking\Details\DetailGetAccountCountryDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetBankDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetDac7FormDetailsResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalAndTaxStatusResponse; -use Onlyfansapi\Banking\Details\DetailGetLegalFormDetailsResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Banking\Details\DetailGetAccountCountryDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetBankDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetDac7FormDetailsResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalAndTaxStatusResponse; +use OnlyFansAPI\Banking\Details\DetailGetLegalFormDetailsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/BankingTest.php b/tests/Services/BankingTest.php index 71ee854e..1e7433b2 100644 --- a/tests/Services/BankingTest.php +++ b/tests/Services/BankingTest.php @@ -2,10 +2,10 @@ namespace Tests\Services; -use Onlyfansapi\Banking\BankingListAvailablePayoutSystemsResponse; -use Onlyfansapi\Banking\BankingListCountriesResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Banking\BankingListAvailablePayoutSystemsResponse; +use OnlyFansAPI\Banking\BankingListCountriesResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/BundlesTest.php b/tests/Services/BundlesTest.php index 87787de9..e8492403 100644 --- a/tests/Services/BundlesTest.php +++ b/tests/Services/BundlesTest.php @@ -2,11 +2,11 @@ namespace Tests\Services; -use Onlyfansapi\Bundles\BundleDeleteResponse; -use Onlyfansapi\Bundles\BundleListResponse; -use Onlyfansapi\Bundles\BundleNewResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Bundles\BundleDeleteResponse; +use OnlyFansAPI\Bundles\BundleListResponse; +use OnlyFansAPI\Bundles\BundleNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/ChargebacksTest.php b/tests/Services/ChargebacksTest.php index 372a15e9..eb330e5e 100644 --- a/tests/Services/ChargebacksTest.php +++ b/tests/Services/ChargebacksTest.php @@ -2,11 +2,11 @@ namespace Tests\Services; -use Onlyfansapi\Chargebacks\ChargebackCalculateRatioResponse; -use Onlyfansapi\Chargebacks\ChargebackListResponse; -use Onlyfansapi\Chargebacks\ChargebackListStatisticsResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Chargebacks\ChargebackCalculateRatioResponse; +use OnlyFansAPI\Chargebacks\ChargebackListResponse; +use OnlyFansAPI\Chargebacks\ChargebackListStatisticsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Chats/MarkAllAsReadTest.php b/tests/Services/Chats/MarkAllAsReadTest.php index a2a89b66..e7bff37f 100644 --- a/tests/Services/Chats/MarkAllAsReadTest.php +++ b/tests/Services/Chats/MarkAllAsReadTest.php @@ -2,9 +2,9 @@ namespace Tests\Services\Chats; -use Onlyfansapi\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Chats\MarkAllAsRead\MarkAllAsReadAllResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Chats/MessagesTest.php b/tests/Services/Chats/MessagesTest.php index 69b165f9..5c5e3366 100644 --- a/tests/Services/Chats/MessagesTest.php +++ b/tests/Services/Chats/MessagesTest.php @@ -2,17 +2,17 @@ namespace Tests\Services\Chats; -use Onlyfansapi\Chats\Messages\MessageDeleteResponse; -use Onlyfansapi\Chats\Messages\MessageGetResponse; -use Onlyfansapi\Chats\Messages\MessageLikeResponse; -use Onlyfansapi\Chats\Messages\MessageListResponse; -use Onlyfansapi\Chats\Messages\MessagePinResponse; -use Onlyfansapi\Chats\Messages\MessageSearchResponse; -use Onlyfansapi\Chats\Messages\MessageSendResponse; -use Onlyfansapi\Chats\Messages\MessageUnlikeResponse; -use Onlyfansapi\Chats\Messages\MessageUnpinResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Chats\Messages\MessageDeleteResponse; +use OnlyFansAPI\Chats\Messages\MessageGetResponse; +use OnlyFansAPI\Chats\Messages\MessageLikeResponse; +use OnlyFansAPI\Chats\Messages\MessageListResponse; +use OnlyFansAPI\Chats\Messages\MessagePinResponse; +use OnlyFansAPI\Chats\Messages\MessageSearchResponse; +use OnlyFansAPI\Chats\Messages\MessageSendResponse; +use OnlyFansAPI\Chats\Messages\MessageUnlikeResponse; +use OnlyFansAPI\Chats\Messages\MessageUnpinResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -270,16 +270,18 @@ public function testSendWithOptionalParams(): void $result = $this->client->chats->messages->send( '123', account: 'acct_XXXXXXXXXXXXXXX', + blockBannedWords: 'strict_ban', giphyID: 'WAGC3LeqJvXglm5H7a', lockedText: true, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], - price: 10, + price: 6.97, replyToMessageID: 123456789, rfGuest: 'rfGuest', rfPartner: 'rfPartner', rfTag: 'rfTag', text: 'Hello!', + idempotencyKey: 'a1b2c3d4-5e6f-4789-a0b1-c2d3e4f5a6b7', ); // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/ChatsTest.php b/tests/Services/ChatsTest.php index fa3f01b9..8402cc44 100644 --- a/tests/Services/ChatsTest.php +++ b/tests/Services/ChatsTest.php @@ -2,17 +2,17 @@ namespace Tests\Services; -use Onlyfansapi\Chats\ChatDeleteResponse; -use Onlyfansapi\Chats\ChatHideResponse; -use Onlyfansapi\Chats\ChatListMediaResponse; -use Onlyfansapi\Chats\ChatListResponse; -use Onlyfansapi\Chats\ChatMarkAsReadResponse; -use Onlyfansapi\Chats\ChatMarkAsUnreadResponse; -use Onlyfansapi\Chats\ChatMuteResponse; -use Onlyfansapi\Chats\ChatStartTypingResponse; -use Onlyfansapi\Chats\ChatUnmuteResponse; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Chats\ChatDeleteResponse; +use OnlyFansAPI\Chats\ChatHideResponse; +use OnlyFansAPI\Chats\ChatListMediaResponse; +use OnlyFansAPI\Chats\ChatListResponse; +use OnlyFansAPI\Chats\ChatMarkAsReadResponse; +use OnlyFansAPI\Chats\ChatMarkAsUnreadResponse; +use OnlyFansAPI\Chats\ChatMuteResponse; +use OnlyFansAPI\Chats\ChatStartTypingResponse; +use OnlyFansAPI\Chats\ChatUnmuteResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/ClientSessionsTest.php b/tests/Services/ClientSessionsTest.php index 734f85dc..8a04ad87 100644 --- a/tests/Services/ClientSessionsTest.php +++ b/tests/Services/ClientSessionsTest.php @@ -2,9 +2,9 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\ClientSessions\ClientSessionNewResponse; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Client; +use OnlyFansAPI\ClientSessions\ClientSessionNewResponse; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/DataExportsTest.php b/tests/Services/DataExportsTest.php index 4d23de24..60147a3c 100644 --- a/tests/Services/DataExportsTest.php +++ b/tests/Services/DataExportsTest.php @@ -2,14 +2,14 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\DataExports\DataExportCancelResponse; -use Onlyfansapi\DataExports\DataExportGetResponse; -use Onlyfansapi\DataExports\DataExportListResponse; -use Onlyfansapi\DataExports\DataExportNewResponse; -use Onlyfansapi\DataExports\DataExportRetryResponse; -use Onlyfansapi\DataExports\DataExportStartResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\DataExports\DataExportCancelResponse; +use OnlyFansAPI\DataExports\DataExportGetResponse; +use OnlyFansAPI\DataExports\DataExportListResponse; +use OnlyFansAPI\DataExports\DataExportNewResponse; +use OnlyFansAPI\DataExports\DataExportRetryResponse; +use OnlyFansAPI\DataExports\DataExportStartResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Engagement/Messages/DirectMessagesTest.php b/tests/Services/Engagement/Messages/DirectMessagesTest.php index 00594053..075326db 100644 --- a/tests/Services/Engagement/Messages/DirectMessagesTest.php +++ b/tests/Services/Engagement/Messages/DirectMessagesTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Engagement\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageChartResponse; -use Onlyfansapi\Engagement\Messages\DirectMessages\DirectMessageListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\DirectMessages\DirectMessageListResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Engagement/Messages/MassMessagesTest.php b/tests/Services/Engagement/Messages/MassMessagesTest.php index 381590b1..30ef97b4 100644 --- a/tests/Services/Engagement/Messages/MassMessagesTest.php +++ b/tests/Services/Engagement/Messages/MassMessagesTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Engagement\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageChartResponse; -use Onlyfansapi\Engagement\Messages\MassMessages\MassMessageListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageChartResponse; +use OnlyFansAPI\Engagement\Messages\MassMessages\MassMessageListResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Engagement/MessagesTest.php b/tests/Services/Engagement/MessagesTest.php index 635dedd7..e30934f9 100644 --- a/tests/Services/Engagement/MessagesTest.php +++ b/tests/Services/Engagement/MessagesTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Engagement; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Engagement\Messages\MessageGetMessageBuyersResponse; -use Onlyfansapi\Engagement\Messages\MessageGetTopMessageResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Engagement\Messages\MessageGetMessageBuyersResponse; +use OnlyFansAPI\Engagement\Messages\MessageGetTopMessageResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -37,7 +37,7 @@ public function testGetMessageBuyers(): void } $result = $this->client->engagement->messages->getMessageBuyers( - 'et', + 'ipsa', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -53,7 +53,7 @@ public function testGetMessageBuyersWithOptionalParams(): void } $result = $this->client->engagement->messages->getMessageBuyers( - 'et', + 'ipsa', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/Services/Fans/NotesTest.php b/tests/Services/Fans/NotesTest.php index 2e4937c8..da8f0d36 100644 --- a/tests/Services/Fans/NotesTest.php +++ b/tests/Services/Fans/NotesTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\Fans; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Fans\Notes\NoteClearNotesResponse; -use Onlyfansapi\Fans\Notes\NoteGetNotesResponse; -use Onlyfansapi\Fans\Notes\NoteNewEditNotesResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Fans\Notes\NoteClearNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteGetNotesResponse; +use OnlyFansAPI\Fans\Notes\NoteNewEditNotesResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Fans/SummaryTest.php b/tests/Services/Fans/SummaryTest.php index b35b1022..dd9a31cf 100644 --- a/tests/Services/Fans/SummaryTest.php +++ b/tests/Services/Fans/SummaryTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Fans; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Fans\Summary\SummaryGenerateSummaryResponse; -use Onlyfansapi\Fans\Summary\SummaryGetSummaryResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Fans\Summary\SummaryGenerateSummaryResponse; +use OnlyFansAPI\Fans\Summary\SummaryGetSummaryResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/FansTest.php b/tests/Services/FansTest.php index d3d43310..a4ee2bf0 100644 --- a/tests/Services/FansTest.php +++ b/tests/Services/FansTest.php @@ -2,15 +2,15 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Fans\FanGetSubscriptionHistoryResponse; -use Onlyfansapi\Fans\FanListActiveResponse; -use Onlyfansapi\Fans\FanListAllResponse; -use Onlyfansapi\Fans\FanListExpiredResponse; -use Onlyfansapi\Fans\FanListLatestResponse; -use Onlyfansapi\Fans\FanListTopResponse; -use Onlyfansapi\Fans\FanSetCustomNameResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Fans\FanGetSubscriptionHistoryResponse; +use OnlyFansAPI\Fans\FanListActiveResponse; +use OnlyFansAPI\Fans\FanListAllResponse; +use OnlyFansAPI\Fans\FanListExpiredResponse; +use OnlyFansAPI\Fans\FanListLatestResponse; +use OnlyFansAPI\Fans\FanListTopResponse; +use OnlyFansAPI\Fans\FanSetCustomNameResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/FollowingTest.php b/tests/Services/FollowingTest.php index fd9fea46..2ff25e6c 100644 --- a/tests/Services/FollowingTest.php +++ b/tests/Services/FollowingTest.php @@ -2,11 +2,11 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Following\FollowingListActiveResponse; -use Onlyfansapi\Following\FollowingListAllResponse; -use Onlyfansapi\Following\FollowingListExpiredResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Following\FollowingListActiveResponse; +use OnlyFansAPI\Following\FollowingListAllResponse; +use OnlyFansAPI\Following\FollowingListExpiredResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/GiphyTest.php b/tests/Services/GiphyTest.php index cd642210..62bab563 100644 --- a/tests/Services/GiphyTest.php +++ b/tests/Services/GiphyTest.php @@ -2,10 +2,10 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Giphy\GiphyListTrendingResponse; -use Onlyfansapi\Giphy\GiphySearchResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Giphy\GiphyListTrendingResponse; +use OnlyFansAPI\Giphy\GiphySearchResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/LinkTagsTest.php b/tests/Services/LinkTagsTest.php index 36b21534..4c14e5cf 100644 --- a/tests/Services/LinkTagsTest.php +++ b/tests/Services/LinkTagsTest.php @@ -2,9 +2,9 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\LinkTags\LinkTagListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\LinkTags\LinkTagListResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/MassMessagingTest.php b/tests/Services/MassMessagingTest.php index df2e1142..53bebb07 100644 --- a/tests/Services/MassMessagingTest.php +++ b/tests/Services/MassMessagingTest.php @@ -2,14 +2,14 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\MassMessaging\MassMessagingDeleteResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetOverviewResponse; -use Onlyfansapi\MassMessaging\MassMessagingGetResponse; -use Onlyfansapi\MassMessaging\MassMessagingListResponse; -use Onlyfansapi\MassMessaging\MassMessagingSendResponse; -use Onlyfansapi\MassMessaging\MassMessagingUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\MassMessaging\MassMessagingDeleteResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetOverviewResponse; +use OnlyFansAPI\MassMessaging\MassMessagingGetResponse; +use OnlyFansAPI\MassMessaging\MassMessagingListResponse; +use OnlyFansAPI\MassMessaging\MassMessagingSendResponse; +use OnlyFansAPI\MassMessaging\MassMessagingUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -93,11 +93,12 @@ public function testUpdateWithOptionalParams(): void 'id', account: 'acct_XXXXXXXXXXXXXXX', text: 'Hello!', + blockBannedWords: 'strict_ban', giphyID: 'WAGC3LeqJvXglm5H7a', lockedText: true, mediaFiles: ['ofapi_media_abc123', 'string'], previews: ['ofapi_media_abc123', 'string'], - price: 100, + price: 6.97, scheduledDate: '2025-01-01T00:00:00.000Z', userIDs: ['string'], userLists: [ @@ -195,6 +196,7 @@ public function testSendWithOptionalParams(): void $result = $this->client->massMessaging->send( 'acct_XXXXXXXXXXXXXXX', text: 'Hello!', + blockBannedWords: 'strict_ban', excludedLists: [ 'fans', 'recent', 'following', 'rebill_off', 'tagged', 'string', ], @@ -202,7 +204,7 @@ public function testSendWithOptionalParams(): void lockedText: true, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], - price: 100, + price: 6.97, rfGuest: 'rfGuest', rfPartner: 'rfPartner', rfTag: 'rfTag', diff --git a/tests/Services/MeTest.php b/tests/Services/MeTest.php index f32df806..22ca43b8 100644 --- a/tests/Services/MeTest.php +++ b/tests/Services/MeTest.php @@ -2,11 +2,11 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Me\MeGetModelStartDateResponse; -use Onlyfansapi\Me\MeGetResponse; -use Onlyfansapi\Me\MeGetTopPercentageResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Me\MeGetModelStartDateResponse; +use OnlyFansAPI\Me\MeGetResponse; +use OnlyFansAPI\Me\MeGetTopPercentageResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Media/UploadsTest.php b/tests/Services/Media/UploadsTest.php index 4e7f40ef..b7f7417b 100644 --- a/tests/Services/Media/UploadsTest.php +++ b/tests/Services/Media/UploadsTest.php @@ -2,8 +2,8 @@ namespace Tests\Services\Media; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Media/Vault/Lists/MediaTest.php b/tests/Services/Media/Vault/Lists/MediaTest.php index f663c669..2edc361e 100644 --- a/tests/Services/Media/Vault/Lists/MediaTest.php +++ b/tests/Services/Media/Vault/Lists/MediaTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Media\Vault\Lists; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\Vault\Lists\Media\MediaAddResponse; -use Onlyfansapi\Media\Vault\Lists\Media\MediaRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaAddResponse; +use OnlyFansAPI\Media\Vault\Lists\Media\MediaRemoveResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -37,7 +37,7 @@ public function testAdd(): void } $result = $this->client->media->vault->lists->media->add( - 'nihil', + 'qui', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); @@ -54,7 +54,7 @@ public function testAddWithOptionalParams(): void } $result = $this->client->media->vault->lists->media->add( - 'nihil', + 'qui', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); @@ -71,7 +71,7 @@ public function testRemove(): void } $result = $this->client->media->vault->lists->media->remove( - 'nihil', + 'qui', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); @@ -88,7 +88,7 @@ public function testRemoveWithOptionalParams(): void } $result = $this->client->media->vault->lists->media->remove( - 'nihil', + 'qui', account: 'acct_XXXXXXXXXXXXXXX', mediaIDs: ['string'] ); diff --git a/tests/Services/Media/Vault/ListsTest.php b/tests/Services/Media/Vault/ListsTest.php index c9599285..0620a717 100644 --- a/tests/Services/Media/Vault/ListsTest.php +++ b/tests/Services/Media/Vault/ListsTest.php @@ -2,13 +2,12 @@ namespace Tests\Services\Media\Vault; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\Vault\Lists\ListDeleteResponse; -use Onlyfansapi\Media\Vault\Lists\ListGetResponse; -use Onlyfansapi\Media\Vault\Lists\ListListResponse; -use Onlyfansapi\Media\Vault\Lists\ListNewResponse; -use Onlyfansapi\Media\Vault\Lists\ListUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\Vault\Lists\ListDeleteResponse; +use OnlyFansAPI\Media\Vault\Lists\ListGetResponse; +use OnlyFansAPI\Media\Vault\Lists\ListNewResponse; +use OnlyFansAPI\Media\Vault\Lists\ListUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -105,7 +104,8 @@ public function testUpdate(): void $result = $this->client->media->vault->lists->update( '123', - account: 'acct_XXXXXXXXXXXXXXX' + account: 'acct_XXXXXXXXXXXXXXX', + name: 'My renamed list' ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -121,7 +121,8 @@ public function testUpdateWithOptionalParams(): void $result = $this->client->media->vault->lists->update( '123', - account: 'acct_XXXXXXXXXXXXXXX' + account: 'acct_XXXXXXXXXXXXXXX', + name: 'My renamed list' ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -138,7 +139,7 @@ public function testList(): void $result = $this->client->media->vault->lists->list('acct_XXXXXXXXXXXXXXX'); // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf(ListListResponse::class, $result); + $this->assertNotNull($result); } #[Test] diff --git a/tests/Services/Media/VaultTest.php b/tests/Services/Media/VaultTest.php index a4ca4c9c..9c125a49 100644 --- a/tests/Services/Media/VaultTest.php +++ b/tests/Services/Media/VaultTest.php @@ -2,12 +2,12 @@ namespace Tests\Services\Media; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\Vault\VaultDeleteResponse; -use Onlyfansapi\Media\Vault\VaultGetResponse; -use Onlyfansapi\Media\Vault\VaultListResponse; -use Onlyfansapi\Media\Vault\VaultUploadResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\Vault\VaultDeleteResponse; +use OnlyFansAPI\Media\Vault\VaultGetResponse; +use OnlyFansAPI\Media\Vault\VaultListResponse; +use OnlyFansAPI\Media\Vault\VaultUploadResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/MediaTest.php b/tests/Services/MediaTest.php index 8b797d94..ce8811fb 100644 --- a/tests/Services/MediaTest.php +++ b/tests/Services/MediaTest.php @@ -2,10 +2,10 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Media\MediaScrapeResponse; -use Onlyfansapi\Media\MediaUploadResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Media\MediaScrapeResponse; +use OnlyFansAPI\Media\MediaUploadResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -42,7 +42,7 @@ public function testDownload(): void ); // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertIsString($result); + $this->assertNull($result); } #[Test] @@ -58,7 +58,7 @@ public function testDownloadWithOptionalParams(): void ); // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertIsString($result); + $this->assertNull($result); } #[Test] diff --git a/tests/Services/MessagesTest.php b/tests/Services/MessagesTest.php deleted file mode 100644 index db96706c..00000000 --- a/tests/Services/MessagesTest.php +++ /dev/null @@ -1,65 +0,0 @@ -client = $client; - } - - #[Test] - public function testAttachTags(): void - { - if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Mock server tests are disabled'); - } - - $result = $this->client->messages->attachTags( - '123456789', - account: 'acct_XXXXXXXXXXXXXXX' - ); - - // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf(MessageAttachTagsResponse::class, $result); - } - - #[Test] - public function testAttachTagsWithOptionalParams(): void - { - if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Mock server tests are disabled'); - } - - $result = $this->client->messages->attachTags( - '123456789', - account: 'acct_XXXXXXXXXXXXXXX', - rfGuest: 'rfGuest', - rfPartner: 'rfPartner', - rfTag: 'rfTag', - ); - - // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf(MessageAttachTagsResponse::class, $result); - } -} diff --git a/tests/Services/Notifications/TabsOrderTest.php b/tests/Services/Notifications/TabsOrderTest.php index 2a682b2c..752b3001 100644 --- a/tests/Services/Notifications/TabsOrderTest.php +++ b/tests/Services/Notifications/TabsOrderTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Notifications; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderGetResponse; -use Onlyfansapi\Notifications\TabsOrder\TabsOrderUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderGetResponse; +use OnlyFansAPI\Notifications\TabsOrder\TabsOrderUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/NotificationsTest.php b/tests/Services/NotificationsTest.php index 543580e1..0e71ead6 100644 --- a/tests/Services/NotificationsTest.php +++ b/tests/Services/NotificationsTest.php @@ -2,12 +2,12 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Notifications\NotificationGetCountsResponse; -use Onlyfansapi\Notifications\NotificationListResponse; -use Onlyfansapi\Notifications\NotificationMarkAllAsReadResponse; -use Onlyfansapi\Notifications\NotificationSearchUsersResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Notifications\NotificationGetCountsResponse; +use OnlyFansAPI\Notifications\NotificationListResponse; +use OnlyFansAPI\Notifications\NotificationMarkAllAsReadResponse; +use OnlyFansAPI\Notifications\NotificationSearchUsersResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/PayoutsTest.php b/tests/Services/PayoutsTest.php index 54d08eb3..adbd16aa 100644 --- a/tests/Services/PayoutsTest.php +++ b/tests/Services/PayoutsTest.php @@ -2,13 +2,13 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Payouts\PayoutGetBalancesResponse; -use Onlyfansapi\Payouts\PayoutGetEarningStatisticsResponse; -use Onlyfansapi\Payouts\PayoutGetEligibilityResponse; -use Onlyfansapi\Payouts\PayoutListRequestsResponse; -use Onlyfansapi\Payouts\PayoutUpdateFrequencyResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Payouts\PayoutGetBalancesResponse; +use OnlyFansAPI\Payouts\PayoutGetEarningStatisticsResponse; +use OnlyFansAPI\Payouts\PayoutGetEligibilityResponse; +use OnlyFansAPI\Payouts\PayoutListRequestsResponse; +use OnlyFansAPI\Payouts\PayoutUpdateFrequencyResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Posts/CommentsTest.php b/tests/Services/Posts/CommentsTest.php index 14aec52c..95d35fbf 100644 --- a/tests/Services/Posts/CommentsTest.php +++ b/tests/Services/Posts/CommentsTest.php @@ -2,15 +2,15 @@ namespace Tests\Services\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\Comments\CommentDeleteResponse; -use Onlyfansapi\Posts\Comments\CommentLikeResponse; -use Onlyfansapi\Posts\Comments\CommentListResponse; -use Onlyfansapi\Posts\Comments\CommentNewResponse; -use Onlyfansapi\Posts\Comments\CommentPinResponse; -use Onlyfansapi\Posts\Comments\CommentUnlikeResponse; -use Onlyfansapi\Posts\Comments\CommentUnpinResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\Comments\CommentDeleteResponse; +use OnlyFansAPI\Posts\Comments\CommentLikeResponse; +use OnlyFansAPI\Posts\Comments\CommentListResponse; +use OnlyFansAPI\Posts\Comments\CommentNewResponse; +use OnlyFansAPI\Posts\Comments\CommentPinResponse; +use OnlyFansAPI\Posts\Comments\CommentUnlikeResponse; +use OnlyFansAPI\Posts\Comments\CommentUnpinResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -42,7 +42,7 @@ public function testCreate(): void } $result = $this->client->posts->comments->create( - 'impedit', + 'quis', account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.' ); @@ -59,7 +59,7 @@ public function testCreateWithOptionalParams(): void } $result = $this->client->posts->comments->create( - 'impedit', + 'quis', account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -78,7 +78,7 @@ public function testList(): void } $result = $this->client->posts->comments->list( - 'impedit', + 'quis', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -94,7 +94,7 @@ public function testListWithOptionalParams(): void } $result = $this->client->posts->comments->list( - 'impedit', + 'quis', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/Services/Posts/LabelsTest.php b/tests/Services/Posts/LabelsTest.php index 5b2fe8f2..a8898fd4 100644 --- a/tests/Services/Posts/LabelsTest.php +++ b/tests/Services/Posts/LabelsTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\Labels\LabelListResponse; -use Onlyfansapi\Posts\Labels\LabelNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\Labels\LabelListResponse; +use OnlyFansAPI\Posts\Labels\LabelNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/PostsTest.php b/tests/Services/PostsTest.php index 4fcbc481..a4d45825 100644 --- a/tests/Services/PostsTest.php +++ b/tests/Services/PostsTest.php @@ -2,16 +2,16 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Posts\PostArchiveResponse; -use Onlyfansapi\Posts\PostDeleteResponse; -use Onlyfansapi\Posts\PostGetResponse; -use Onlyfansapi\Posts\PostListResponse; -use Onlyfansapi\Posts\PostNewResponse; -use Onlyfansapi\Posts\PostPinResponse; -use Onlyfansapi\Posts\PostStatsResponse; -use Onlyfansapi\Posts\PostUnarchiveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Posts\PostArchiveResponse; +use OnlyFansAPI\Posts\PostDeleteResponse; +use OnlyFansAPI\Posts\PostGetResponse; +use OnlyFansAPI\Posts\PostListResponse; +use OnlyFansAPI\Posts\PostNewResponse; +use OnlyFansAPI\Posts\PostPinResponse; +use OnlyFansAPI\Posts\PostStatsResponse; +use OnlyFansAPI\Posts\PostUnarchiveResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -61,6 +61,7 @@ public function testCreateWithOptionalParams(): void $result = $this->client->posts->create( 'acct_XXXXXXXXXXXXXXX', text: 'Hello!', + blockBannedWords: 'strict_ban', expireDays: 3, fundRaisingTargetAmount: 30, fundRaisingTipsPresets: ['string', 'string', 'string'], @@ -140,6 +141,7 @@ public function testUpdateWithOptionalParams(): void 1234567890, account: 'acct_XXXXXXXXXXXXXXX', text: 'Hello!', + blockBannedWords: 'strict_ban', expireDays: 3, fundRaisingTargetAmount: 30, fundRaisingTipsPresets: ['string', 'string', 'string'], diff --git a/tests/Services/ProfilesTest.php b/tests/Services/ProfilesTest.php index 94cf308b..4ab0fffe 100644 --- a/tests/Services/ProfilesTest.php +++ b/tests/Services/ProfilesTest.php @@ -2,9 +2,9 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Profiles\ProfileGetResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Profiles\ProfileGetResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/PromotionsTest.php b/tests/Services/PromotionsTest.php index a7203d22..2338e2c9 100644 --- a/tests/Services/PromotionsTest.php +++ b/tests/Services/PromotionsTest.php @@ -2,12 +2,12 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Promotions\PromotionDeleteResponse; -use Onlyfansapi\Promotions\PromotionListResponse; -use Onlyfansapi\Promotions\PromotionNewResponse; -use Onlyfansapi\Promotions\PromotionStopResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Promotions\PromotionDeleteResponse; +use OnlyFansAPI\Promotions\PromotionListResponse; +use OnlyFansAPI\Promotions\PromotionNewResponse; +use OnlyFansAPI\Promotions\PromotionStopResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/QueueTest.php b/tests/Services/QueueTest.php index 27bdbd2c..10f24495 100644 --- a/tests/Services/QueueTest.php +++ b/tests/Services/QueueTest.php @@ -2,11 +2,11 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Queue\QueueCountResponse; -use Onlyfansapi\Queue\QueueListResponse; -use Onlyfansapi\Queue\QueuePublishResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Queue\QueueCountResponse; +use OnlyFansAPI\Queue\QueueListResponse; +use OnlyFansAPI\Queue\QueuePublishResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -39,7 +39,6 @@ public function testList(): void $result = $this->client->queue->list( 'acct_XXXXXXXXXXXXXXX', - limit: 20, publishDateEnd: '2025-01-01', publishDateStart: '2025-01-01', timezone: 'Europe/Prague', @@ -58,10 +57,11 @@ public function testListWithOptionalParams(): void $result = $this->client->queue->list( 'acct_XXXXXXXXXXXXXXX', - limit: 20, publishDateEnd: '2025-01-01', publishDateStart: '2025-01-01', timezone: 'Europe/Prague', + limit: 20, + type: ['post'], ); // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/ReleaseFormsTest.php b/tests/Services/ReleaseFormsTest.php index 4d21612e..38b7c413 100644 --- a/tests/Services/ReleaseFormsTest.php +++ b/tests/Services/ReleaseFormsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\ReleaseForms\ReleaseFormListTaggableUsersResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewInvitationLinkResponse; -use Onlyfansapi\ReleaseForms\ReleaseFormNewReleaseFormResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\ReleaseForms\ReleaseFormListTaggableUsersResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewInvitationLinkResponse; +use OnlyFansAPI\ReleaseForms\ReleaseFormNewReleaseFormResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SavedForLater/Messages/SettingsTest.php b/tests/Services/SavedForLater/Messages/SettingsTest.php index ed995402..8ebfaa49 100644 --- a/tests/Services/SavedForLater/Messages/SettingsTest.php +++ b/tests/Services/SavedForLater/Messages/SettingsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\SavedForLater\Messages; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; -use Onlyfansapi\SavedForLater\Messages\Settings\SettingGetResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingDisableAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingEnableOrUpdateAutomaticMessagingResponse; +use OnlyFansAPI\SavedForLater\Messages\Settings\SettingGetResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -79,7 +79,7 @@ public function testEnableOrUpdateAutomaticMessaging(): void ->savedForLater ->messages ->settings - ->enableOrUpdateAutomaticMessaging('acct_XXXXXXXXXXXXXXX', period: 12) + ->enableOrUpdateAutomaticMessaging('acct_XXXXXXXXXXXXXXX', period: 48) ; // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -101,7 +101,7 @@ public function testEnableOrUpdateAutomaticMessagingWithOptionalParams(): void ->savedForLater ->messages ->settings - ->enableOrUpdateAutomaticMessaging('acct_XXXXXXXXXXXXXXX', period: 12) + ->enableOrUpdateAutomaticMessaging('acct_XXXXXXXXXXXXXXX', period: 48) ; // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/SavedForLater/MessagesTest.php b/tests/Services/SavedForLater/MessagesTest.php index 24660e69..743ca949 100644 --- a/tests/Services/SavedForLater/MessagesTest.php +++ b/tests/Services/SavedForLater/MessagesTest.php @@ -2,9 +2,9 @@ namespace Tests\Services\SavedForLater; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SavedForLater\Messages\MessageListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SavedForLater\Messages\MessageListResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SavedForLater/Posts/SettingsTest.php b/tests/Services/SavedForLater/Posts/SettingsTest.php index 6f693813..12ec31fa 100644 --- a/tests/Services/SavedForLater/Posts/SettingsTest.php +++ b/tests/Services/SavedForLater/Posts/SettingsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\SavedForLater\Posts; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; -use Onlyfansapi\SavedForLater\Posts\Settings\SettingGetResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingDisableAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingEnableOrUpdateAutomaticPostingResponse; +use OnlyFansAPI\SavedForLater\Posts\Settings\SettingGetResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -79,7 +79,7 @@ public function testEnableOrUpdateAutomaticPosting(): void ->savedForLater ->posts ->settings - ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 12) + ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 6) ; // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -101,7 +101,7 @@ public function testEnableOrUpdateAutomaticPostingWithOptionalParams(): void ->savedForLater ->posts ->settings - ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 12) + ->enableOrUpdateAutomaticPosting('acct_XXXXXXXXXXXXXXX', period: 6) ; // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/SavedForLater/PostsTest.php b/tests/Services/SavedForLater/PostsTest.php index 1c52cb92..e2a4eaa7 100644 --- a/tests/Services/SavedForLater/PostsTest.php +++ b/tests/Services/SavedForLater/PostsTest.php @@ -2,9 +2,9 @@ namespace Tests\Services\SavedForLater; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SavedForLater\Posts\PostListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SavedForLater\Posts\PostListResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SearchTest.php b/tests/Services/SearchTest.php index f1312f0d..b8e1d9af 100644 --- a/tests/Services/SearchTest.php +++ b/tests/Services/SearchTest.php @@ -2,9 +2,9 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Search\SearchProfilesResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Search\SearchProfilesResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Settings/BlockedCountriesTest.php b/tests/Services/Settings/BlockedCountriesTest.php index 72d81208..93b196ed 100644 --- a/tests/Services/Settings/BlockedCountriesTest.php +++ b/tests/Services/Settings/BlockedCountriesTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryGetResponse; -use Onlyfansapi\Settings\BlockedCountries\BlockedCountryUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryGetResponse; +use OnlyFansAPI\Settings\BlockedCountries\BlockedCountryUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Settings/SocialMediaButtonsTest.php b/tests/Services/Settings/SocialMediaButtonsTest.php index 36e3fe75..c82d0950 100644 --- a/tests/Services/Settings/SocialMediaButtonsTest.php +++ b/tests/Services/Settings/SocialMediaButtonsTest.php @@ -2,13 +2,13 @@ namespace Tests\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonListResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; -use Onlyfansapi\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonAddResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonDeleteResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonListResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonReorderResponse; +use OnlyFansAPI\Settings\SocialMediaButtons\SocialMediaButtonUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Settings/WelcomeMessageTest.php b/tests/Services/Settings/WelcomeMessageTest.php index d34f7556..b7d8b3b2 100644 --- a/tests/Services/Settings/WelcomeMessageTest.php +++ b/tests/Services/Settings/WelcomeMessageTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\Settings; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageGetResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageToggleResponse; -use Onlyfansapi\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageGetResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageToggleResponse; +use OnlyFansAPI\Settings\WelcomeMessage\WelcomeMessageUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SettingsTest.php b/tests/Services/SettingsTest.php index 48fd6802..b94fc020 100644 --- a/tests/Services/SettingsTest.php +++ b/tests/Services/SettingsTest.php @@ -2,12 +2,12 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Settings\SettingCheckUsernameAvailabilityResponse; -use Onlyfansapi\Settings\SettingGetResponse; -use Onlyfansapi\Settings\SettingUpdateProfileResponse; -use Onlyfansapi\Settings\SettingUpdateSubscriptionPriceResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Settings\SettingCheckUsernameAvailabilityResponse; +use OnlyFansAPI\Settings\SettingGetResponse; +use OnlyFansAPI\Settings\SettingUpdateProfileResponse; +use OnlyFansAPI\Settings\SettingUpdateSubscriptionPriceResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SharedTrackingLinks/TagsTest.php b/tests/Services/SharedTrackingLinks/TagsTest.php index f9447a43..f29b55d9 100644 --- a/tests/Services/SharedTrackingLinks/TagsTest.php +++ b/tests/Services/SharedTrackingLinks/TagsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\SharedTrackingLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SharedTrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrackingLinks\Tags\TagRemoveResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SharedTrackingLinksTest.php b/tests/Services/SharedTrackingLinksTest.php index 2028edf9..c5e67eed 100644 --- a/tests/Services/SharedTrackingLinksTest.php +++ b/tests/Services/SharedTrackingLinksTest.php @@ -2,10 +2,10 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkListResponse; -use Onlyfansapi\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkListResponse; +use OnlyFansAPI\SharedTrackingLinks\SharedTrackingLinkRevokeAccessResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SharedTrialLinks/TagsTest.php b/tests/Services/SharedTrialLinks/TagsTest.php index f1160e8d..a0d947c6 100644 --- a/tests/Services/SharedTrialLinks/TagsTest.php +++ b/tests/Services/SharedTrialLinks/TagsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\SharedTrialLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SharedTrialLinks\Tags\TagAddResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagListResponse; -use Onlyfansapi\SharedTrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SharedTrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagListResponse; +use OnlyFansAPI\SharedTrialLinks\Tags\TagRemoveResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SharedTrialLinksTest.php b/tests/Services/SharedTrialLinksTest.php index aaf30299..a9a827cb 100644 --- a/tests/Services/SharedTrialLinksTest.php +++ b/tests/Services/SharedTrialLinksTest.php @@ -2,10 +2,10 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkListResponse; -use Onlyfansapi\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkListResponse; +use OnlyFansAPI\SharedTrialLinks\SharedTrialLinkRevokeAccessResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/SmartLinkPostbacksTest.php b/tests/Services/SmartLinkPostbacksTest.php index 008714a9..79d41fce 100644 --- a/tests/Services/SmartLinkPostbacksTest.php +++ b/tests/Services/SmartLinkPostbacksTest.php @@ -2,12 +2,12 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackGetResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackListResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackNewResponse; -use Onlyfansapi\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackGetResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackListResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackNewResponse; +use OnlyFansAPI\SmartLinkPostbacks\SmartLinkPostbackUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -41,7 +41,7 @@ public function testCreate(): void $result = $this->client->smartLinkPostbacks->create( conversionTypes: ['new_subscriber', 'new_transaction'], smartLinkScope: 'campaign_specific', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}', ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -58,7 +58,10 @@ public function testCreateWithOptionalParams(): void $result = $this->client->smartLinkPostbacks->create( conversionTypes: ['new_subscriber', 'new_transaction'], smartLinkScope: 'campaign_specific', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}', + body: '{"click_id":"{click_id}","value":"{amount_gross}"}', + headers: [['name' => 'Authorization', 'value' => 'Bearer token']], + httpMethod: 'POST', smartLinkIDs: ['01JTESTLINK000000000000001'], ); @@ -90,7 +93,7 @@ public function testUpdate(): void 123, conversionTypes: ['new_subscriber'], smartLinkScope: 'global', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}', ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -108,7 +111,10 @@ public function testUpdateWithOptionalParams(): void 123, conversionTypes: ['new_subscriber'], smartLinkScope: 'global', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}', + body: '{"click_id":"{click_id}","value":"{amount_gross}"}', + headers: [['name' => 'Authorization', 'value' => 'Bearer token']], + httpMethod: 'POST', smartLinkIDs: ['01JTESTLINK000000000000001'], ); diff --git a/tests/Services/SmartLinksTest.php b/tests/Services/SmartLinksTest.php index e179ef8b..b83dc17c 100644 --- a/tests/Services/SmartLinksTest.php +++ b/tests/Services/SmartLinksTest.php @@ -2,17 +2,17 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\SmartLinks\SmartLinkDeleteResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetResponse; -use Onlyfansapi\SmartLinks\SmartLinkGetStatsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListClicksResponse; -use Onlyfansapi\SmartLinks\SmartLinkListConversionsResponse; -use Onlyfansapi\SmartLinks\SmartLinkListFansResponse; -use Onlyfansapi\SmartLinks\SmartLinkListResponse; -use Onlyfansapi\SmartLinks\SmartLinkListSpendersResponse; -use Onlyfansapi\SmartLinks\SmartLinkNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\SmartLinks\SmartLinkDeleteResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetResponse; +use OnlyFansAPI\SmartLinks\SmartLinkGetStatsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListClicksResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListConversionsResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListFansResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListResponse; +use OnlyFansAPI\SmartLinks\SmartLinkListSpendersResponse; +use OnlyFansAPI\SmartLinks\SmartLinkNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -117,7 +117,7 @@ public function testListClicks(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listClicks('rerum'); + $result = $this->client->smartLinks->listClicks('eum'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListClicksResponse::class, $result); @@ -130,7 +130,7 @@ public function testListConversions(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listConversions('facilis'); + $result = $this->client->smartLinks->listConversions('quia'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListConversionsResponse::class, $result); @@ -143,7 +143,7 @@ public function testListFans(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listFans('ducimus'); + $result = $this->client->smartLinks->listFans('totam'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListFansResponse::class, $result); @@ -156,7 +156,7 @@ public function testListSpenders(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->listSpenders('nam'); + $result = $this->client->smartLinks->listSpenders('enim'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkListSpendersResponse::class, $result); @@ -169,7 +169,7 @@ public function testRetrieveCohortArps(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->retrieveCohortArps('eaque'); + $result = $this->client->smartLinks->retrieveCohortArps('beatae'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertNull($result); @@ -182,7 +182,7 @@ public function testRetrieveStats(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->smartLinks->retrieveStats('impedit'); + $result = $this->client->smartLinks->retrieveStats('nisi'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(SmartLinkGetStatsResponse::class, $result); diff --git a/tests/Services/Statistics/ReachTest.php b/tests/Services/Statistics/ReachTest.php index f62ea72d..7efc3f5f 100644 --- a/tests/Services/Statistics/ReachTest.php +++ b/tests/Services/Statistics/ReachTest.php @@ -2,8 +2,8 @@ namespace Tests\Services\Statistics; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Statistics/StatementsTest.php b/tests/Services/Statistics/StatementsTest.php index 704a752d..c371b76a 100644 --- a/tests/Services/Statistics/StatementsTest.php +++ b/tests/Services/Statistics/StatementsTest.php @@ -2,9 +2,9 @@ namespace Tests\Services\Statistics; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Statistics\Statements\StatementGetEarningsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Statistics\Statements\StatementGetEarningsResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -37,7 +37,8 @@ public function testGetEarnings(): void $result = $this->client->statistics->statements->getEarnings( 'acct_XXXXXXXXXXXXXXX', - startDate: '2025-01-01 00:00:00' + endDate: '2025-03-31 23:59:59', + startDate: '2025-01-01 00:00:00', ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -53,8 +54,8 @@ public function testGetEarningsWithOptionalParams(): void $result = $this->client->statistics->statements->getEarnings( 'acct_XXXXXXXXXXXXXXX', - startDate: '2025-01-01 00:00:00', endDate: '2025-03-31 23:59:59', + startDate: '2025-01-01 00:00:00', type: 'total', ); diff --git a/tests/Services/StatisticsTest.php b/tests/Services/StatisticsTest.php index 36638cc4..6034b32c 100644 --- a/tests/Services/StatisticsTest.php +++ b/tests/Services/StatisticsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Statistics\StatisticCalculateTotalTransactionsResponse; -use Onlyfansapi\Statistics\StatisticGetOverviewResponse; -use Onlyfansapi\Statistics\StatisticGetSubscriberMetricsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Statistics\StatisticCalculateTotalTransactionsResponse; +use OnlyFansAPI\Statistics\StatisticGetOverviewResponse; +use OnlyFansAPI\Statistics\StatisticGetSubscriberMetricsResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -38,29 +38,7 @@ public function testCalculateTotalTransactions(): void } $result = $this->client->statistics->calculateTotalTransactions( - 'acct_XXXXXXXXXXXXXXX', - endDate: '2025-03-31 23:59:59', - startDate: '2025-01-01 00:00:00', - ); - - // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf( - StatisticCalculateTotalTransactionsResponse::class, - $result - ); - } - - #[Test] - public function testCalculateTotalTransactionsWithOptionalParams(): void - { - if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Mock server tests are disabled'); - } - - $result = $this->client->statistics->calculateTotalTransactions( - 'acct_XXXXXXXXXXXXXXX', - endDate: '2025-03-31 23:59:59', - startDate: '2025-01-01 00:00:00', + 'acct_XXXXXXXXXXXXXXX' ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -115,6 +93,7 @@ public function testGetSubscriberMetricsWithOptionalParams(): void endDate: '2025-03-31 23:59:59', startDate: '2025-01-01 00:00:00', detailed: false, + detailedType: 'total', ); // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/StoredTest.php b/tests/Services/StoredTest.php index 79719f2b..8e5df23a 100644 --- a/tests/Services/StoredTest.php +++ b/tests/Services/StoredTest.php @@ -2,12 +2,12 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Stored\StoredListSharedTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListSharedTrialLinksResponse; -use Onlyfansapi\Stored\StoredListTrackingLinksResponse; -use Onlyfansapi\Stored\StoredListTrialLinksResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Stored\StoredListSharedTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListSharedTrialLinksResponse; +use OnlyFansAPI\Stored\StoredListTrackingLinksResponse; +use OnlyFansAPI\Stored\StoredListTrialLinksResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Stories/HighlightsTest.php b/tests/Services/Stories/HighlightsTest.php index a019b1e9..9ceb333b 100644 --- a/tests/Services/Stories/HighlightsTest.php +++ b/tests/Services/Stories/HighlightsTest.php @@ -2,15 +2,15 @@ namespace Tests\Services\Stories; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Stories\Highlights\HighlightAddStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightDeleteResponse; -use Onlyfansapi\Stories\Highlights\HighlightGetResponse; -use Onlyfansapi\Stories\Highlights\HighlightListResponse; -use Onlyfansapi\Stories\Highlights\HighlightNewResponse; -use Onlyfansapi\Stories\Highlights\HighlightRemoveStoryResponse; -use Onlyfansapi\Stories\Highlights\HighlightUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Stories\Highlights\HighlightAddStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightDeleteResponse; +use OnlyFansAPI\Stories\Highlights\HighlightGetResponse; +use OnlyFansAPI\Stories\Highlights\HighlightListResponse; +use OnlyFansAPI\Stories\Highlights\HighlightNewResponse; +use OnlyFansAPI\Stories\Highlights\HighlightRemoveStoryResponse; +use OnlyFansAPI\Stories\Highlights\HighlightUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -193,7 +193,7 @@ public function testAddStory(): void } $result = $this->client->stories->highlights->addStory( - 'maxime', + 'saepe', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890, storyID: 2345678901, @@ -211,7 +211,7 @@ public function testAddStoryWithOptionalParams(): void } $result = $this->client->stories->highlights->addStory( - 'maxime', + 'saepe', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890, storyID: 2345678901, @@ -229,7 +229,7 @@ public function testRemoveStory(): void } $result = $this->client->stories->highlights->removeStory( - 'maxime', + 'saepe', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890 ); @@ -246,7 +246,7 @@ public function testRemoveStoryWithOptionalParams(): void } $result = $this->client->stories->highlights->removeStory( - 'maxime', + 'saepe', account: 'acct_XXXXXXXXXXXXXXX', highlightID: 1234567890 ); diff --git a/tests/Services/StoriesTest.php b/tests/Services/StoriesTest.php index 9010fde6..ca2dde4a 100644 --- a/tests/Services/StoriesTest.php +++ b/tests/Services/StoriesTest.php @@ -2,16 +2,16 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Stories\StoryDeleteResponse; -use Onlyfansapi\Stories\StoryGetResponse; -use Onlyfansapi\Stories\StoryGetStatsResponse; -use Onlyfansapi\Stories\StoryListActiveResponse; -use Onlyfansapi\Stories\StoryListArchiveResponse; -use Onlyfansapi\Stories\StoryListViewersResponse; -use Onlyfansapi\Stories\StoryMarkAsWatchedResponse; -use Onlyfansapi\Stories\StoryNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Stories\StoryDeleteResponse; +use OnlyFansAPI\Stories\StoryGetResponse; +use OnlyFansAPI\Stories\StoryGetStatsResponse; +use OnlyFansAPI\Stories\StoryListActiveResponse; +use OnlyFansAPI\Stories\StoryListArchiveResponse; +use OnlyFansAPI\Stories\StoryListViewersResponse; +use OnlyFansAPI\Stories\StoryMarkAsWatchedResponse; +use OnlyFansAPI\Stories\StoryNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -60,7 +60,36 @@ public function testCreateWithOptionalParams(): void $result = $this->client->stories->create( 'acct_XXXXXXXXXXXXXXX', - mediaFiles: ['ofapi_media_abc123', 'string'] + mediaFiles: ['ofapi_media_abc123', 'string'], + canvasHeight: 1920, + canvasWidth: 1080, + question: [ + 'color' => '#FF51DC', + 'height' => 160, + 'left' => 25, + 'text' => 'Ask me anything!', + 'top' => 30, + 'width' => 257, + ], + texts: [ + [ + 'text' => 'New drop today!', + 'angle' => 0, + 'bgColor' => '#FF51DC', + 'color' => '#FFFFFF', + 'fontFamily' => 'ShantellSans', + 'fontSize' => 24, + 'fontWeight' => 400, + 'left' => 30.5, + 'scale' => 1, + 'textAlign' => 'center', + 'textHeight' => 36, + 'textWidth' => 140, + 'top' => 60, + 'type' => 'text', + 'zIndex' => 8, + ], + ], ); // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/SubscribersTest.php b/tests/Services/SubscribersTest.php index 6b4e5097..704d59c4 100644 --- a/tests/Services/SubscribersTest.php +++ b/tests/Services/SubscribersTest.php @@ -2,9 +2,9 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Subscribers\SubscriberGetStatisticsResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Subscribers\SubscriberGetStatisticsResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/TrackingLinks/TagsTest.php b/tests/Services/TrackingLinks/TagsTest.php index df7da73a..c70e521a 100644 --- a/tests/Services/TrackingLinks/TagsTest.php +++ b/tests/Services/TrackingLinks/TagsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\TrackingLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\TrackingLinks\Tags\TagAddResponse; -use Onlyfansapi\TrackingLinks\Tags\TagListResponse; -use Onlyfansapi\TrackingLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\TrackingLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagListResponse; +use OnlyFansAPI\TrackingLinks\Tags\TagRemoveResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/TrackingLinksTest.php b/tests/Services/TrackingLinksTest.php index df805fa8..bb8f32bf 100644 --- a/tests/Services/TrackingLinksTest.php +++ b/tests/Services/TrackingLinksTest.php @@ -2,15 +2,15 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\TrackingLinks\TrackingLinkDeleteResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkGetStatsResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSpendersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkListSubscribersResponse; -use Onlyfansapi\TrackingLinks\TrackingLinkNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\TrackingLinks\TrackingLinkDeleteResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkGetStatsResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSpendersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkListSubscribersResponse; +use OnlyFansAPI\TrackingLinks\TrackingLinkNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -75,7 +75,7 @@ public function testRetrieve(): void } $result = $this->client->trackingLinks->retrieve( - 'et', + 'quidem', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -91,7 +91,7 @@ public function testRetrieveWithOptionalParams(): void } $result = $this->client->trackingLinks->retrieve( - 'et', + 'quidem', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -120,7 +120,7 @@ public function testDelete(): void } $result = $this->client->trackingLinks->delete( - 'et', + 'quidem', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -136,7 +136,7 @@ public function testDeleteWithOptionalParams(): void } $result = $this->client->trackingLinks->delete( - 'et', + 'quidem', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -152,7 +152,7 @@ public function testGetCohortArps(): void } $result = $this->client->trackingLinks->getCohortArps( - 'et', + 'quasi', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -168,7 +168,7 @@ public function testGetCohortArpsWithOptionalParams(): void } $result = $this->client->trackingLinks->getCohortArps( - 'et', + 'quasi', account: 'acct_XXXXXXXXXXXXXXX', acquisitionEnd: '2026-01-31T23:59:59Z', acquisitionStart: '2026-01-01T00:00:00Z', @@ -187,7 +187,7 @@ public function testGetStats(): void } $result = $this->client->trackingLinks->getStats( - 'voluptatem', + 'ut', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -203,7 +203,7 @@ public function testGetStatsWithOptionalParams(): void } $result = $this->client->trackingLinks->getStats( - 'voluptatem', + 'ut', account: 'acct_XXXXXXXXXXXXXXX', dateEnd: '2026-01-31T23:59:59Z', dateStart: '2026-01-01T00:00:00Z', diff --git a/tests/Services/TransactionsTest.php b/tests/Services/TransactionsTest.php index 1fbd54aa..6b31768e 100644 --- a/tests/Services/TransactionsTest.php +++ b/tests/Services/TransactionsTest.php @@ -2,9 +2,9 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Transactions\TransactionListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Transactions\TransactionListResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/TrialLinks/TagsTest.php b/tests/Services/TrialLinks/TagsTest.php index 72e57801..e37f5e23 100644 --- a/tests/Services/TrialLinks/TagsTest.php +++ b/tests/Services/TrialLinks/TagsTest.php @@ -2,11 +2,11 @@ namespace Tests\Services\TrialLinks; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\TrialLinks\Tags\TagAddResponse; -use Onlyfansapi\TrialLinks\Tags\TagListResponse; -use Onlyfansapi\TrialLinks\Tags\TagRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\TrialLinks\Tags\TagAddResponse; +use OnlyFansAPI\TrialLinks\Tags\TagListResponse; +use OnlyFansAPI\TrialLinks\Tags\TagRemoveResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/TrialLinksTest.php b/tests/Services/TrialLinksTest.php index f21278a6..3ceb1c90 100644 --- a/tests/Services/TrialLinksTest.php +++ b/tests/Services/TrialLinksTest.php @@ -2,15 +2,15 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\TrialLinks\TrialLinkDeleteResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetResponse; -use Onlyfansapi\TrialLinks\TrialLinkGetStatsResponse; -use Onlyfansapi\TrialLinks\TrialLinkListResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSpendersResponse; -use Onlyfansapi\TrialLinks\TrialLinkListSubscribersResponse; -use Onlyfansapi\TrialLinks\TrialLinkNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\TrialLinks\TrialLinkDeleteResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetResponse; +use OnlyFansAPI\TrialLinks\TrialLinkGetStatsResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSpendersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkListSubscribersResponse; +use OnlyFansAPI\TrialLinks\TrialLinkNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -80,7 +80,7 @@ public function testRetrieve(): void } $result = $this->client->trialLinks->retrieve( - 'officia', + 'veniam', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -96,7 +96,7 @@ public function testRetrieveWithOptionalParams(): void } $result = $this->client->trialLinks->retrieve( - 'officia', + 'veniam', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -111,31 +111,7 @@ public function testList(): void $this->markTestSkipped('Mock server tests are disabled'); } - $result = $this->client->trialLinks->list( - 'acct_XXXXXXXXXXXXXXX', - limit: 10, - offset: 0 - ); - - // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf(TrialLinkListResponse::class, $result); - } - - #[Test] - public function testListWithOptionalParams(): void - { - if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Mock server tests are disabled'); - } - - $result = $this->client->trialLinks->list( - 'acct_XXXXXXXXXXXXXXX', - limit: 10, - offset: 0, - field: 'create_date', - sort: 'desc', - synchronous: false, - ); + $result = $this->client->trialLinks->list('acct_XXXXXXXXXXXXXXX'); // @phpstan-ignore-next-line method.alreadyNarrowedType $this->assertInstanceOf(TrialLinkListResponse::class, $result); @@ -149,7 +125,7 @@ public function testDelete(): void } $result = $this->client->trialLinks->delete( - 'officia', + 'veniam', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -165,7 +141,7 @@ public function testDeleteWithOptionalParams(): void } $result = $this->client->trialLinks->delete( - 'officia', + 'veniam', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -216,7 +192,7 @@ public function testListSubscribers(): void } $result = $this->client->trialLinks->listSubscribers( - 'eum', + 'quaerat', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0 @@ -234,7 +210,7 @@ public function testListSubscribersWithOptionalParams(): void } $result = $this->client->trialLinks->listSubscribers( - 'eum', + 'quaerat', account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0 @@ -252,7 +228,7 @@ public function testRetrieveCohortArps(): void } $result = $this->client->trialLinks->retrieveCohortArps( - 'eius', + 'deleniti', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -268,7 +244,7 @@ public function testRetrieveCohortArpsWithOptionalParams(): void } $result = $this->client->trialLinks->retrieveCohortArps( - 'eius', + 'deleniti', account: 'acct_XXXXXXXXXXXXXXX', acquisitionEnd: '2026-01-31T23:59:59Z', acquisitionStart: '2026-01-01T00:00:00Z', @@ -287,7 +263,7 @@ public function testRetrieveStats(): void } $result = $this->client->trialLinks->retrieveStats( - 'aut', + 'quis', account: 'acct_XXXXXXXXXXXXXXX' ); @@ -303,7 +279,7 @@ public function testRetrieveStatsWithOptionalParams(): void } $result = $this->client->trialLinks->retrieveStats( - 'aut', + 'quis', account: 'acct_XXXXXXXXXXXXXXX', dateEnd: '2026-01-31T23:59:59Z', dateStart: '2026-01-01T00:00:00Z', diff --git a/tests/Services/UserLists/UsersTest.php b/tests/Services/UserLists/UsersTest.php index f2bbd287..3c410723 100644 --- a/tests/Services/UserLists/UsersTest.php +++ b/tests/Services/UserLists/UsersTest.php @@ -2,14 +2,13 @@ namespace Tests\Services\UserLists; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\UserLists\Users\UserAddResponse; -use Onlyfansapi\UserLists\Users\UserClearResponse; -use Onlyfansapi\UserLists\Users\UserListPinnedResponse; -use Onlyfansapi\UserLists\Users\UserListResponse; -use Onlyfansapi\UserLists\Users\UserPinResponse; -use Onlyfansapi\UserLists\Users\UserRemoveResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\UserLists\Users\UserClearResponse; +use OnlyFansAPI\UserLists\Users\UserListPinnedResponse; +use OnlyFansAPI\UserLists\Users\UserListResponse; +use OnlyFansAPI\UserLists\Users\UserPinResponse; +use OnlyFansAPI\UserLists\Users\UserRemoveResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -81,7 +80,7 @@ public function testAdd(): void ); // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf(UserAddResponse::class, $result); + $this->assertNotNull($result); } #[Test] @@ -95,10 +94,11 @@ public function testAddWithOptionalParams(): void 'userListId', account: 'acct_XXXXXXXXXXXXXXX', ids: ['string', 'string', 'string'], + skipInvalid: true, ); // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf(UserAddResponse::class, $result); + $this->assertNotNull($result); } #[Test] diff --git a/tests/Services/UserListsTest.php b/tests/Services/UserListsTest.php index 968cb5f2..16f301f2 100644 --- a/tests/Services/UserListsTest.php +++ b/tests/Services/UserListsTest.php @@ -2,13 +2,13 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\UserLists\UserListDeleteResponse; -use Onlyfansapi\UserLists\UserListGetResponse; -use Onlyfansapi\UserLists\UserListListResponse; -use Onlyfansapi\UserLists\UserListNewResponse; -use Onlyfansapi\UserLists\UserListUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\UserLists\UserListDeleteResponse; +use OnlyFansAPI\UserLists\UserListGetResponse; +use OnlyFansAPI\UserLists\UserListListResponse; +use OnlyFansAPI\UserLists\UserListNewResponse; +use OnlyFansAPI\UserLists\UserListUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; @@ -41,7 +41,7 @@ public function testCreate(): void $result = $this->client->userLists->create( 'acct_XXXXXXXXXXXXXXX', - name: 'sdqtzwslsvoxbkxj' + name: 'llscmhd' ); // @phpstan-ignore-next-line method.alreadyNarrowedType @@ -57,7 +57,7 @@ public function testCreateWithOptionalParams(): void $result = $this->client->userLists->create( 'acct_XXXXXXXXXXXXXXX', - name: 'sdqtzwslsvoxbkxj' + name: 'llscmhd' ); // @phpstan-ignore-next-line method.alreadyNarrowedType diff --git a/tests/Services/Users/BlockTest.php b/tests/Services/Users/BlockTest.php index ab571200..3ac1e819 100644 --- a/tests/Services/Users/BlockTest.php +++ b/tests/Services/Users/BlockTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Users\Block\BlockDeleteResponse; -use Onlyfansapi\Users\Block\BlockNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Users\Block\BlockDeleteResponse; +use OnlyFansAPI\Users\Block\BlockNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Users/RestrictTest.php b/tests/Services/Users/RestrictTest.php index 7f31f98e..2abfeaaf 100644 --- a/tests/Services/Users/RestrictTest.php +++ b/tests/Services/Users/RestrictTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Users\Restrict\RestrictDeleteResponse; -use Onlyfansapi\Users\Restrict\RestrictNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Users\Restrict\RestrictDeleteResponse; +use OnlyFansAPI\Users\Restrict\RestrictNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/Users/SubscribeTest.php b/tests/Services/Users/SubscribeTest.php index f07a5899..477ea3d2 100644 --- a/tests/Services/Users/SubscribeTest.php +++ b/tests/Services/Users/SubscribeTest.php @@ -2,10 +2,10 @@ namespace Tests\Services\Users; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Users\Subscribe\SubscribeDeleteResponse; -use Onlyfansapi\Users\Subscribe\SubscribeNewResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Users\Subscribe\SubscribeDeleteResponse; +use OnlyFansAPI\Users\Subscribe\SubscribeNewResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/UsersTest.php b/tests/Services/UsersTest.php index 47807516..5883e39e 100644 --- a/tests/Services/UsersTest.php +++ b/tests/Services/UsersTest.php @@ -2,10 +2,10 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Users\UserGetResponse; -use Onlyfansapi\Users\UserListResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Users\UserGetResponse; +use OnlyFansAPI\Users\UserListResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/WebhooksTest.php b/tests/Services/WebhooksTest.php index 79ecaceb..4ebf1b3f 100644 --- a/tests/Services/WebhooksTest.php +++ b/tests/Services/WebhooksTest.php @@ -2,13 +2,13 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Webhooks\WebhookGetResponse; -use Onlyfansapi\Webhooks\WebhookListEventsResponse; -use Onlyfansapi\Webhooks\WebhookListResponse; -use Onlyfansapi\Webhooks\WebhookNewResponse; -use Onlyfansapi\Webhooks\WebhookUpdateResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Webhooks\WebhookGetResponse; +use OnlyFansAPI\Webhooks\WebhookListEventsResponse; +use OnlyFansAPI\Webhooks\WebhookListResponse; +use OnlyFansAPI\Webhooks\WebhookNewResponse; +use OnlyFansAPI\Webhooks\WebhookUpdateResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Services/WhoamiTest.php b/tests/Services/WhoamiTest.php index 2da402bc..0f6f6c7c 100644 --- a/tests/Services/WhoamiTest.php +++ b/tests/Services/WhoamiTest.php @@ -2,9 +2,9 @@ namespace Tests\Services; -use Onlyfansapi\Client; -use Onlyfansapi\Core\Util; -use Onlyfansapi\Whoami\WhoamiGetResponse; +use OnlyFansAPI\Client; +use OnlyFansAPI\Core\Util; +use OnlyFansAPI\Whoami\WhoamiGetResponse; use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase;