diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35627cd..54fdc0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,14 @@ name: CI on: push: - branches-ignore: - - 'generated' - - 'codegen/**' - - 'integrated/**' - - 'stl-preview-head/**' - - 'stl-preview-base/**' + branches: + - '**' + - '!integrated/**' + - '!stl-preview-head/**' + - '!stl-preview-base/**' + - '!generated' + - '!codegen/**' + - 'codegen/stl/**' pull_request: branches-ignore: - 'stl-preview-head/**' diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 76a4ae4..bbfb3e7 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -9,7 +9,7 @@ jobs: release_doctor: name: release doctor runs-on: ubuntu-latest - if: github.repository == 'stainless-sdks/qbil-php-sdk-php' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + if: github.repository == 'sadiqk2/api-php-sdk-qbil' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - uses: actions/checkout@v6 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1332969..c7159c1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.1" + ".": "0.0.2" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 483cf85..c985432 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 52 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/qbil-software%2Fqbil-php-sdk-9abec18295cfc751c7789f72f064e350916f1d42843be136f05ade3ee5fe871b.yml openapi_spec_hash: 38132c4324efa54e915ac5a9dcd01ea3 -config_hash: 6bb0ea547199efc1bc60ee482552d69b +config_hash: c701089245cda0fdd57da4b7d682d880 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ee878b0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,16 @@ +# Changelog + +## 0.0.2 (2026-03-17) + +Full Changelog: [v0.0.1...v0.0.2](https://github.com/sadiqk2/api-php-sdk-qbil/compare/v0.0.1...v0.0.2) + +### Chores + +* **internal:** codegen related update ([6ae26b3](https://github.com/sadiqk2/api-php-sdk-qbil/commit/6ae26b3b7f20bf3a0936e8698c72c8a392063802)) +* **internal:** codegen related update ([4ebd761](https://github.com/sadiqk2/api-php-sdk-qbil/commit/4ebd76140d0cf3cd627e7ff1dff0249c8e032be6)) +* **internal:** remove mock server code ([5f1cd6a](https://github.com/sadiqk2/api-php-sdk-qbil/commit/5f1cd6affc5551d5e078d4c5ea97bd95c7bde510)) +* **internal:** tweak CI branches ([c26dc92](https://github.com/sadiqk2/api-php-sdk-qbil/commit/c26dc9221bfc03762338fff328f59e596efffdc3)) +* **internal:** upgrade phpunit ([22a9597](https://github.com/sadiqk2/api-php-sdk-qbil/commit/22a95979c42db16af08eba1329828547d08e5bec)) +* **test:** update skip reason message ([23fca65](https://github.com/sadiqk2/api-php-sdk-qbil/commit/23fca65ca57a6c690efed173c1fb91953eee90eb)) +* update mock server docs ([15dfea0](https://github.com/sadiqk2/api-php-sdk-qbil/commit/15dfea06564ff243fa7bf1d64124b1bbe915d46f)) +* update SDK settings ([c3219ab](https://github.com/sadiqk2/api-php-sdk-qbil/commit/c3219abad1e23e441f7bb515020915945ee6b7c9)) diff --git a/README.md b/README.md index a0705f7..dff2c72 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,14 @@ It is generated with [Stainless](https://www.stainless.com/). To use this package, install via Composer by adding the following to your application's `composer.json`: + + ```json { "repositories": [ { "type": "vcs", - "url": "git@github.com:stainless-sdks/qbil-php-sdk-php.git" + "url": "git@github.com:sadiqk2/api-php-sdk-qbil.git" } ], "require": { @@ -24,6 +26,8 @@ To use this package, install via Composer by adding the following to your applic } ``` + + ## Usage This library uses named parameters to specify optional arguments. @@ -164,4 +168,4 @@ PHP 8.1.0 or higher. ## Contributing -See [the contributing documentation](https://github.com/stainless-sdks/qbil-php-sdk-php/tree/main/CONTRIBUTING.md). +See [the contributing documentation](https://github.com/sadiqk2/api-php-sdk-qbil/tree/main/CONTRIBUTING.md). diff --git a/composer.lock b/composer.lock index 3f6c209..7a5e63d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5fc63f7c84d94b42416689723c547f69", + "content-hash": "ffa287ea8babf60e021f37e62c6c207a", "packages": [ { "name": "php-http/discovery", @@ -194,16 +194,16 @@ "packages-dev": [ { "name": "brianium/paratest", - "version": "v7.8.4", + "version": "v7.8.5", "source": { "type": "git", "url": "https://github.com/paratestphp/paratest.git", - "reference": "130a9bf0e269ee5f5b320108f794ad03e275cad4" + "reference": "9b324c8fc319cf9728b581c7a90e1c8f6361c5e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paratestphp/paratest/zipball/130a9bf0e269ee5f5b320108f794ad03e275cad4", - "reference": "130a9bf0e269ee5f5b320108f794ad03e275cad4", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/9b324c8fc319cf9728b581c7a90e1c8f6361c5e5", + "reference": "9b324c8fc319cf9728b581c7a90e1c8f6361c5e5", "shasum": "" }, "require": { @@ -211,27 +211,27 @@ "ext-pcre": "*", "ext-reflection": "*", "ext-simplexml": "*", - "fidry/cpu-core-counter": "^1.2.0", + "fidry/cpu-core-counter": "^1.3.0", "jean85/pretty-package-versions": "^2.1.1", - "php": "~8.2.0 || ~8.3.0 || ~8.4.0", - "phpunit/php-code-coverage": "^11.0.10", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "phpunit/php-code-coverage": "^11.0.12", "phpunit/php-file-iterator": "^5.1.0", "phpunit/php-timer": "^7.0.1", - "phpunit/phpunit": "^11.5.24", + "phpunit/phpunit": "^11.5.46", "sebastian/environment": "^7.2.1", - "symfony/console": "^6.4.22 || ^7.3.0", - "symfony/process": "^6.4.20 || ^7.3.0" + "symfony/console": "^6.4.22 || ^7.3.4 || ^8.0.3", + "symfony/process": "^6.4.20 || ^7.3.4 || ^8.0.3" }, "require-dev": { "doctrine/coding-standard": "^12.0.0", "ext-pcov": "*", "ext-posix": "*", - "phpstan/phpstan": "^2.1.17", + "phpstan/phpstan": "^2.1.33", "phpstan/phpstan-deprecation-rules": "^2.0.3", - "phpstan/phpstan-phpunit": "^2.0.6", - "phpstan/phpstan-strict-rules": "^2.0.4", - "squizlabs/php_codesniffer": "^3.13.2", - "symfony/filesystem": "^6.4.13 || ^7.3.0" + "phpstan/phpstan-phpunit": "^2.0.11", + "phpstan/phpstan-strict-rules": "^2.0.7", + "squizlabs/php_codesniffer": "^3.13.5", + "symfony/filesystem": "^6.4.13 || ^7.3.2 || ^8.0.1" }, "bin": [ "bin/paratest", @@ -271,7 +271,7 @@ ], "support": { "issues": "https://github.com/paratestphp/paratest/issues", - "source": "https://github.com/paratestphp/paratest/tree/v7.8.4" + "source": "https://github.com/paratestphp/paratest/tree/v7.8.5" }, "funding": [ { @@ -283,7 +283,7 @@ "type": "paypal" } ], - "time": "2025-06-23T06:07:21+00:00" + "time": "2026-01-08T08:02:38+00:00" }, { "name": "clue/ndjson-react", @@ -1412,38 +1412,38 @@ }, { "name": "pestphp/pest", - "version": "v3.8.4", + "version": "v3.8.5", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "72cf695554420e21858cda831d5db193db102574" + "reference": "7796630eafcfd1c02660cecdde3bc6984fbf01f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/72cf695554420e21858cda831d5db193db102574", - "reference": "72cf695554420e21858cda831d5db193db102574", + "url": "https://api.github.com/repos/pestphp/pest/zipball/7796630eafcfd1c02660cecdde3bc6984fbf01f4", + "reference": "7796630eafcfd1c02660cecdde3bc6984fbf01f4", "shasum": "" }, "require": { - "brianium/paratest": "^7.8.4", - "nunomaduro/collision": "^8.8.2", - "nunomaduro/termwind": "^2.3.1", + "brianium/paratest": "^7.8.5", + "nunomaduro/collision": "^8.8.3", + "nunomaduro/termwind": "^2.3.3", "pestphp/pest-plugin": "^3.0.0", "pestphp/pest-plugin-arch": "^3.1.1", "pestphp/pest-plugin-mutate": "^3.0.5", "php": "^8.2.0", - "phpunit/phpunit": "^11.5.33" + "phpunit/phpunit": "^11.5.50" }, "conflict": { "filp/whoops": "<2.16.0", - "phpunit/phpunit": ">11.5.33", + "phpunit/phpunit": ">11.5.50", "sebastian/exporter": "<6.0.0", "webmozart/assert": "<1.11.0" }, "require-dev": { "pestphp/pest-dev-tools": "^3.4.0", "pestphp/pest-plugin-type-coverage": "^3.6.1", - "symfony/process": "^7.3.0" + "symfony/process": "^7.4.4" }, "bin": [ "bin/pest" @@ -1508,7 +1508,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v3.8.4" + "source": "https://github.com/pestphp/pest/tree/v3.8.5" }, "funding": [ { @@ -1520,7 +1520,7 @@ "type": "github" } ], - "time": "2025-08-20T19:12:42+00:00" + "time": "2026-01-28T01:33:45+00:00" }, { "name": "pestphp/pest-plugin", @@ -2627,28 +2627,28 @@ }, { "name": "phpunit/php-file-iterator", - "version": "5.1.0", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/2f3a64888c814fc235386b7387dd5b5ed92ad903", + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -2676,15 +2676,27 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" } ], - "time": "2024-08-27T05:02:59+00:00" + "time": "2026-02-02T13:52:54+00:00" }, { "name": "phpunit/php-invoker", @@ -2872,16 +2884,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.5.33", + "version": "11.5.50", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "5965e9ff57546cb9137c0ff6aa78cb7442b05cf6" + "reference": "fdfc727f0fcacfeb8fcb30c7e5da173125b58be3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5965e9ff57546cb9137c0ff6aa78cb7442b05cf6", - "reference": "5965e9ff57546cb9137c0ff6aa78cb7442b05cf6", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fdfc727f0fcacfeb8fcb30c7e5da173125b58be3", + "reference": "fdfc727f0fcacfeb8fcb30c7e5da173125b58be3", "shasum": "" }, "require": { @@ -2895,17 +2907,17 @@ "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.2", - "phpunit/php-code-coverage": "^11.0.10", + "phpunit/php-code-coverage": "^11.0.12", "phpunit/php-file-iterator": "^5.1.0", "phpunit/php-invoker": "^5.0.1", "phpunit/php-text-template": "^4.0.1", "phpunit/php-timer": "^7.0.1", "sebastian/cli-parser": "^3.0.2", "sebastian/code-unit": "^3.0.3", - "sebastian/comparator": "^6.3.2", + "sebastian/comparator": "^6.3.3", "sebastian/diff": "^6.0.2", "sebastian/environment": "^7.2.1", - "sebastian/exporter": "^6.3.0", + "sebastian/exporter": "^6.3.2", "sebastian/global-state": "^7.0.2", "sebastian/object-enumerator": "^6.0.1", "sebastian/type": "^5.1.3", @@ -2953,7 +2965,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.33" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.50" }, "funding": [ { @@ -2977,7 +2989,7 @@ "type": "tidelift" } ], - "time": "2025-08-16T05:19:02+00:00" + "time": "2026-01-27T05:59:18+00:00" }, { "name": "psr/container", @@ -3936,16 +3948,16 @@ }, { "name": "sebastian/comparator", - "version": "6.3.2", + "version": "6.3.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8" + "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/85c77556683e6eee4323e4c5468641ca0237e2e8", - "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", + "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", "shasum": "" }, "require": { @@ -4004,7 +4016,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.2" + "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.3" }, "funding": [ { @@ -4024,7 +4036,7 @@ "type": "tidelift" } ], - "time": "2025-08-10T08:07:46+00:00" + "time": "2026-01-24T09:26:40+00:00" }, { "name": "sebastian/complexity", @@ -6668,5 +6680,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/scripts/mock b/scripts/mock deleted file mode 100755 index 0b28f6e..0000000 --- a/scripts/mock +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -e - -cd "$(dirname "$0")/.." - -if [[ -n "$1" && "$1" != '--'* ]]; then - URL="$1" - shift -else - URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" -fi - -# Check if the URL is empty -if [ -z "$URL" ]; then - echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" - exit 1 -fi - -echo "==> Starting mock server with URL ${URL}" - -# Run prism mock on the given spec -if [ "$1" == "--daemon" ]; then - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & - - # Wait for server to come online - echo -n "Waiting for server" - while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do - echo -n "." - sleep 0.1 - done - - if grep -q "✖ fatal" ".prism.log"; then - cat .prism.log - exit 1 - fi - - echo -else - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" -fi diff --git a/scripts/test b/scripts/test index 4b777e0..63df137 100755 --- a/scripts/test +++ b/scripts/test @@ -4,52 +4,6 @@ set -e cd "$(dirname "$0")/.." -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -NC='\033[0m' # No Color -function prism_is_running() { - curl --silent "http://localhost:4010" >/dev/null 2>&1 -} - -kill_server_on_port() { - pids=$(lsof -t -i tcp:"$1" || echo "") - if [ "$pids" != "" ]; then - kill "$pids" - echo "Stopped $pids." - fi -} - -function is_overriding_api_base_url() { - [ -n "$TEST_API_BASE_URL" ] -} - -if ! is_overriding_api_base_url && ! prism_is_running ; then - # When we exit this script, make sure to kill the background mock server process - trap 'kill_server_on_port 4010' EXIT - - # Start the dev server - ./scripts/mock --daemon -fi - -if is_overriding_api_base_url ; then - echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}" - echo -elif ! prism_is_running ; then - echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server" - echo -e "running against your OpenAPI spec." - echo - echo -e "To run the server, pass in the path or url of your OpenAPI" - echo -e "spec to the prism command:" - echo - echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" - echo - - exit 1 -else - echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}" - echo -fi exec -- ./vendor/bin/pest --colors=always diff --git a/src/Core/Conversion.php b/src/Core/Conversion.php index e720701..7b35c85 100644 --- a/src/Core/Conversion.php +++ b/src/Core/Conversion.php @@ -170,6 +170,37 @@ private static function tryConvert(Converter|ConverterSource|string $target, mix return $value; + case 'DateTimeInterface': + case 'DateTimeImmutable': + if (is_string($value)) { + try { + ++$state->maybe; + + return new \DateTimeImmutable($value); + } catch (\Exception) { + --$state->maybe; + } + } + + ++$state->no; + + return $value; + + case 'DateTime': + if (is_string($value)) { + try { + ++$state->maybe; + + return new \DateTime($value); + } catch (\Exception) { + --$state->maybe; + } + } + + ++$state->no; + + return $value; + default: ++$state->no; diff --git a/src/ServiceContracts/V1/OrdersContract.php b/src/ServiceContracts/V1/OrdersContract.php index 8acf58c..220a70d 100644 --- a/src/ServiceContracts/V1/OrdersContract.php +++ b/src/ServiceContracts/V1/OrdersContract.php @@ -93,10 +93,8 @@ public function update( /** * @api * - * @param list $displayNumber * @param int $itemsPerPage The number of items per page * @param int $page The collection page number - * @param list $subsidiary * @param RequestOpts|null $requestOptions * * @return list @@ -108,7 +106,7 @@ public function list( ?string $createdAtBefore = null, ?string $createdAtStrictlyAfter = null, ?string $createdAtStrictlyBefore = null, - ?array $displayNumber = null, + ?string $displayNumber = null, int $itemsPerPage = 40, ?string $lastUpdatedAtAfter = null, ?string $lastUpdatedAtBefore = null, @@ -119,7 +117,7 @@ public function list( ?string $orderDateStrictlyAfter = null, ?string $orderDateStrictlyBefore = null, int $page = 1, - ?array $subsidiary = null, + ?string $subsidiary = null, RequestOptions|array|null $requestOptions = null, ): array; diff --git a/src/ServiceContracts/V1/PackagingContract.php b/src/ServiceContracts/V1/PackagingContract.php index 67fc6c2..d0ad342 100644 --- a/src/ServiceContracts/V1/PackagingContract.php +++ b/src/ServiceContracts/V1/PackagingContract.php @@ -29,7 +29,6 @@ public function retrieve( /** * @api * - * @param list $code * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -39,7 +38,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $code = null, + ?string $code = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/ServiceContracts/V1/PalletsContract.php b/src/ServiceContracts/V1/PalletsContract.php index d45b75d..29bb6a1 100644 --- a/src/ServiceContracts/V1/PalletsContract.php +++ b/src/ServiceContracts/V1/PalletsContract.php @@ -29,7 +29,6 @@ public function retrieve( /** * @api * - * @param list $code * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -39,7 +38,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $code = null, + ?string $code = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/ServiceContracts/V1/PaymentConditionsContract.php b/src/ServiceContracts/V1/PaymentConditionsContract.php index e21b8ca..6e2191a 100644 --- a/src/ServiceContracts/V1/PaymentConditionsContract.php +++ b/src/ServiceContracts/V1/PaymentConditionsContract.php @@ -29,7 +29,6 @@ public function retrieve( /** * @api * - * @param list $id * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -39,7 +38,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $id = null, + ?string $id = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/ServiceContracts/V1/SalesInvoicesContract.php b/src/ServiceContracts/V1/SalesInvoicesContract.php index 55410a0..b018d90 100644 --- a/src/ServiceContracts/V1/SalesInvoicesContract.php +++ b/src/ServiceContracts/V1/SalesInvoicesContract.php @@ -31,7 +31,6 @@ public function retrieve( * * @param int $itemsPerPage The number of items per page * @param int $page The collection page number - * @param list $type * @param RequestOpts|null $requestOptions * * @return list @@ -53,7 +52,7 @@ public function list( ?string $lastUpdatedAtStrictlyAfter = null, ?string $lastUpdatedAtStrictlyBefore = null, int $page = 1, - ?array $type = null, + ?string $type = null, RequestOptions|array|null $requestOptions = null, ): array; } diff --git a/src/ServiceContracts/V1/StocksContract.php b/src/ServiceContracts/V1/StocksContract.php index 10d5d47..d657288 100644 --- a/src/ServiceContracts/V1/StocksContract.php +++ b/src/ServiceContracts/V1/StocksContract.php @@ -30,9 +30,7 @@ public function retrieve( * @api * * @param int $itemsPerPage The number of items per page - * @param list $ourReference * @param int $page The collection page number - * @param list $remainingQuantity * @param RequestOpts|null $requestOptions * * @return list @@ -41,9 +39,9 @@ public function retrieve( */ public function list( int $itemsPerPage = 40, - ?array $ourReference = null, + ?string $ourReference = null, int $page = 1, - ?array $remainingQuantity = null, + ?float $remainingQuantity = null, ?string $remainingQuantityBetween = null, ?string $remainingQuantityGt = null, ?string $remainingQuantityGte = null, diff --git a/src/ServiceContracts/V1/TradeConditionsContract.php b/src/ServiceContracts/V1/TradeConditionsContract.php index decaeda..8be7afe 100644 --- a/src/ServiceContracts/V1/TradeConditionsContract.php +++ b/src/ServiceContracts/V1/TradeConditionsContract.php @@ -29,7 +29,6 @@ public function retrieve( /** * @api * - * @param list $id * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -39,7 +38,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $id = null, + ?string $id = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/ServiceContracts/V1Contract.php b/src/ServiceContracts/V1Contract.php index 1a98732..740ec4d 100644 --- a/src/ServiceContracts/V1Contract.php +++ b/src/ServiceContracts/V1Contract.php @@ -19,7 +19,6 @@ interface V1Contract * * @param int $itemsPerPage The number of items per page * @param Location|value-of $location Filter by location(e.g. `custom-fields?location=contract` will return all custom fields placed in contract and contract-lines) - * @param list $name * @param int $page The collection page number * @param RequestOpts|null $requestOptions * @@ -30,7 +29,7 @@ interface V1Contract public function listCustomFields( int $itemsPerPage = 40, Location|string|null $location = null, - ?array $name = null, + ?string $name = null, int $page = 1, RequestOptions|array|null $requestOptions = null, ): array; diff --git a/src/Services/V1/AddressesRawService.php b/src/Services/V1/AddressesRawService.php index 4fdecaa..718f10d 100644 --- a/src/Services/V1/AddressesRawService.php +++ b/src/Services/V1/AddressesRawService.php @@ -15,6 +15,8 @@ use QbilPhpSDK\V1\Addresses\AddressListParams\Relation; /** + * The **Address API** provides read-only access to all the addresses. + * * @phpstan-import-type RelationShape from \QbilPhpSDK\V1\Addresses\AddressListParams\Relation * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/AddressesService.php b/src/Services/V1/AddressesService.php index edc8735..f6c1a86 100644 --- a/src/Services/V1/AddressesService.php +++ b/src/Services/V1/AddressesService.php @@ -13,6 +13,8 @@ use QbilPhpSDK\V1\Addresses\AddressListParams\Relation; /** + * The **Address API** provides read-only access to all the addresses. + * * @phpstan-import-type RelationShape from \QbilPhpSDK\V1\Addresses\AddressListParams\Relation * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/ContainerOrdersRawService.php b/src/Services/V1/ContainerOrdersRawService.php index b9dbf15..0cbca88 100644 --- a/src/Services/V1/ContainerOrdersRawService.php +++ b/src/Services/V1/ContainerOrdersRawService.php @@ -14,6 +14,8 @@ use QbilPhpSDK\V1\ContainerOrders\ContainerOrderUpdateParams; /** + * The Order API allows for managing various order types, including purchase, sales, stock movements, and back-to-back orders. It supports retrieving order data and updating existing records. Additionally, the API supports uploading attachments, enabling users to associate files with specific orders. + * * @phpstan-import-type ContainerOrderLineShape from \QbilPhpSDK\V1\ContainerOrders\ContainerOrderLine * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/ContainerOrdersService.php b/src/Services/V1/ContainerOrdersService.php index 73b61d1..6c2306a 100644 --- a/src/Services/V1/ContainerOrdersService.php +++ b/src/Services/V1/ContainerOrdersService.php @@ -13,6 +13,8 @@ use QbilPhpSDK\V1\ContainerOrders\ContainerOrderLine; /** + * The Order API allows for managing various order types, including purchase, sales, stock movements, and back-to-back orders. It supports retrieving order data and updating existing records. Additionally, the API supports uploading attachments, enabling users to associate files with specific orders. + * * @phpstan-import-type ContainerOrderLineShape from \QbilPhpSDK\V1\ContainerOrders\ContainerOrderLine * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/ContractsRawService.php b/src/Services/V1/ContractsRawService.php index beaa676..b92cf2d 100644 --- a/src/Services/V1/ContractsRawService.php +++ b/src/Services/V1/ContractsRawService.php @@ -16,6 +16,8 @@ use QbilPhpSDK\V1\Contracts\ContractListParams\Subsidiary; /** + * The **Contract API** provides read-only access to contracts (both purchase and sales). + * * @phpstan-import-type SubsidiaryShape from \QbilPhpSDK\V1\Contracts\ContractListParams\Subsidiary * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/ContractsService.php b/src/Services/V1/ContractsService.php index 1729716..432f173 100644 --- a/src/Services/V1/ContractsService.php +++ b/src/Services/V1/ContractsService.php @@ -13,6 +13,8 @@ use QbilPhpSDK\V1\Contracts\ContractListParams\Subsidiary; /** + * The **Contract API** provides read-only access to contracts (both purchase and sales). + * * @phpstan-import-type SubsidiaryShape from \QbilPhpSDK\V1\Contracts\ContractListParams\Subsidiary * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/Orders/ChangeRequestsRawService.php b/src/Services/V1/Orders/ChangeRequestsRawService.php index 17cb48c..57ecc71 100644 --- a/src/Services/V1/Orders/ChangeRequestsRawService.php +++ b/src/Services/V1/Orders/ChangeRequestsRawService.php @@ -16,6 +16,8 @@ use QbilPhpSDK\V1\Orders\ChangeRequests\OrderChangeRequest; /** + * The Order API allows for managing various order types, including purchase, sales, stock movements, and back-to-back orders. It supports retrieving order data and updating existing records. Additionally, the API supports uploading attachments, enabling users to associate files with specific orders. + * * @phpstan-import-type OrderChangeInputShape from \QbilPhpSDK\V1\Orders\ChangeRequests\OrderChangeInput * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/Orders/ChangeRequestsService.php b/src/Services/V1/Orders/ChangeRequestsService.php index ead4cdf..6cace9a 100644 --- a/src/Services/V1/Orders/ChangeRequestsService.php +++ b/src/Services/V1/Orders/ChangeRequestsService.php @@ -13,6 +13,8 @@ use QbilPhpSDK\V1\Orders\ChangeRequests\OrderChangeRequest; /** + * The Order API allows for managing various order types, including purchase, sales, stock movements, and back-to-back orders. It supports retrieving order data and updating existing records. Additionally, the API supports uploading attachments, enabling users to associate files with specific orders. + * * @phpstan-import-type OrderChangeInputShape from \QbilPhpSDK\V1\Orders\ChangeRequests\OrderChangeInput * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ diff --git a/src/Services/V1/OrdersRawService.php b/src/Services/V1/OrdersRawService.php index 6790838..97873b3 100644 --- a/src/Services/V1/OrdersRawService.php +++ b/src/Services/V1/OrdersRawService.php @@ -36,6 +36,8 @@ use QbilPhpSDK\V1\Orders\Transport; /** + * The Order API allows for managing various order types, including purchase, sales, stock movements, and back-to-back orders. It supports retrieving order data and updating existing records. Additionally, the API supports uploading attachments, enabling users to associate files with specific orders. + * * @phpstan-import-type BackToBackOrderLineShape from \QbilPhpSDK\V1\Orders\OrderUpdateParams\BackToBackOrderLine * @phpstan-import-type PurchaseOrderLineShape from \QbilPhpSDK\V1\Orders\OrderUpdateParams\PurchaseOrderLine * @phpstan-import-type SalesOrderLineShape from \QbilPhpSDK\V1\Orders\OrderUpdateParams\SalesOrderLine @@ -146,7 +148,7 @@ public function update( * createdAtBefore?: string, * createdAtStrictlyAfter?: string, * createdAtStrictlyBefore?: string, - * displayNumber?: list, + * displayNumber?: string, * itemsPerPage?: int, * lastUpdatedAtAfter?: string, * lastUpdatedAtBefore?: string, @@ -157,7 +159,7 @@ public function update( * orderDateStrictlyAfter?: string, * orderDateStrictlyBefore?: string, * page?: int, - * subsidiary?: list, + * subsidiary?: string, * }|OrderListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/V1/OrdersService.php b/src/Services/V1/OrdersService.php index 4537a8f..785a518 100644 --- a/src/Services/V1/OrdersService.php +++ b/src/Services/V1/OrdersService.php @@ -27,6 +27,8 @@ use QbilPhpSDK\V1\Orders\Transport; /** + * The Order API allows for managing various order types, including purchase, sales, stock movements, and back-to-back orders. It supports retrieving order data and updating existing records. Additionally, the API supports uploading attachments, enabling users to associate files with specific orders. + * * @phpstan-import-type BackToBackOrderLineShape from \QbilPhpSDK\V1\Orders\OrderUpdateParams\BackToBackOrderLine * @phpstan-import-type PurchaseOrderLineShape from \QbilPhpSDK\V1\Orders\OrderUpdateParams\PurchaseOrderLine * @phpstan-import-type SalesOrderLineShape from \QbilPhpSDK\V1\Orders\OrderUpdateParams\SalesOrderLine @@ -161,10 +163,8 @@ public function update( * * Get all the orders * - * @param list $displayNumber * @param int $itemsPerPage The number of items per page * @param int $page The collection page number - * @param list $subsidiary * @param RequestOpts|null $requestOptions * * @return list @@ -176,7 +176,7 @@ public function list( ?string $createdAtBefore = null, ?string $createdAtStrictlyAfter = null, ?string $createdAtStrictlyBefore = null, - ?array $displayNumber = null, + ?string $displayNumber = null, int $itemsPerPage = 40, ?string $lastUpdatedAtAfter = null, ?string $lastUpdatedAtBefore = null, @@ -187,7 +187,7 @@ public function list( ?string $orderDateStrictlyAfter = null, ?string $orderDateStrictlyBefore = null, int $page = 1, - ?array $subsidiary = null, + ?string $subsidiary = null, RequestOptions|array|null $requestOptions = null, ): array { $params = Util::removeNulls( diff --git a/src/Services/V1/PackagingRawService.php b/src/Services/V1/PackagingRawService.php index ba2eea7..bff17ad 100644 --- a/src/Services/V1/PackagingRawService.php +++ b/src/Services/V1/PackagingRawService.php @@ -14,6 +14,9 @@ use QbilPhpSDK\V1\Packaging\PackagingListParams; /** + * The **Packaging API** provides read-only access to root data packaging, + * like name, description, type, etc. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PackagingRawService implements PackagingRawContract @@ -55,7 +58,7 @@ public function retrieve( * Retrieves the collection of Packaging resources. * * @param array{ - * code?: list, itemsPerPage?: int, page?: int + * code?: string, itemsPerPage?: int, page?: int * }|PackagingListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/V1/PackagingService.php b/src/Services/V1/PackagingService.php index 85b04c2..f58c320 100644 --- a/src/Services/V1/PackagingService.php +++ b/src/Services/V1/PackagingService.php @@ -12,6 +12,9 @@ use QbilPhpSDK\V1\Packaging\Packaging; /** + * The **Packaging API** provides read-only access to root data packaging, + * like name, description, type, etc. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PackagingService implements PackagingContract @@ -54,7 +57,6 @@ public function retrieve( * * Retrieves the collection of Packaging resources. * - * @param list $code * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -64,7 +66,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $code = null, + ?string $code = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/Services/V1/PalletsRawService.php b/src/Services/V1/PalletsRawService.php index 181d44c..e84ecc8 100644 --- a/src/Services/V1/PalletsRawService.php +++ b/src/Services/V1/PalletsRawService.php @@ -14,6 +14,9 @@ use QbilPhpSDK\V1\Pallets\PalletListParams; /** + * The Pallet API provides read-only access to root data pallets, + * like name, description, type, etc. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PalletsRawService implements PalletsRawContract @@ -55,7 +58,7 @@ public function retrieve( * Retrieves the collection of Pallet resources. * * @param array{ - * code?: list, itemsPerPage?: int, page?: int + * code?: string, itemsPerPage?: int, page?: int * }|PalletListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/V1/PalletsService.php b/src/Services/V1/PalletsService.php index cc732c9..8d0f112 100644 --- a/src/Services/V1/PalletsService.php +++ b/src/Services/V1/PalletsService.php @@ -12,6 +12,9 @@ use QbilPhpSDK\V1\Pallets\Pallet; /** + * The Pallet API provides read-only access to root data pallets, + * like name, description, type, etc. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PalletsService implements PalletsContract @@ -54,7 +57,6 @@ public function retrieve( * * Retrieves the collection of Pallet resources. * - * @param list $code * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -64,7 +66,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $code = null, + ?string $code = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/Services/V1/PaymentConditionsRawService.php b/src/Services/V1/PaymentConditionsRawService.php index d42e212..352523c 100644 --- a/src/Services/V1/PaymentConditionsRawService.php +++ b/src/Services/V1/PaymentConditionsRawService.php @@ -14,6 +14,8 @@ use QbilPhpSDK\V1\PaymentConditions\PaymentConditionListParams; /** + * The **Payment Condition API** provides secure access to the terms and conditions associated with payment agreements. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PaymentConditionsRawService implements PaymentConditionsRawContract @@ -55,7 +57,7 @@ public function retrieve( * Retrieves the collection of PaymentCondition resources. * * @param array{ - * id?: list, itemsPerPage?: int, page?: int + * id?: string, itemsPerPage?: int, page?: int * }|PaymentConditionListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/V1/PaymentConditionsService.php b/src/Services/V1/PaymentConditionsService.php index 4e47c2d..e91c2c9 100644 --- a/src/Services/V1/PaymentConditionsService.php +++ b/src/Services/V1/PaymentConditionsService.php @@ -12,6 +12,8 @@ use QbilPhpSDK\V1\PaymentConditions\PaymentCondition; /** + * The **Payment Condition API** provides secure access to the terms and conditions associated with payment agreements. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PaymentConditionsService implements PaymentConditionsContract @@ -54,7 +56,6 @@ public function retrieve( * * Retrieves the collection of PaymentCondition resources. * - * @param list $id * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -64,7 +65,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $id = null, + ?string $id = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/Services/V1/ProductionOrdersRawService.php b/src/Services/V1/ProductionOrdersRawService.php index ab67866..a6534b2 100644 --- a/src/Services/V1/ProductionOrdersRawService.php +++ b/src/Services/V1/ProductionOrdersRawService.php @@ -18,6 +18,8 @@ use QbilPhpSDK\V1\ProductionOrders\ProductionResult; /** + * The **Production API** allows for managing production orders. It supports both reading existing order details and creating new ones. + * * @phpstan-import-type ProductionIngredientShape from \QbilPhpSDK\V1\ProductionOrders\ProductionIngredient * @phpstan-import-type ProductionResultShape from \QbilPhpSDK\V1\ProductionOrders\ProductionResult * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions diff --git a/src/Services/V1/ProductionOrdersService.php b/src/Services/V1/ProductionOrdersService.php index 94a9573..25c814f 100644 --- a/src/Services/V1/ProductionOrdersService.php +++ b/src/Services/V1/ProductionOrdersService.php @@ -14,6 +14,8 @@ use QbilPhpSDK\V1\ProductionOrders\ProductionResult; /** + * The **Production API** allows for managing production orders. It supports both reading existing order details and creating new ones. + * * @phpstan-import-type ProductionIngredientShape from \QbilPhpSDK\V1\ProductionOrders\ProductionIngredient * @phpstan-import-type ProductionResultShape from \QbilPhpSDK\V1\ProductionOrders\ProductionResult * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions diff --git a/src/Services/V1/ProductsRawService.php b/src/Services/V1/ProductsRawService.php index 1d31902..2228a08 100644 --- a/src/Services/V1/ProductsRawService.php +++ b/src/Services/V1/ProductsRawService.php @@ -14,6 +14,8 @@ use QbilPhpSDK\V1\Products\ProductListParams; /** + * The **Product API** provides read-only access to root data product. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class ProductsRawService implements ProductsRawContract diff --git a/src/Services/V1/ProductsService.php b/src/Services/V1/ProductsService.php index 04104f5..08419ef 100644 --- a/src/Services/V1/ProductsService.php +++ b/src/Services/V1/ProductsService.php @@ -12,6 +12,8 @@ use QbilPhpSDK\V1\Products\Product; /** + * The **Product API** provides read-only access to root data product. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class ProductsService implements ProductsContract diff --git a/src/Services/V1/PurchaseInvoicesRawService.php b/src/Services/V1/PurchaseInvoicesRawService.php index 5fcc363..874ee3f 100644 --- a/src/Services/V1/PurchaseInvoicesRawService.php +++ b/src/Services/V1/PurchaseInvoicesRawService.php @@ -15,6 +15,9 @@ use QbilPhpSDK\V1\PurchaseInvoices\PurchaseInvoiceListParams; /** + * The **Purchase Invoice API** provides read-only access to details regarding invoices related to goods or services purchased.: + * The API supports filtering by parameters like invoice date, supplier, or invoice status (e.g., paid, unpaid, overdue). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PurchaseInvoicesRawService implements PurchaseInvoicesRawContract diff --git a/src/Services/V1/PurchaseInvoicesService.php b/src/Services/V1/PurchaseInvoicesService.php index e388f6c..388e031 100644 --- a/src/Services/V1/PurchaseInvoicesService.php +++ b/src/Services/V1/PurchaseInvoicesService.php @@ -12,6 +12,9 @@ use QbilPhpSDK\V1\PurchaseInvoices\PurchaseInvoice; /** + * The **Purchase Invoice API** provides read-only access to details regarding invoices related to goods or services purchased.: + * The API supports filtering by parameters like invoice date, supplier, or invoice status (e.g., paid, unpaid, overdue). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class PurchaseInvoicesService implements PurchaseInvoicesContract diff --git a/src/Services/V1/Relations/ContactsRawService.php b/src/Services/V1/Relations/ContactsRawService.php index 2b01389..5351880 100644 --- a/src/Services/V1/Relations/ContactsRawService.php +++ b/src/Services/V1/Relations/ContactsRawService.php @@ -15,6 +15,8 @@ use QbilPhpSDK\V1\Relations\Contacts\ContactRetrieveParams; /** + * The **Relation API** provides read-only access to root data relations (suppliers, customers, transporters, etc). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class ContactsRawService implements ContactsRawContract diff --git a/src/Services/V1/Relations/ContactsService.php b/src/Services/V1/Relations/ContactsService.php index f0478cf..efb86eb 100644 --- a/src/Services/V1/Relations/ContactsService.php +++ b/src/Services/V1/Relations/ContactsService.php @@ -12,6 +12,8 @@ use QbilPhpSDK\V1\Relations\Contacts\Contact; /** + * The **Relation API** provides read-only access to root data relations (suppliers, customers, transporters, etc). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class ContactsService implements ContactsContract diff --git a/src/Services/V1/SalesInvoicesRawService.php b/src/Services/V1/SalesInvoicesRawService.php index d86b303..b3b999f 100644 --- a/src/Services/V1/SalesInvoicesRawService.php +++ b/src/Services/V1/SalesInvoicesRawService.php @@ -15,6 +15,9 @@ use QbilPhpSDK\V1\SalesInvoices\SalesInvoiceListParams; /** + * The **Sales invoice API** provides read-only access to details regarding invoices related to goods or services sold. + * The API supports filtering by parameters like invoice date, or invoice type (e.g., misc, proforma, sales). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class SalesInvoicesRawService implements SalesInvoicesRawContract @@ -70,7 +73,7 @@ public function retrieve( * lastUpdatedAtStrictlyAfter?: string, * lastUpdatedAtStrictlyBefore?: string, * page?: int, - * type?: list, + * type?: string, * }|SalesInvoiceListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/V1/SalesInvoicesService.php b/src/Services/V1/SalesInvoicesService.php index a5c2394..02f4909 100644 --- a/src/Services/V1/SalesInvoicesService.php +++ b/src/Services/V1/SalesInvoicesService.php @@ -12,6 +12,9 @@ use QbilPhpSDK\V1\SalesInvoices\SalesInvoice; /** + * The **Sales invoice API** provides read-only access to details regarding invoices related to goods or services sold. + * The API supports filtering by parameters like invoice date, or invoice type (e.g., misc, proforma, sales). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class SalesInvoicesService implements SalesInvoicesContract @@ -56,7 +59,6 @@ public function retrieve( * * @param int $itemsPerPage The number of items per page * @param int $page The collection page number - * @param list $type * @param RequestOpts|null $requestOptions * * @return list @@ -78,7 +80,7 @@ public function list( ?string $lastUpdatedAtStrictlyAfter = null, ?string $lastUpdatedAtStrictlyBefore = null, int $page = 1, - ?array $type = null, + ?string $type = null, RequestOptions|array|null $requestOptions = null, ): array { $params = Util::removeNulls( diff --git a/src/Services/V1/SilosRawService.php b/src/Services/V1/SilosRawService.php index 2d5d487..9b87cd7 100644 --- a/src/Services/V1/SilosRawService.php +++ b/src/Services/V1/SilosRawService.php @@ -14,6 +14,8 @@ use QbilPhpSDK\V1\Silos\SiloListParams; /** + * The **Silo API** provides read-only access to root data silos. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class SilosRawService implements SilosRawContract diff --git a/src/Services/V1/SilosService.php b/src/Services/V1/SilosService.php index de76110..bb56574 100644 --- a/src/Services/V1/SilosService.php +++ b/src/Services/V1/SilosService.php @@ -12,6 +12,8 @@ use QbilPhpSDK\V1\Silos\Silo; /** + * The **Silo API** provides read-only access to root data silos. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class SilosService implements SilosContract diff --git a/src/Services/V1/StocksRawService.php b/src/Services/V1/StocksRawService.php index 60757c7..e262472 100644 --- a/src/Services/V1/StocksRawService.php +++ b/src/Services/V1/StocksRawService.php @@ -15,6 +15,8 @@ use QbilPhpSDK\V1\Stocks\StockListParams; /** + * The **Stock API** provides read-only access to stock lots. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class StocksRawService implements StocksRawContract @@ -57,9 +59,9 @@ public function retrieve( * * @param array{ * itemsPerPage?: int, - * ourReference?: list, + * ourReference?: string, * page?: int, - * remainingQuantity?: list, + * remainingQuantity?: float, * remainingQuantityBetween?: string, * remainingQuantityGt?: string, * remainingQuantityGte?: string, diff --git a/src/Services/V1/StocksService.php b/src/Services/V1/StocksService.php index 59b1b9b..1b41b41 100644 --- a/src/Services/V1/StocksService.php +++ b/src/Services/V1/StocksService.php @@ -12,6 +12,8 @@ use QbilPhpSDK\V1\Stocks\Stock; /** + * The **Stock API** provides read-only access to stock lots. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class StocksService implements StocksContract @@ -55,9 +57,7 @@ public function retrieve( * Retrieves the collection of Stock resources. * * @param int $itemsPerPage The number of items per page - * @param list $ourReference * @param int $page The collection page number - * @param list $remainingQuantity * @param RequestOpts|null $requestOptions * * @return list @@ -66,9 +66,9 @@ public function retrieve( */ public function list( int $itemsPerPage = 40, - ?array $ourReference = null, + ?string $ourReference = null, int $page = 1, - ?array $remainingQuantity = null, + ?float $remainingQuantity = null, ?string $remainingQuantityBetween = null, ?string $remainingQuantityGt = null, ?string $remainingQuantityGte = null, diff --git a/src/Services/V1/SubsidiariesRawService.php b/src/Services/V1/SubsidiariesRawService.php index 3165914..17bcf95 100644 --- a/src/Services/V1/SubsidiariesRawService.php +++ b/src/Services/V1/SubsidiariesRawService.php @@ -14,6 +14,8 @@ use QbilPhpSDK\V1\Subsidiaries\SubsidiaryListParams; /** + * The **Subsidiary API** provides read-only access to subsidiaries of the company (current customer). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class SubsidiariesRawService implements SubsidiariesRawContract diff --git a/src/Services/V1/SubsidiariesService.php b/src/Services/V1/SubsidiariesService.php index 33e01b3..08f6744 100644 --- a/src/Services/V1/SubsidiariesService.php +++ b/src/Services/V1/SubsidiariesService.php @@ -12,6 +12,8 @@ use QbilPhpSDK\V1\Subsidiaries\Subsidiary; /** + * The **Subsidiary API** provides read-only access to subsidiaries of the company (current customer). + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class SubsidiariesService implements SubsidiariesContract diff --git a/src/Services/V1/TradeConditionsRawService.php b/src/Services/V1/TradeConditionsRawService.php index bc3b3db..38f77ef 100644 --- a/src/Services/V1/TradeConditionsRawService.php +++ b/src/Services/V1/TradeConditionsRawService.php @@ -14,6 +14,8 @@ use QbilPhpSDK\V1\TradeConditions\TradeConditionListParams; /** + * The **Trade Condition API** provides secure access to the terms and conditions associated with trade agreements. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class TradeConditionsRawService implements TradeConditionsRawContract @@ -55,7 +57,7 @@ public function retrieve( * Retrieves the collection of TradeCondition resources. * * @param array{ - * id?: list, itemsPerPage?: int, page?: int + * id?: string, itemsPerPage?: int, page?: int * }|TradeConditionListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/V1/TradeConditionsService.php b/src/Services/V1/TradeConditionsService.php index 31f0a00..b826771 100644 --- a/src/Services/V1/TradeConditionsService.php +++ b/src/Services/V1/TradeConditionsService.php @@ -12,6 +12,8 @@ use QbilPhpSDK\V1\TradeConditions\TradeCondition; /** + * The **Trade Condition API** provides secure access to the terms and conditions associated with trade agreements. + * * @phpstan-import-type RequestOpts from \QbilPhpSDK\RequestOptions */ final class TradeConditionsService implements TradeConditionsContract @@ -54,7 +56,6 @@ public function retrieve( * * Retrieves the collection of TradeCondition resources. * - * @param list $id * @param int $itemsPerPage The number of items per page * @param int $page The collection page number * @param RequestOpts|null $requestOptions @@ -64,7 +65,7 @@ public function retrieve( * @throws APIException */ public function list( - ?array $id = null, + ?string $id = null, int $itemsPerPage = 40, int $page = 1, RequestOptions|array|null $requestOptions = null, diff --git a/src/Services/V1RawService.php b/src/Services/V1RawService.php index 09d798d..855edf7 100644 --- a/src/Services/V1RawService.php +++ b/src/Services/V1RawService.php @@ -31,10 +31,7 @@ public function __construct(private Client $client) {} * Discover available custom fields and their keys. Use the `name` property as the key when setting custom field values in write APIs (e.g., PATCH /container-orders). Filter by `location` to find fields applicable to specific modules (e.g., order, contract, product). * * @param array{ - * itemsPerPage?: int, - * location?: value-of, - * name?: list, - * page?: int, + * itemsPerPage?: int, location?: value-of, name?: string, page?: int * }|V1ListCustomFieldsParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/V1Service.php b/src/Services/V1Service.php index d59c919..42f1123 100644 --- a/src/Services/V1Service.php +++ b/src/Services/V1Service.php @@ -163,7 +163,6 @@ public function __construct(private Client $client) * * @param int $itemsPerPage The number of items per page * @param Location|value-of $location Filter by location(e.g. `custom-fields?location=contract` will return all custom fields placed in contract and contract-lines) - * @param list $name * @param int $page The collection page number * @param RequestOpts|null $requestOptions * @@ -174,7 +173,7 @@ public function __construct(private Client $client) public function listCustomFields( int $itemsPerPage = 40, Location|string|null $location = null, - ?array $name = null, + ?string $name = null, int $page = 1, RequestOptions|array|null $requestOptions = null, ): array { diff --git a/src/V1/Contracts/ContractListParams/Subsidiary.php b/src/V1/Contracts/ContractListParams/Subsidiary.php index d1d9d1e..c5511de 100644 --- a/src/V1/Contracts/ContractListParams/Subsidiary.php +++ b/src/V1/Contracts/ContractListParams/Subsidiary.php @@ -9,16 +9,15 @@ use QbilPhpSDK\Core\Contracts\BaseModel; /** - * @phpstan-type SubsidiaryShape = array{id?: list|null} + * @phpstan-type SubsidiaryShape = array{id?: string|null} */ final class Subsidiary implements BaseModel { /** @use SdkModel */ use SdkModel; - /** @var list|null $id */ - #[Optional(list: 'string')] - public ?array $id; + #[Optional] + public ?string $id; public function __construct() { @@ -29,10 +28,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 list|null $id */ - public static function with(?array $id = null): self + public static function with(?string $id = null): self { $self = new self; @@ -41,10 +38,7 @@ public static function with(?array $id = null): self return $self; } - /** - * @param list $id - */ - public function withID(array $id): self + public function withID(string $id): self { $self = clone $this; $self['id'] = $id; diff --git a/src/V1/Orders/OrderListParams.php b/src/V1/Orders/OrderListParams.php index e70e39d..4bccd27 100644 --- a/src/V1/Orders/OrderListParams.php +++ b/src/V1/Orders/OrderListParams.php @@ -19,7 +19,7 @@ * createdAtBefore?: string|null, * createdAtStrictlyAfter?: string|null, * createdAtStrictlyBefore?: string|null, - * displayNumber?: list|null, + * displayNumber?: string|null, * itemsPerPage?: int|null, * lastUpdatedAtAfter?: string|null, * lastUpdatedAtBefore?: string|null, @@ -30,7 +30,7 @@ * orderDateStrictlyAfter?: string|null, * orderDateStrictlyBefore?: string|null, * page?: int|null, - * subsidiary?: list|null, + * subsidiary?: string|null, * } */ final class OrderListParams implements BaseModel @@ -51,9 +51,8 @@ final class OrderListParams implements BaseModel #[Optional] public ?string $createdAtStrictlyBefore; - /** @var list|null $displayNumber */ - #[Optional(list: 'string')] - public ?array $displayNumber; + #[Optional] + public ?string $displayNumber; /** * The number of items per page. @@ -91,9 +90,8 @@ final class OrderListParams implements BaseModel #[Optional] public ?int $page; - /** @var list|null $subsidiary */ - #[Optional(list: 'string')] - public ?array $subsidiary; + #[Optional] + public ?string $subsidiary; public function __construct() { @@ -104,16 +102,13 @@ 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 $displayNumber - * @param list|null $subsidiary */ public static function with( ?string $createdAtAfter = null, ?string $createdAtBefore = null, ?string $createdAtStrictlyAfter = null, ?string $createdAtStrictlyBefore = null, - ?array $displayNumber = null, + ?string $displayNumber = null, ?int $itemsPerPage = null, ?string $lastUpdatedAtAfter = null, ?string $lastUpdatedAtBefore = null, @@ -124,7 +119,7 @@ public static function with( ?string $orderDateStrictlyAfter = null, ?string $orderDateStrictlyBefore = null, ?int $page = null, - ?array $subsidiary = null, + ?string $subsidiary = null, ): self { $self = new self; @@ -182,10 +177,7 @@ public function withCreatedAtStrictlyBefore( return $self; } - /** - * @param list $displayNumber - */ - public function withDisplayNumber(array $displayNumber): self + public function withDisplayNumber(string $displayNumber): self { $self = clone $this; $self['displayNumber'] = $displayNumber; @@ -283,10 +275,7 @@ public function withPage(int $page): self return $self; } - /** - * @param list $subsidiary - */ - public function withSubsidiary(array $subsidiary): self + public function withSubsidiary(string $subsidiary): self { $self = clone $this; $self['subsidiary'] = $subsidiary; diff --git a/src/V1/Packaging/PackagingListParams.php b/src/V1/Packaging/PackagingListParams.php index 4ddf55d..5014dfd 100644 --- a/src/V1/Packaging/PackagingListParams.php +++ b/src/V1/Packaging/PackagingListParams.php @@ -15,7 +15,7 @@ * @see QbilPhpSDK\Services\V1\PackagingService::list() * * @phpstan-type PackagingListParamsShape = array{ - * code?: list|null, itemsPerPage?: int|null, page?: int|null + * code?: string|null, itemsPerPage?: int|null, page?: int|null * } */ final class PackagingListParams implements BaseModel @@ -24,9 +24,8 @@ final class PackagingListParams implements BaseModel use SdkModel; use SdkParams; - /** @var list|null $code */ - #[Optional(list: 'string')] - public ?array $code; + #[Optional] + public ?string $code; /** * The number of items per page. @@ -49,11 +48,9 @@ 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 $code */ public static function with( - ?array $code = null, + ?string $code = null, ?int $itemsPerPage = null, ?int $page = null ): self { @@ -66,10 +63,7 @@ public static function with( return $self; } - /** - * @param list $code - */ - public function withCode(array $code): self + public function withCode(string $code): self { $self = clone $this; $self['code'] = $code; diff --git a/src/V1/Pallets/PalletListParams.php b/src/V1/Pallets/PalletListParams.php index 135d132..1a96bb2 100644 --- a/src/V1/Pallets/PalletListParams.php +++ b/src/V1/Pallets/PalletListParams.php @@ -15,7 +15,7 @@ * @see QbilPhpSDK\Services\V1\PalletsService::list() * * @phpstan-type PalletListParamsShape = array{ - * code?: list|null, itemsPerPage?: int|null, page?: int|null + * code?: string|null, itemsPerPage?: int|null, page?: int|null * } */ final class PalletListParams implements BaseModel @@ -24,9 +24,8 @@ final class PalletListParams implements BaseModel use SdkModel; use SdkParams; - /** @var list|null $code */ - #[Optional(list: 'string')] - public ?array $code; + #[Optional] + public ?string $code; /** * The number of items per page. @@ -49,11 +48,9 @@ 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 $code */ public static function with( - ?array $code = null, + ?string $code = null, ?int $itemsPerPage = null, ?int $page = null ): self { @@ -66,10 +63,7 @@ public static function with( return $self; } - /** - * @param list $code - */ - public function withCode(array $code): self + public function withCode(string $code): self { $self = clone $this; $self['code'] = $code; diff --git a/src/V1/PaymentConditions/PaymentConditionListParams.php b/src/V1/PaymentConditions/PaymentConditionListParams.php index b4a402f..d70e3fc 100644 --- a/src/V1/PaymentConditions/PaymentConditionListParams.php +++ b/src/V1/PaymentConditions/PaymentConditionListParams.php @@ -15,7 +15,7 @@ * @see QbilPhpSDK\Services\V1\PaymentConditionsService::list() * * @phpstan-type PaymentConditionListParamsShape = array{ - * id?: list|null, itemsPerPage?: int|null, page?: int|null + * id?: string|null, itemsPerPage?: int|null, page?: int|null * } */ final class PaymentConditionListParams implements BaseModel @@ -24,9 +24,8 @@ final class PaymentConditionListParams implements BaseModel use SdkModel; use SdkParams; - /** @var list|null $id */ - #[Optional(list: 'string')] - public ?array $id; + #[Optional] + public ?string $id; /** * The number of items per page. @@ -49,11 +48,9 @@ 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 $id */ public static function with( - ?array $id = null, + ?string $id = null, ?int $itemsPerPage = null, ?int $page = null ): self { @@ -66,10 +63,7 @@ public static function with( return $self; } - /** - * @param list $id - */ - public function withID(array $id): self + public function withID(string $id): self { $self = clone $this; $self['id'] = $id; diff --git a/src/V1/SalesInvoices/SalesInvoiceListParams.php b/src/V1/SalesInvoices/SalesInvoiceListParams.php index 0007a70..044e92c 100644 --- a/src/V1/SalesInvoices/SalesInvoiceListParams.php +++ b/src/V1/SalesInvoices/SalesInvoiceListParams.php @@ -29,7 +29,7 @@ * lastUpdatedAtStrictlyAfter?: string|null, * lastUpdatedAtStrictlyBefore?: string|null, * page?: int|null, - * type?: list|null, + * type?: string|null, * } */ final class SalesInvoiceListParams implements BaseModel @@ -86,9 +86,8 @@ final class SalesInvoiceListParams implements BaseModel #[Optional] public ?int $page; - /** @var list|null $type */ - #[Optional(list: 'string')] - public ?array $type; + #[Optional] + public ?string $type; public function __construct() { @@ -99,8 +98,6 @@ 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( ?string $createdAtAfter = null, @@ -117,7 +114,7 @@ public static function with( ?string $lastUpdatedAtStrictlyAfter = null, ?string $lastUpdatedAtStrictlyBefore = null, ?int $page = null, - ?array $type = null, + ?string $type = null, ): self { $self = new self; @@ -264,10 +261,7 @@ public function withPage(int $page): self return $self; } - /** - * @param list $type - */ - public function withType(array $type): self + public function withType(string $type): self { $self = clone $this; $self['type'] = $type; diff --git a/src/V1/Stocks/StockListParams.php b/src/V1/Stocks/StockListParams.php index 0962d16..e1afaf8 100644 --- a/src/V1/Stocks/StockListParams.php +++ b/src/V1/Stocks/StockListParams.php @@ -16,9 +16,9 @@ * * @phpstan-type StockListParamsShape = array{ * itemsPerPage?: int|null, - * ourReference?: list|null, + * ourReference?: string|null, * page?: int|null, - * remainingQuantity?: list|null, + * remainingQuantity?: float|null, * remainingQuantityBetween?: string|null, * remainingQuantityGt?: string|null, * remainingQuantityGte?: string|null, @@ -38,9 +38,8 @@ final class StockListParams implements BaseModel #[Optional] public ?int $itemsPerPage; - /** @var list|null $ourReference */ - #[Optional(list: 'string')] - public ?array $ourReference; + #[Optional] + public ?string $ourReference; /** * The collection page number. @@ -48,9 +47,8 @@ final class StockListParams implements BaseModel #[Optional] public ?int $page; - /** @var list|null $remainingQuantity */ - #[Optional(list: 'float')] - public ?array $remainingQuantity; + #[Optional] + public ?float $remainingQuantity; #[Optional] public ?string $remainingQuantityBetween; @@ -76,15 +74,12 @@ 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 $ourReference - * @param list|null $remainingQuantity */ public static function with( ?int $itemsPerPage = null, - ?array $ourReference = null, + ?string $ourReference = null, ?int $page = null, - ?array $remainingQuantity = null, + ?float $remainingQuantity = null, ?string $remainingQuantityBetween = null, ?string $remainingQuantityGt = null, ?string $remainingQuantityGte = null, @@ -117,10 +112,7 @@ public function withItemsPerPage(int $itemsPerPage): self return $self; } - /** - * @param list $ourReference - */ - public function withOurReference(array $ourReference): self + public function withOurReference(string $ourReference): self { $self = clone $this; $self['ourReference'] = $ourReference; @@ -139,10 +131,7 @@ public function withPage(int $page): self return $self; } - /** - * @param list $remainingQuantity - */ - public function withRemainingQuantity(array $remainingQuantity): self + public function withRemainingQuantity(float $remainingQuantity): self { $self = clone $this; $self['remainingQuantity'] = $remainingQuantity; diff --git a/src/V1/TradeConditions/TradeConditionListParams.php b/src/V1/TradeConditions/TradeConditionListParams.php index d956045..184a54b 100644 --- a/src/V1/TradeConditions/TradeConditionListParams.php +++ b/src/V1/TradeConditions/TradeConditionListParams.php @@ -15,7 +15,7 @@ * @see QbilPhpSDK\Services\V1\TradeConditionsService::list() * * @phpstan-type TradeConditionListParamsShape = array{ - * id?: list|null, itemsPerPage?: int|null, page?: int|null + * id?: string|null, itemsPerPage?: int|null, page?: int|null * } */ final class TradeConditionListParams implements BaseModel @@ -24,9 +24,8 @@ final class TradeConditionListParams implements BaseModel use SdkModel; use SdkParams; - /** @var list|null $id */ - #[Optional(list: 'string')] - public ?array $id; + #[Optional] + public ?string $id; /** * The number of items per page. @@ -49,11 +48,9 @@ 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 $id */ public static function with( - ?array $id = null, + ?string $id = null, ?int $itemsPerPage = null, ?int $page = null ): self { @@ -66,10 +63,7 @@ public static function with( return $self; } - /** - * @param list $id - */ - public function withID(array $id): self + public function withID(string $id): self { $self = clone $this; $self['id'] = $id; diff --git a/src/V1/V1ListCustomFieldsParams.php b/src/V1/V1ListCustomFieldsParams.php index 82fab83..80b3525 100644 --- a/src/V1/V1ListCustomFieldsParams.php +++ b/src/V1/V1ListCustomFieldsParams.php @@ -18,7 +18,7 @@ * @phpstan-type V1ListCustomFieldsParamsShape = array{ * itemsPerPage?: int|null, * location?: null|Location|value-of, - * name?: list|null, + * name?: string|null, * page?: int|null, * } */ @@ -42,9 +42,8 @@ final class V1ListCustomFieldsParams implements BaseModel #[Optional(enum: Location::class)] public ?string $location; - /** @var list|null $name */ - #[Optional(list: 'string')] - public ?array $name; + #[Optional] + public ?string $name; /** * The collection page number. @@ -63,12 +62,11 @@ public function __construct() * You must use named parameters to construct any parameters with a default value. * * @param Location|value-of|null $location - * @param list|null $name */ public static function with( ?int $itemsPerPage = null, Location|string|null $location = null, - ?array $name = null, + ?string $name = null, ?int $page = null, ): self { $self = new self; @@ -105,10 +103,7 @@ public function withLocation(Location|string $location): self return $self; } - /** - * @param list $name - */ - public function withName(array $name): self + public function withName(string $name): self { $self = clone $this; $self['name'] = $name; diff --git a/src/Version.php b/src/Version.php index 262d7df..dc2187f 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace QbilPhpSDK; // x-release-please-start-version -const VERSION = '0.0.1'; +const VERSION = '0.0.2'; // x-release-please-end diff --git a/tests/Services/V1/AddressesTest.php b/tests/Services/V1/AddressesTest.php index e7bf39c..d304cc0 100644 --- a/tests/Services/V1/AddressesTest.php +++ b/tests/Services/V1/AddressesTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->addresses->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->addresses->list(); diff --git a/tests/Services/V1/ContainerOrdersTest.php b/tests/Services/V1/ContainerOrdersTest.php index c6d161c..3fa2429 100644 --- a/tests/Services/V1/ContainerOrdersTest.php +++ b/tests/Services/V1/ContainerOrdersTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->containerOrders->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testUpdate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->containerOrders->update('id'); diff --git a/tests/Services/V1/ContractsTest.php b/tests/Services/V1/ContractsTest.php index d5fba36..8511422 100644 --- a/tests/Services/V1/ContractsTest.php +++ b/tests/Services/V1/ContractsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->contracts->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->contracts->list(); diff --git a/tests/Services/V1/DeliveryConditionsTest.php b/tests/Services/V1/DeliveryConditionsTest.php index 7ce30e3..1006655 100644 --- a/tests/Services/V1/DeliveryConditionsTest.php +++ b/tests/Services/V1/DeliveryConditionsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->deliveryConditions->retrieve('code'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->deliveryConditions->list(); diff --git a/tests/Services/V1/MeTest.php b/tests/Services/V1/MeTest.php index 8556091..d531044 100644 --- a/tests/Services/V1/MeTest.php +++ b/tests/Services/V1/MeTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->me->retrieve(); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testUpdate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->me->update(); diff --git a/tests/Services/V1/Orders/ChangeRequestsTest.php b/tests/Services/V1/Orders/ChangeRequestsTest.php index 0c4f7c9..fb34fe2 100644 --- a/tests/Services/V1/Orders/ChangeRequestsTest.php +++ b/tests/Services/V1/Orders/ChangeRequestsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testCreate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->changeRequests->create( @@ -48,7 +48,7 @@ public function testCreate(): void public function testCreateWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->changeRequests->create( @@ -178,7 +178,7 @@ public function testCreateWithOptionalParams(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->changeRequests->list('orderId'); diff --git a/tests/Services/V1/OrdersTest.php b/tests/Services/V1/OrdersTest.php index 0098f93..20f4282 100644 --- a/tests/Services/V1/OrdersTest.php +++ b/tests/Services/V1/OrdersTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->retrieve('id'); @@ -46,7 +46,7 @@ public function testRetrieve(): void public function testUpdate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->update('id'); @@ -59,7 +59,7 @@ public function testUpdate(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->list(); @@ -72,7 +72,7 @@ public function testList(): void public function testCreateAttachment(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->createAttachment('id'); @@ -85,7 +85,7 @@ public function testCreateAttachment(): void public function testDownloadDocument(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism doesn\'t support application/octet-stream responses'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->downloadDocument( @@ -102,7 +102,7 @@ public function testDownloadDocument(): void public function testDownloadDocumentWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism doesn\'t support application/octet-stream responses'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->downloadDocument( @@ -119,7 +119,7 @@ public function testDownloadDocumentWithOptionalParams(): void public function testListBackToBack(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->listBackToBack('id'); @@ -132,7 +132,7 @@ public function testListBackToBack(): void public function testListPurchase(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->listPurchase('id'); @@ -145,7 +145,7 @@ public function testListPurchase(): void public function testListSales(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->listSales('id'); @@ -158,7 +158,7 @@ public function testListSales(): void public function testListTransferOrders(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->orders->listTransferOrders('id'); diff --git a/tests/Services/V1/PackagingTest.php b/tests/Services/V1/PackagingTest.php index 492c1d4..cf53dca 100644 --- a/tests/Services/V1/PackagingTest.php +++ b/tests/Services/V1/PackagingTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->packaging->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->packaging->list(); diff --git a/tests/Services/V1/PalletsTest.php b/tests/Services/V1/PalletsTest.php index fe12bcf..da664d6 100644 --- a/tests/Services/V1/PalletsTest.php +++ b/tests/Services/V1/PalletsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->pallets->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->pallets->list(); diff --git a/tests/Services/V1/PaymentConditionsTest.php b/tests/Services/V1/PaymentConditionsTest.php index c4a44ed..8a481a0 100644 --- a/tests/Services/V1/PaymentConditionsTest.php +++ b/tests/Services/V1/PaymentConditionsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->paymentConditions->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->paymentConditions->list(); diff --git a/tests/Services/V1/ProductionOrdersTest.php b/tests/Services/V1/ProductionOrdersTest.php index f18a764..cc1b63d 100644 --- a/tests/Services/V1/ProductionOrdersTest.php +++ b/tests/Services/V1/ProductionOrdersTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testCreate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->productionOrders->create(); @@ -45,7 +45,7 @@ public function testCreate(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->productionOrders->retrieve('id'); @@ -58,7 +58,7 @@ public function testRetrieve(): void public function testUpdate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->productionOrders->update('id'); @@ -71,7 +71,7 @@ public function testUpdate(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->productionOrders->list(); diff --git a/tests/Services/V1/ProductsTest.php b/tests/Services/V1/ProductsTest.php index 086baee..df63f46 100644 --- a/tests/Services/V1/ProductsTest.php +++ b/tests/Services/V1/ProductsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->products->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->products->list(); diff --git a/tests/Services/V1/PurchaseInvoicesTest.php b/tests/Services/V1/PurchaseInvoicesTest.php index eb37c56..3e7f9a1 100644 --- a/tests/Services/V1/PurchaseInvoicesTest.php +++ b/tests/Services/V1/PurchaseInvoicesTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->purchaseInvoices->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->purchaseInvoices->list(); diff --git a/tests/Services/V1/Relations/ContactsTest.php b/tests/Services/V1/Relations/ContactsTest.php index 9f3a210..a03f3cb 100644 --- a/tests/Services/V1/Relations/ContactsTest.php +++ b/tests/Services/V1/Relations/ContactsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->relations->contacts->retrieve( @@ -48,7 +48,7 @@ public function testRetrieve(): void public function testRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->relations->contacts->retrieve( @@ -64,7 +64,7 @@ public function testRetrieveWithOptionalParams(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->relations->contacts->list('id'); diff --git a/tests/Services/V1/RelationsTest.php b/tests/Services/V1/RelationsTest.php index 726854d..1b09421 100644 --- a/tests/Services/V1/RelationsTest.php +++ b/tests/Services/V1/RelationsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->relations->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->relations->list(); @@ -58,7 +58,7 @@ public function testList(): void public function testListAddresses(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->relations->listAddresses('id'); @@ -71,7 +71,7 @@ public function testListAddresses(): void public function testListSilos(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->relations->listSilos('id'); diff --git a/tests/Services/V1/SalesInvoicesTest.php b/tests/Services/V1/SalesInvoicesTest.php index 7f92187..04cb544 100644 --- a/tests/Services/V1/SalesInvoicesTest.php +++ b/tests/Services/V1/SalesInvoicesTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->salesInvoices->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->salesInvoices->list(); diff --git a/tests/Services/V1/SilosTest.php b/tests/Services/V1/SilosTest.php index 9bad622..db0a747 100644 --- a/tests/Services/V1/SilosTest.php +++ b/tests/Services/V1/SilosTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->silos->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->silos->list(); diff --git a/tests/Services/V1/StocksTest.php b/tests/Services/V1/StocksTest.php index 3953fb5..b8e3e45 100644 --- a/tests/Services/V1/StocksTest.php +++ b/tests/Services/V1/StocksTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->stocks->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->stocks->list(); diff --git a/tests/Services/V1/SubsidiariesTest.php b/tests/Services/V1/SubsidiariesTest.php index 635448a..0f91496 100644 --- a/tests/Services/V1/SubsidiariesTest.php +++ b/tests/Services/V1/SubsidiariesTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->subsidiaries->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->subsidiaries->list(); diff --git a/tests/Services/V1/TradeConditionsTest.php b/tests/Services/V1/TradeConditionsTest.php index 6527cdb..5113ec4 100644 --- a/tests/Services/V1/TradeConditionsTest.php +++ b/tests/Services/V1/TradeConditionsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->tradeConditions->retrieve('id'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->tradeConditions->list(); diff --git a/tests/Services/V1Test.php b/tests/Services/V1Test.php index 283883b..4cca6c8 100644 --- a/tests/Services/V1Test.php +++ b/tests/Services/V1Test.php @@ -31,7 +31,7 @@ protected function setUp(): void public function testListCustomFields(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->v1->listCustomFields();