diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..7a460ac --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/alpine +{ + "name": "Checlbox", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/php" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "uname -a", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ade35a..05623fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,36 +1,43 @@ -name: PHP Composer +name: CI + on: - push: - branches: - - '*' pull_request: - branches: [ "main" ] + branches: [main] + workflow_call: + permissions: contents: read + jobs: test: strategy: matrix: - php: [ 8.2, 8.3] + php: [8.3, 8.4, 8.5] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - - name: Validate composer.json and composer.lock - run: composer validate --strict - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v5 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php-${{ matrix.php }} - - name: Install dependencies - run: | - composer install --prefer-dist --no-progress - - name: Run test suite - run: composer run-script test + - uses: actions/checkout@v6 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Validate composer.json and composer.lock + run: composer validate --strict + + - name: Cache Composer packages + uses: actions/cache@v5 + with: + path: vendor + key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php-${{ matrix.php }} + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run test suite + run: composer run-script test + + - name: Check code style + run: composer run-script cs-check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6aac984..d5fdc0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,47 +7,22 @@ on: permissions: contents: write + pull-requests: write jobs: test: - runs-on: ubuntu-latest - strategy: - matrix: - php: [ 8.3, 8.4] - steps: - - uses: actions/checkout@v6 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - - - name: Cache Composer packages - uses: actions/cache@v5 - with: - path: vendor - key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php-${{ matrix.php }} - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run test suite - run: composer run-script test + uses: ./.github/workflows/ci.yml - release: + release-please: needs: test runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} + tag_name: ${{ steps.release.outputs.tag_name }} steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - uses: go-semantic-release/action@v1 + - uses: googleapis/release-please-action@v4 + id: release with: - github-token: ${{ secrets.GITHUB_TOKEN }} - changelog-file: CHANGELOG.md - changelog-generator-opt: "emojis=true" - allow-initial-development-versions: true - prepend: true + release-type: simple + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} diff --git a/README.md b/README.md index ad5fdde..c344a4d 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,37 @@ - # About -Checkbox.ua have OpenAPI specification (https://api.checkbox.in.ua/api/openapi.json) -that is incorrectly described in many places. -For example, lack of nullable union types and different datetime format for the semantically same type of field. -That causes generated client libraries to throw unexpected error. -Initial library code was generated by [JanePHP](https://github.com/janephp/janephp) (Thanks, for a great project!) +Checkbox.ua has an OpenAPI specification (https://api.checkbox.in.ua/api/openapi.json) that is incorrectly described in many places. For example, lack of nullable union types and different datetime formats for semantically same fields. This causes generated client libraries to throw unexpected errors. -That code was modified manually, nullables was added and a specific date format used for different fields. +Initial library code was generated by [JanePHP](https://github.com/janephp/janephp). That code was modified manually to add nullables and handle specific date formats for different fields. -General logic is still handled by [JanePHP runtime](https://github.com/janephp/janephp) +General logic is still handled by [JanePHP runtime](https://github.com/janephp/janephp). ## Installation + ```bash -composer install revotale/checkbox-ua +composer require revotale/checkbox-ua ``` ## Usage -Example with [signing in cashier with pin code and licence key](https://api.checkbox.in.ua/api/docs#/Касир/sign_in_cashier_api_v1_cashier_signin_post). + +Example with [signing in cashier with pin code and licence key](https://api.checkbox.in.ua/api/docs#/Касир/sign_in_cashier_api_v1_cashier_signin_post): ```php setPinCode($pinCode); -$client->signInCashierApiV1CashierSigninPost() + +$response = $client->signInCashierApiV1CashierSigninPost($payload); ``` diff --git a/composer.json b/composer.json index 43fa6ab..879727c 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,8 @@ ], "scripts": { "test": "vendor/bin/phpstan analyse --memory-limit=1G -c phpstan.neon", - "fix": "vendor/bin/php-cs-fixer fix --allow-risky=yes" + "fix": "vendor/bin/php-cs-fixer fix --allow-risky=yes", + "cs-check": "vendor/bin/php-cs-fixer check --allow-risky=yes" }, "config": { "allow-plugins": { diff --git a/phpstan.neon b/phpstan.neon index 43ab766..6a0e4e2 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: - level: 1 + level: 0 paths: - src diff --git a/src/Client.php b/src/Client.php index 73dd2c9..2f3e39b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -4,7 +4,7 @@ namespace RevoTale\CheckboxUA; -final class Client extends \RevoTale\CheckboxUA\Runtime\Client\Client +final class Client extends Runtime\Client\Client { /** * Вхід користувача (касира) за допомогою логіна та паролю. @@ -19,15 +19,15 @@ final class Client extends \RevoTale\CheckboxUA\Runtime\Client\Client * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CashierAccessTokenResponseModel|\Psr\Http\Message\ResponseInterface + * @return Model\CashierAccessTokenResponseModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\SignInCashierApiV1CashierSigninPostForbiddenException - * @throws \RevoTale\CheckboxUA\Exception\SignInCashierApiV1CashierSigninPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SignInCashierApiV1CashierSigninPostForbiddenException + * @throws Exception\SignInCashierApiV1CashierSigninPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function signInCashierApiV1CashierSigninPost(Model\CashierSignIn $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SignInCashierApiV1CashierSigninPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SignInCashierApiV1CashierSigninPost($requestBody, $headerParameters), $fetch); } /** @@ -44,15 +44,15 @@ public function signInCashierApiV1CashierSigninPost(Model\CashierSignIn $request * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CashierAccessTokenResponseModel|\Psr\Http\Message\ResponseInterface + * @return Model\CashierAccessTokenResponseModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\SignInCashierViaPinCodeApiV1CashierSigninPinCodePostForbiddenException - * @throws \RevoTale\CheckboxUA\Exception\SignInCashierViaPinCodeApiV1CashierSigninPinCodePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SignInCashierViaPinCodeApiV1CashierSigninPinCodePostForbiddenException + * @throws Exception\SignInCashierViaPinCodeApiV1CashierSigninPinCodePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function signInCashierViaPinCodeApiV1CashierSigninPinCodePost(Model\CashierSignInPinCode $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SignInCashierViaPinCodeApiV1CashierSigninPinCodePost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SignInCashierViaPinCodeApiV1CashierSigninPinCodePost($requestBody, $headerParameters), $fetch); } /** @@ -70,12 +70,12 @@ public function signInCashierViaPinCodeApiV1CashierSigninPinCodePost(Model\Cashi * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\SignOutCashierApiV1CashierSignoutPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SignOutCashierApiV1CashierSignoutPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function signOutCashierApiV1CashierSignoutPost(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SignOutCashierApiV1CashierSignoutPost($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SignOutCashierApiV1CashierSignoutPost($headerParameters), $fetch); } /** @@ -91,14 +91,14 @@ public function signOutCashierApiV1CashierSignoutPost(array $headerParameters = * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\DetailedCashierModel|\Psr\Http\Message\ResponseInterface + * @return Model\DetailedCashierModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCashierProfileApiV1CashierMeGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCashierProfileApiV1CashierMeGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCashierProfileApiV1CashierMeGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCashierProfileApiV1CashierMeGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCashierProfileApiV1CashierMeGet($headerParameters), $fetch); } /** @@ -114,14 +114,14 @@ public function getCashierProfileApiV1CashierMeGet(array $headerParameters = [], * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashRegisterModel|\Psr\Http\Message\ResponseInterface + * @return Model\ShiftWithCashRegisterModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCashierShiftApiV1CashierShiftGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCashierShiftApiV1CashierShiftGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCashierShiftApiV1CashierShiftGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCashierShiftApiV1CashierShiftGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCashierShiftApiV1CashierShiftGet($headerParameters), $fetch); } /** @@ -134,14 +134,14 @@ public function getCashierShiftApiV1CashierShiftGet(array $headerParameters = [] * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CashierSignatureStatus|\Psr\Http\Message\ResponseInterface + * @return Model\CashierSignatureStatus|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CheckSignatureApiV1CashierCheckSignatureGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CheckSignatureApiV1CashierCheckSignatureGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function checkSignatureApiV1CashierCheckSignatureGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CheckSignatureApiV1CashierCheckSignatureGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CheckSignatureApiV1CashierCheckSignatureGet($headerParameters), $fetch); } /** @@ -154,14 +154,14 @@ public function checkSignatureApiV1CashierCheckSignatureGet(array $headerParamet * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OrganizationReceiptConfigSchema|\Psr\Http\Message\ResponseInterface + * @return Model\OrganizationReceiptConfigSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGet($headerParameters), $fetch); } /** @@ -177,12 +177,12 @@ public function getCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptCon * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationLogoApiV1OrganizationLogoPngGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCurrentOrganizationLogoApiV1OrganizationLogoPngGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCurrentOrganizationLogoApiV1OrganizationLogoPngGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCurrentOrganizationLogoApiV1OrganizationLogoPngGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCurrentOrganizationLogoApiV1OrganizationLogoPngGet($headerParameters), $fetch); } /** @@ -198,12 +198,12 @@ public function getCurrentOrganizationLogoApiV1OrganizationLogoPngGet(array $hea * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet($headerParameters), $fetch); } /** @@ -216,14 +216,14 @@ public function getCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet(ar * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OrganizationBillingSchema|\Psr\Http\Message\ResponseInterface + * @return Model\OrganizationBillingSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGet($headerParameters), $fetch); } /** @@ -244,12 +244,12 @@ public function getCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBilli * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GoOnlineActionApiV1CashRegistersGoOnlinePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GoOnlineActionApiV1CashRegistersGoOnlinePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function goOnlineActionApiV1CashRegistersGoOnlinePost(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GoOnlineActionApiV1CashRegistersGoOnlinePost($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GoOnlineActionApiV1CashRegistersGoOnlinePost($headerParameters), $fetch); } /** @@ -270,12 +270,12 @@ public function goOnlineActionApiV1CashRegistersGoOnlinePost(array $headerParame * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GoOfflineActionApiV1CashRegistersGoOfflinePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GoOfflineActionApiV1CashRegistersGoOfflinePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ - public function goOfflineActionApiV1CashRegistersGoOfflinePost(Model\GoOfflinePayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function goOfflineActionApiV1CashRegistersGoOfflinePost(?Model\GoOfflinePayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GoOfflineActionApiV1CashRegistersGoOfflinePost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GoOfflineActionApiV1CashRegistersGoOfflinePost($requestBody, $headerParameters), $fetch); } /** @@ -293,12 +293,12 @@ public function goOfflineActionApiV1CashRegistersGoOfflinePost(Model\GoOfflinePa * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\PingTaxServiceActionApiV1CashRegistersPingTaxServicePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\PingTaxServiceActionApiV1CashRegistersPingTaxServicePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function pingTaxServiceActionApiV1CashRegistersPingTaxServicePost(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\PingTaxServiceActionApiV1CashRegistersPingTaxServicePost($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\PingTaxServiceActionApiV1CashRegistersPingTaxServicePost($headerParameters), $fetch); } /** @@ -333,12 +333,12 @@ public function pingTaxServiceActionApiV1CashRegistersPingTaxServicePost(array $ * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\AskOfflineCodesApiV1CashRegistersAskOfflineCodesGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\AskOfflineCodesApiV1CashRegistersAskOfflineCodesGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function askOfflineCodesApiV1CashRegistersAskOfflineCodesGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\AskOfflineCodesApiV1CashRegistersAskOfflineCodesGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\AskOfflineCodesApiV1CashRegistersAskOfflineCodesGet($queryParameters, $headerParameters), $fetch); } /** @@ -363,14 +363,14 @@ public function askOfflineCodesApiV1CashRegistersAskOfflineCodesGet(array $query * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\DetailedOfflineFiscalCodeModel[]|\Psr\Http\Message\ResponseInterface + * @return Model\DetailedOfflineFiscalCodeModel[]|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetOfflineCodesApiV1CashRegistersGetOfflineCodesGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetOfflineCodesApiV1CashRegistersGetOfflineCodesGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getOfflineCodesApiV1CashRegistersGetOfflineCodesGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetOfflineCodesApiV1CashRegistersGetOfflineCodesGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetOfflineCodesApiV1CashRegistersGetOfflineCodesGet($queryParameters, $headerParameters), $fetch); } /** @@ -386,14 +386,14 @@ public function getOfflineCodesApiV1CashRegistersGetOfflineCodesGet(array $query * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OfflineCodesCountSchema|\Psr\Http\Message\ResponseInterface + * @return Model\OfflineCodesCountSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet($headerParameters), $fetch); } /** @@ -413,14 +413,14 @@ public function getOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet(ar * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CashRegisterOfflineTime|\Psr\Http\Message\ResponseInterface + * @return Model\CashRegisterOfflineTime|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetOfflineTimeApiV1CashRegistersGetOfflineTimeGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetOfflineTimeApiV1CashRegistersGetOfflineTimeGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getOfflineTimeApiV1CashRegistersGetOfflineTimeGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetOfflineTimeApiV1CashRegistersGetOfflineTimeGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetOfflineTimeApiV1CashRegistersGetOfflineTimeGet($queryParameters, $headerParameters), $fetch); } /** @@ -443,14 +443,14 @@ public function getOfflineTimeApiV1CashRegistersGetOfflineTimeGet(array $queryPa * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultDetailedCashRegisterModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCashRegistersApiV1CashRegistersGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCashRegistersApiV1CashRegistersGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCashRegistersApiV1CashRegistersGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCashRegistersApiV1CashRegistersGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCashRegistersApiV1CashRegistersGet($queryParameters, $headerParameters), $fetch); } /** @@ -466,14 +466,14 @@ public function getCashRegistersApiV1CashRegistersGet(array $queryParameters = [ * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CashRegisterDeviceModel|\Psr\Http\Message\ResponseInterface + * @return Model\CashRegisterDeviceModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCashRegisterInfoApiV1CashRegistersInfoGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCashRegisterInfoApiV1CashRegistersInfoGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCashRegisterInfoApiV1CashRegistersInfoGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCashRegisterInfoApiV1CashRegistersInfoGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCashRegisterInfoApiV1CashRegistersInfoGet($headerParameters), $fetch); } /** @@ -497,14 +497,14 @@ public function getCashRegisterInfoApiV1CashRegistersInfoGet(array $headerParame * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultShiftModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultShiftModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCashRegisterShiftsApiV1CashRegistersShiftsGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCashRegisterShiftsApiV1CashRegistersShiftsGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCashRegisterShiftsApiV1CashRegistersShiftsGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCashRegisterShiftsApiV1CashRegistersShiftsGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCashRegisterShiftsApiV1CashRegistersShiftsGet($queryParameters, $headerParameters), $fetch); } /** @@ -519,14 +519,14 @@ public function getCashRegisterShiftsApiV1CashRegistersShiftsGet(array $queryPar * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\DetailedCashRegisterModel|\Psr\Http\Message\ResponseInterface + * @return Model\DetailedCashRegisterModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCashRegisterApiV1CashRegistersCashRegisterIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCashRegisterApiV1CashRegistersCashRegisterIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCashRegisterApiV1CashRegistersCashRegisterIdGet(string $cashRegisterId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCashRegisterApiV1CashRegistersCashRegisterIdGet($cashRegisterId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCashRegisterApiV1CashRegistersCashRegisterIdGet($cashRegisterId, $headerParameters), $fetch); } /** @@ -551,14 +551,14 @@ public function getCashRegisterApiV1CashRegistersCashRegisterIdGet(string $cashR * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultShiftWithCashRegisterModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetShiftsApiV1ShiftsGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetShiftsApiV1ShiftsGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getShiftsApiV1ShiftsGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetShiftsApiV1ShiftsGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetShiftsApiV1ShiftsGet($queryParameters, $headerParameters), $fetch); } /** @@ -593,14 +593,14 @@ public function getShiftsApiV1ShiftsGet(array $queryParameters = [], array $head * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface + * @return Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateShiftApiV1ShiftsPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateShiftApiV1ShiftsPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ - public function createShiftApiV1ShiftsPost(Model\CreateShiftPayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function createShiftApiV1ShiftsPost(?Model\CreateShiftPayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateShiftApiV1ShiftsPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateShiftApiV1ShiftsPost($requestBody, $headerParameters), $fetch); } /** @@ -615,14 +615,14 @@ public function createShiftApiV1ShiftsPost(Model\CreateShiftPayload $requestBody * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface + * @return Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetShiftApiV1ShiftsShiftIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetShiftApiV1ShiftsShiftIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getShiftApiV1ShiftsShiftIdGet(string $shiftId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetShiftApiV1ShiftsShiftIdGet($shiftId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetShiftApiV1ShiftsShiftIdGet($shiftId, $headerParameters), $fetch); } /** @@ -638,14 +638,14 @@ public function getShiftApiV1ShiftsShiftIdGet(string $shiftId, array $headerPara * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface + * @return Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ - public function closeShiftBySeniorCashierApiV1ShiftsShiftIdClosePost(string $shiftId, Model\ShortCloseShiftPayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function closeShiftBySeniorCashierApiV1ShiftsShiftIdClosePost(string $shiftId, ?Model\ShortCloseShiftPayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePost($shiftId, $requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePost($shiftId, $requestBody, $headerParameters), $fetch); } /** @@ -676,14 +676,14 @@ public function closeShiftBySeniorCashierApiV1ShiftsShiftIdClosePost(string $shi * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface + * @return Model\ShiftWithCashierAndCashRegister|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CloseShiftApiV1ShiftsClosePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CloseShiftApiV1ShiftsClosePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ - public function closeShiftApiV1ShiftsClosePost(Model\CloseShiftPayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function closeShiftApiV1ShiftsClosePost(?Model\CloseShiftPayload $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CloseShiftApiV1ShiftsClosePost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CloseShiftApiV1ShiftsClosePost($requestBody, $headerParameters), $fetch); } /** @@ -712,14 +712,14 @@ public function closeShiftApiV1ShiftsClosePost(Model\CloseShiftPayload $requestB * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptsApiV1ReceiptsGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptsApiV1ReceiptsGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptsApiV1ReceiptsGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptsApiV1ReceiptsGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptsApiV1ReceiptsGet($queryParameters, $headerParameters), $fetch); } /** @@ -750,14 +750,14 @@ public function getReceiptsApiV1ReceiptsGet(array $queryParameters = [], array $ * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptsSearchApiV1ReceiptsSearchGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptsSearchApiV1ReceiptsSearchGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptsSearchApiV1ReceiptsSearchGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptsSearchApiV1ReceiptsSearchGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptsSearchApiV1ReceiptsSearchGet($queryParameters, $headerParameters), $fetch); } /** @@ -772,14 +772,14 @@ public function getReceiptsSearchApiV1ReceiptsSearchGet(array $queryParameters = * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptApiV1ReceiptsReceiptIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptApiV1ReceiptsReceiptIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptApiV1ReceiptsReceiptIdGet(string $receiptId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptApiV1ReceiptsReceiptIdGet($receiptId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptApiV1ReceiptsReceiptIdGet($receiptId, $headerParameters), $fetch); } /** @@ -795,14 +795,14 @@ public function getReceiptApiV1ReceiptsReceiptIdGet(string $receiptId, array $he * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateReceiptApiV1ReceiptsSellPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateReceiptApiV1ReceiptsSellPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createReceiptApiV1ReceiptsSellPost(Model\ReceiptSellPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateReceiptApiV1ReceiptsSellPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateReceiptApiV1ReceiptsSellPost($requestBody, $headerParameters), $fetch); } /** @@ -818,14 +818,14 @@ public function createReceiptApiV1ReceiptsSellPost(Model\ReceiptSellPayload $req * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateOfflineReceiptApiV1ReceiptsSellOfflinePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateOfflineReceiptApiV1ReceiptsSellOfflinePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createOfflineReceiptApiV1ReceiptsSellOfflinePost(Model\OfflineReceiptSellPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateOfflineReceiptApiV1ReceiptsSellOfflinePost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateOfflineReceiptApiV1ReceiptsSellOfflinePost($requestBody, $headerParameters), $fetch); } /** @@ -843,14 +843,14 @@ public function createOfflineReceiptApiV1ReceiptsSellOfflinePost(Model\OfflineRe * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\AddExternalReceiptApiV1ReceiptsAddExternalPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\AddExternalReceiptApiV1ReceiptsAddExternalPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function addExternalReceiptApiV1ReceiptsAddExternalPost(Model\CalculatedReceiptSellPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\AddExternalReceiptApiV1ReceiptsAddExternalPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\AddExternalReceiptApiV1ReceiptsAddExternalPost($requestBody, $headerParameters), $fetch); } /** @@ -868,14 +868,14 @@ public function addExternalReceiptApiV1ReceiptsAddExternalPost(Model\CalculatedR * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateServiceReceiptApiV1ReceiptsServicePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateServiceReceiptApiV1ReceiptsServicePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createServiceReceiptApiV1ReceiptsServicePost(Model\ReceiptServicePayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateServiceReceiptApiV1ReceiptsServicePost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateServiceReceiptApiV1ReceiptsServicePost($requestBody, $headerParameters), $fetch); } /** @@ -892,14 +892,14 @@ public function createServiceReceiptApiV1ReceiptsServicePost(Model\ReceiptServic * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost(Model\ServiceCurrencyPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost($requestBody, $headerParameters), $fetch); } /** @@ -914,14 +914,14 @@ public function createServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost(Mod * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\ExchangeApiV1ReceiptsCurrencyExchangePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\ExchangeApiV1ReceiptsCurrencyExchangePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function exchangeApiV1ReceiptsCurrencyExchangePost(Model\CurrencyExchangePayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\ExchangeApiV1ReceiptsCurrencyExchangePost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\ExchangeApiV1ReceiptsCurrencyExchangePost($requestBody, $headerParameters), $fetch); } /** @@ -937,14 +937,14 @@ public function exchangeApiV1ReceiptsCurrencyExchangePost(Model\CurrencyExchange * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReceiptModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReceiptModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CashWithdrawalApiV1ReceiptsCashWithdrawalPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CashWithdrawalApiV1ReceiptsCashWithdrawalPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function cashWithdrawalApiV1ReceiptsCashWithdrawalPost(Model\CashWithdrawalReceiptPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CashWithdrawalApiV1ReceiptsCashWithdrawalPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CashWithdrawalApiV1ReceiptsCashWithdrawalPost($requestBody, $headerParameters), $fetch); } /** @@ -969,12 +969,12 @@ public function cashWithdrawalApiV1ReceiptsCashWithdrawalPost(Model\CashWithdraw * * @return \Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet(string $receiptId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet($receiptId, $queryParameters, $headerParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet($receiptId, $queryParameters, $headerParameters, $accept), $fetch); } /** @@ -996,12 +996,12 @@ public function getReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet(string $receiptId, a * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptPdfApiV1ReceiptsReceiptIdPdfGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptPdfApiV1ReceiptsReceiptIdPdfGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptPdfApiV1ReceiptsReceiptIdPdfGet(string $receiptId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptPdfApiV1ReceiptsReceiptIdPdfGet($receiptId, $queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptPdfApiV1ReceiptsReceiptIdPdfGet($receiptId, $queryParameters, $headerParameters), $fetch); } /** @@ -1024,12 +1024,12 @@ public function getReceiptPdfApiV1ReceiptsReceiptIdPdfGet(string $receiptId, arr * * @return \Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptTextApiV1ReceiptsReceiptIdTextGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptTextApiV1ReceiptsReceiptIdTextGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptTextApiV1ReceiptsReceiptIdTextGet(string $receiptId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptTextApiV1ReceiptsReceiptIdTextGet($receiptId, $queryParameters, $headerParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptTextApiV1ReceiptsReceiptIdTextGet($receiptId, $queryParameters, $headerParameters, $accept), $fetch); } /** @@ -1053,12 +1053,12 @@ public function getReceiptTextApiV1ReceiptsReceiptIdTextGet(string $receiptId, a * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptPngApiV1ReceiptsReceiptIdPngGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptPngApiV1ReceiptsReceiptIdPngGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptPngApiV1ReceiptsReceiptIdPngGet(string $receiptId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptPngApiV1ReceiptsReceiptIdPngGet($receiptId, $queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptPngApiV1ReceiptsReceiptIdPngGet($receiptId, $queryParameters, $headerParameters), $fetch); } /** @@ -1075,12 +1075,12 @@ public function getReceiptPngApiV1ReceiptsReceiptIdPngGet(string $receiptId, arr * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet(string $receiptId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet($receiptId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet($receiptId, $headerParameters), $fetch); } /** @@ -1097,12 +1097,12 @@ public function getReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet(string $rec * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GetReceiptXmlApiV1ReceiptsReceiptIdXmlGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReceiptXmlApiV1ReceiptsReceiptIdXmlGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReceiptXmlApiV1ReceiptsReceiptIdXmlGet(string $receiptId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReceiptXmlApiV1ReceiptsReceiptIdXmlGet($receiptId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReceiptXmlApiV1ReceiptsReceiptIdXmlGet($receiptId, $headerParameters), $fetch); } /** @@ -1118,12 +1118,12 @@ public function getReceiptXmlApiV1ReceiptsReceiptIdXmlGet(string $receiptId, arr * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function sendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost(string $receiptId, array $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost($receiptId, $requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost($receiptId, $requestBody, $headerParameters), $fetch); } /** @@ -1142,12 +1142,12 @@ public function sendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost(string $receip * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function sendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost(string $receiptId, Model\ReceiptDeliverySmsPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost($receiptId, $requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost($receiptId, $requestBody, $headerParameters), $fetch); } /** @@ -1172,12 +1172,12 @@ public function sendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost(string $receiptId * * @return \Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetPeriodicalReportApiV1ReportsPeriodicalGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetPeriodicalReportApiV1ReportsPeriodicalGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getPeriodicalReportApiV1ReportsPeriodicalGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetPeriodicalReportApiV1ReportsPeriodicalGet($queryParameters, $headerParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetPeriodicalReportApiV1ReportsPeriodicalGet($queryParameters, $headerParameters, $accept), $fetch); } /** @@ -1204,14 +1204,14 @@ public function getPeriodicalReportApiV1ReportsPeriodicalGet(array $queryParamet * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReportModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultReportModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReportsApiV1ReportsGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReportsApiV1ReportsGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReportsApiV1ReportsGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReportsApiV1ReportsGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReportsApiV1ReportsGet($queryParameters, $headerParameters), $fetch); } /** @@ -1226,14 +1226,14 @@ public function getReportsApiV1ReportsGet(array $queryParameters = [], array $he * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReportModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateXReportApiV1ReportsPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateXReportApiV1ReportsPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createXReportApiV1ReportsPost(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateXReportApiV1ReportsPost($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateXReportApiV1ReportsPost($headerParameters), $fetch); } /** @@ -1261,14 +1261,14 @@ public function createXReportApiV1ReportsPost(array $headerParameters = [], stri * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReportModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultReportModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetSearchReportsApiV1ReportsSearchGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetSearchReportsApiV1ReportsSearchGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getSearchReportsApiV1ReportsSearchGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetSearchReportsApiV1ReportsSearchGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetSearchReportsApiV1ReportsSearchGet($queryParameters, $headerParameters), $fetch); } /** @@ -1283,14 +1283,14 @@ public function getSearchReportsApiV1ReportsSearchGet(array $queryParameters = [ * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReportModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\AddExternalReportApiV1ReportsAddExternalPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\AddExternalReportApiV1ReportsAddExternalPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function addExternalReportApiV1ReportsAddExternalPost(Model\ReportPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\AddExternalReportApiV1ReportsAddExternalPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\AddExternalReportApiV1ReportsAddExternalPost($requestBody, $headerParameters), $fetch); } /** @@ -1305,14 +1305,14 @@ public function addExternalReportApiV1ReportsAddExternalPost(Model\ReportPayload * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportModel|\Psr\Http\Message\ResponseInterface + * @return Model\ReportModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReportApiV1ReportsReportIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReportApiV1ReportsReportIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReportApiV1ReportsReportIdGet(string $reportId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReportApiV1ReportsReportIdGet($reportId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReportApiV1ReportsReportIdGet($reportId, $headerParameters), $fetch); } /** @@ -1335,12 +1335,12 @@ public function getReportApiV1ReportsReportIdGet(string $reportId, array $header * * @return \Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReportTextApiV1ReportsReportIdTextGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReportTextApiV1ReportsReportIdTextGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReportTextApiV1ReportsReportIdTextGet(string $reportId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReportTextApiV1ReportsReportIdTextGet($reportId, $queryParameters, $headerParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetReportTextApiV1ReportsReportIdTextGet($reportId, $queryParameters, $headerParameters, $accept), $fetch); } /** @@ -1363,12 +1363,12 @@ public function getReportTextApiV1ReportsReportIdTextGet(string $reportId, array * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\GetReportPngApiV1ReportsReportIdPngGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReportPngApiV1ReportsReportIdPngGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReportPngApiV1ReportsReportIdPngGet(string $reportId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReportPngApiV1ReportsReportIdPngGet($reportId, $queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReportPngApiV1ReportsReportIdPngGet($reportId, $queryParameters, $headerParameters), $fetch); } /** @@ -1381,14 +1381,14 @@ public function getReportPngApiV1ReportsReportIdPngGet(string $reportId, array $ * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GoodsReportApiV1ExtendedReportsGoodsPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GoodsReportApiV1ExtendedReportsGoodsPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function goodsReportApiV1ExtendedReportsGoodsPost(Model\ExtendedReportFiltersPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GoodsReportApiV1ExtendedReportsGoodsPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GoodsReportApiV1ExtendedReportsGoodsPost($requestBody, $headerParameters), $fetch); } /** @@ -1401,14 +1401,14 @@ public function goodsReportApiV1ExtendedReportsGoodsPost(Model\ExtendedReportFil * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateZReportApiV1ExtendedReportsZPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateZReportApiV1ExtendedReportsZPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createZReportApiV1ExtendedReportsZPost(Model\ReportWithExtensionPayloadShort $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateZReportApiV1ExtendedReportsZPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateZReportApiV1ExtendedReportsZPost($requestBody, $headerParameters), $fetch); } /** @@ -1421,14 +1421,14 @@ public function createZReportApiV1ExtendedReportsZPost(Model\ReportWithExtension * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createActualRevenueReportApiV1ExtendedReportsActualRevenuePost(Model\ExtendedReportPayloadShort $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePost($requestBody, $headerParameters), $fetch); } /** @@ -1441,14 +1441,14 @@ public function createActualRevenueReportApiV1ExtendedReportsActualRevenuePost(M * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost(Model\ExtendedReportPayloadShort $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost($requestBody, $headerParameters), $fetch); } /** @@ -1461,14 +1461,14 @@ public function createNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost(Model * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost(Model\ExtendedReportPayloadShort $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost($requestBody, $headerParameters), $fetch); } /** @@ -1481,14 +1481,14 @@ public function createBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost(Model\DailyCashFlowPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost($requestBody, $headerParameters), $fetch); } /** @@ -1501,14 +1501,14 @@ public function createDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost(M * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\ReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CreateReceiptReportApiV1ExtendedReportsReceiptPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CreateReceiptReportApiV1ExtendedReportsReceiptPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function createReceiptReportApiV1ExtendedReportsReceiptPost(Model\ExtendedReceiptReportFiltersPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CreateReceiptReportApiV1ExtendedReportsReceiptPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CreateReceiptReportApiV1ExtendedReportsReceiptPost($requestBody, $headerParameters), $fetch); } /** @@ -1521,14 +1521,14 @@ public function createReceiptReportApiV1ExtendedReportsReceiptPost(Model\Extende * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReportTaskByIdApiV1ExtendedReportsReportTaskIdGet(string $reportTaskId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGet($reportTaskId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGet($reportTaskId, $headerParameters), $fetch); } /** @@ -1541,14 +1541,14 @@ public function getReportTaskByIdApiV1ExtendedReportsReportTaskIdGet(string $rep * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet(string $reportTaskId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet($reportTaskId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet($reportTaskId, $headerParameters), $fetch); } /** @@ -1561,14 +1561,14 @@ public function getReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet(s * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface + * @return Model\PublicReportTaskSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet(string $reportTaskId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet($reportTaskId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet($reportTaskId, $headerParameters), $fetch); } /** @@ -1590,14 +1590,14 @@ public function getReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet(s * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultShortTransaction|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultShortTransaction|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetTransactionsApiV1TransactionsGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetTransactionsApiV1TransactionsGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getTransactionsApiV1TransactionsGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetTransactionsApiV1TransactionsGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetTransactionsApiV1TransactionsGet($queryParameters, $headerParameters), $fetch); } /** @@ -1610,14 +1610,14 @@ public function getTransactionsApiV1TransactionsGet(array $queryParameters = [], * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\TransactionModel|\Psr\Http\Message\ResponseInterface + * @return Model\TransactionModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetTransactionApiV1TransactionsTransactionIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetTransactionApiV1TransactionsTransactionIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getTransactionApiV1TransactionsTransactionIdGet(string $transactionId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetTransactionApiV1TransactionsTransactionIdGet($transactionId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetTransactionApiV1TransactionsTransactionIdGet($transactionId, $headerParameters), $fetch); } /** @@ -1632,14 +1632,14 @@ public function getTransactionApiV1TransactionsTransactionIdGet(string $transact * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\TransactionModel|\Psr\Http\Message\ResponseInterface + * @return Model\TransactionModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\UpdateTransactionApiV1TransactionsTransactionIdPatchUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\UpdateTransactionApiV1TransactionsTransactionIdPatchUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function updateTransactionApiV1TransactionsTransactionIdPatch(string $transactionId, Model\UpdateTransactionPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\UpdateTransactionApiV1TransactionsTransactionIdPatch($transactionId, $requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\UpdateTransactionApiV1TransactionsTransactionIdPatch($transactionId, $requestBody, $headerParameters), $fetch); } /** @@ -1655,14 +1655,14 @@ public function updateTransactionApiV1TransactionsTransactionIdPatch(string $tra * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\ExtendedTaxModel[]|\Psr\Http\Message\ResponseInterface + * @return Model\ExtendedTaxModel[]|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetAllTaxesApiV1TaxGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetAllTaxesApiV1TaxGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getAllTaxesApiV1TaxGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetAllTaxesApiV1TaxGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetAllTaxesApiV1TaxGet($headerParameters), $fetch); } /** @@ -1690,14 +1690,14 @@ public function getAllTaxesApiV1TaxGet(array $headerParameters = [], string $fet * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultGoodModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultGoodModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetGoodsApiV1GoodsGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetGoodsApiV1GoodsGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getGoodsApiV1GoodsGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetGoodsApiV1GoodsGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetGoodsApiV1GoodsGet($queryParameters, $headerParameters), $fetch); } /** @@ -1712,14 +1712,14 @@ public function getGoodsApiV1GoodsGet(array $queryParameters = [], array $header * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\SrsoSchemaGoodSchemaGoodModel|\Psr\Http\Message\ResponseInterface + * @return Model\SrsoSchemaGoodSchemaGoodModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetGoodApiV1GoodsGoodIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetGoodApiV1GoodsGoodIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getGoodApiV1GoodsGoodIdGet(string $goodId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetGoodApiV1GoodsGoodIdGet($goodId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetGoodApiV1GoodsGoodIdGet($goodId, $headerParameters), $fetch); } /** @@ -1735,14 +1735,14 @@ public function getGoodApiV1GoodsGoodIdGet(string $goodId, array $headerParamete * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema|\Psr\Http\Message\ResponseInterface + * @return Model\OperationBaseResponseSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\ExportGoodsApiV1GoodsExportExportExtensionGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\ExportGoodsApiV1GoodsExportExportExtensionGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function exportGoodsApiV1GoodsExportExportExtensionGet(string $exportExtension, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\ExportGoodsApiV1GoodsExportExportExtensionGet($exportExtension, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\ExportGoodsApiV1GoodsExportExportExtensionGet($exportExtension, $headerParameters), $fetch); } /** @@ -1757,14 +1757,14 @@ public function exportGoodsApiV1GoodsExportExportExtensionGet(string $exportExte * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CheckStatusResponseSchema|\Psr\Http\Message\ResponseInterface + * @return Model\CheckStatusResponseSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function exportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet(string $taskId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet($taskId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet($taskId, $headerParameters), $fetch); } /** @@ -1786,12 +1786,12 @@ public function exportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet(string * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\ExportGoodsFileApiV1GoodsExportFileTaskIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\ExportGoodsFileApiV1GoodsExportFileTaskIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function exportGoodsFileApiV1GoodsExportFileTaskIdGet(string $taskId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\ExportGoodsFileApiV1GoodsExportFileTaskIdGet($taskId, $queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\ExportGoodsFileApiV1GoodsExportFileTaskIdGet($taskId, $queryParameters, $headerParameters), $fetch); } /** @@ -1812,14 +1812,14 @@ public function exportGoodsFileApiV1GoodsExportFileTaskIdGet(string $taskId, arr * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema|\Psr\Http\Message\ResponseInterface + * @return Model\OperationBaseResponseSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\ImportGoodsFromFileApiV1GoodsImportUploadPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\ImportGoodsFromFileApiV1GoodsImportUploadPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function importGoodsFromFileApiV1GoodsImportUploadPost(Model\BodyImportGoodsFromFileApiV1GoodsImportUploadPost $requestBody, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\ImportGoodsFromFileApiV1GoodsImportUploadPost($requestBody, $queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\ImportGoodsFromFileApiV1GoodsImportUploadPost($requestBody, $queryParameters, $headerParameters), $fetch); } /** @@ -1834,14 +1834,14 @@ public function importGoodsFromFileApiV1GoodsImportUploadPost(Model\BodyImportGo * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CheckStatusResponseSchema|\Psr\Http\Message\ResponseInterface + * @return Model\CheckStatusResponseSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function importGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet(string $taskId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet($taskId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet($taskId, $headerParameters), $fetch); } /** @@ -1856,14 +1856,14 @@ public function importGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet(string * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema|\Psr\Http\Message\ResponseInterface + * @return Model\OperationBaseResponseSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function importGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost(string $taskId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost($taskId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost($taskId, $headerParameters), $fetch); } /** @@ -1878,12 +1878,12 @@ public function importGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost(st * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\RunOrdersSynchronizationApiV1OrdersSyncPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\RunOrdersSynchronizationApiV1OrdersSyncPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function runOrdersSynchronizationApiV1OrdersSyncPost(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\RunOrdersSynchronizationApiV1OrdersSyncPost($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\RunOrdersSynchronizationApiV1OrdersSyncPost($headerParameters), $fetch); } /** @@ -1908,14 +1908,14 @@ public function runOrdersSynchronizationApiV1OrdersSyncPost(array $headerParamet * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\PaginatedResultOrderModel|\Psr\Http\Message\ResponseInterface + * @return Model\PaginatedResultOrderModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetOrdersApiV1OrdersGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetOrdersApiV1OrdersGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getOrdersApiV1OrdersGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetOrdersApiV1OrdersGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetOrdersApiV1OrdersGet($queryParameters, $headerParameters), $fetch); } /** @@ -1934,12 +1934,12 @@ public function getOrdersApiV1OrdersGet(array $queryParameters = [], array $head * * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \RevoTale\CheckboxUA\Exception\AddOrdersApiV1OrdersPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\AddOrdersApiV1OrdersPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function addOrdersApiV1OrdersPost($requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\AddOrdersApiV1OrdersPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\AddOrdersApiV1OrdersPost($requestBody, $headerParameters), $fetch); } /** @@ -1954,14 +1954,14 @@ public function addOrdersApiV1OrdersPost($requestBody, array $headerParameters = * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\DeleteIntegrationSchema|\Psr\Http\Message\ResponseInterface + * @return Model\DeleteIntegrationSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\DeleteIntegrationApiV1OrdersIntegrationDeleteUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\DeleteIntegrationApiV1OrdersIntegrationDeleteUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function deleteIntegrationApiV1OrdersIntegrationDelete(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\DeleteIntegrationApiV1OrdersIntegrationDelete($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\DeleteIntegrationApiV1OrdersIntegrationDelete($headerParameters), $fetch); } /** @@ -1976,14 +1976,14 @@ public function deleteIntegrationApiV1OrdersIntegrationDelete(array $headerParam * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\IntegrationInfoSchema|\Psr\Http\Message\ResponseInterface + * @return Model\IntegrationInfoSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetIntegrationApiV1OrdersIntegrationGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetIntegrationApiV1OrdersIntegrationGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getIntegrationApiV1OrdersIntegrationGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetIntegrationApiV1OrdersIntegrationGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetIntegrationApiV1OrdersIntegrationGet($headerParameters), $fetch); } /** @@ -2027,14 +2027,14 @@ public function getIntegrationApiV1OrdersIntegrationGet(array $headerParameters * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\IntegrationInfoResponseSchema|\Psr\Http\Message\ResponseInterface + * @return Model\IntegrationInfoResponseSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\SetIntegrationApiV1OrdersIntegrationPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SetIntegrationApiV1OrdersIntegrationPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function setIntegrationApiV1OrdersIntegrationPost(Model\SetIntegrationPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SetIntegrationApiV1OrdersIntegrationPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SetIntegrationApiV1OrdersIntegrationPost($requestBody, $headerParameters), $fetch); } /** @@ -2052,14 +2052,14 @@ public function setIntegrationApiV1OrdersIntegrationPost(Model\SetIntegrationPay * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OrderModel|\Psr\Http\Message\ResponseInterface + * @return Model\OrderModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetOrderApiV1OrdersOrderIdGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetOrderApiV1OrdersOrderIdGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getOrderApiV1OrdersOrderIdGet(string $orderId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetOrderApiV1OrdersOrderIdGet($orderId, $queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetOrderApiV1OrdersOrderIdGet($orderId, $queryParameters, $headerParameters), $fetch); } /** @@ -2074,14 +2074,14 @@ public function getOrderApiV1OrdersOrderIdGet(string $orderId, array $queryParam * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OrderModel|\Psr\Http\Message\ResponseInterface + * @return Model\OrderModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CancelOrderApiV1OrdersOrderIdPatchUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CancelOrderApiV1OrdersOrderIdPatchUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function cancelOrderApiV1OrdersOrderIdPatch(string $orderId, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CancelOrderApiV1OrdersOrderIdPatch($orderId, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CancelOrderApiV1OrdersOrderIdPatch($orderId, $headerParameters), $fetch); } /** @@ -2104,14 +2104,14 @@ public function cancelOrderApiV1OrdersOrderIdPatch(string $orderId, array $heade * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OrderModel|\Psr\Http\Message\ResponseInterface + * @return Model\OrderModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\CloseNotFiscalizeOrderApiV1OrdersClosePatchUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\CloseNotFiscalizeOrderApiV1OrdersClosePatchUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function closeNotFiscalizeOrderApiV1OrdersClosePatch(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\CloseNotFiscalizeOrderApiV1OrdersClosePatch($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\CloseNotFiscalizeOrderApiV1OrdersClosePatch($queryParameters, $headerParameters), $fetch); } /** @@ -2126,14 +2126,14 @@ public function closeNotFiscalizeOrderApiV1OrdersClosePatch(array $queryParamete * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\IntegrationEditOrderReceiptSchema|\Psr\Http\Message\ResponseInterface + * @return Model\IntegrationEditOrderReceiptSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\EditOrderApiV1OrdersIntegrationEditOrderPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\EditOrderApiV1OrdersIntegrationEditOrderPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function editOrderApiV1OrdersIntegrationEditOrderPost(Model\IntegrationEditOrderReceiptSchema $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\EditOrderApiV1OrdersIntegrationEditOrderPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\EditOrderApiV1OrdersIntegrationEditOrderPost($requestBody, $headerParameters), $fetch); } /** @@ -2151,14 +2151,14 @@ public function editOrderApiV1OrdersIntegrationEditOrderPost(Model\IntegrationEd * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\OrderModel|\Psr\Http\Message\ResponseInterface + * @return Model\OrderModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatchUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatchUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function updateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch(string $orderId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch($orderId, $queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch($orderId, $queryParameters, $headerParameters), $fetch); } /** @@ -2178,14 +2178,14 @@ public function updateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch(strin * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CurrencyRateModel[]|\Psr\Http\Message\ResponseInterface + * @return Model\CurrencyRateModel[]|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCurrencyRatesApiV1CurrencyRateGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCurrencyRatesApiV1CurrencyRateGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCurrencyRatesApiV1CurrencyRateGet(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCurrencyRatesApiV1CurrencyRateGet($queryParameters, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCurrencyRatesApiV1CurrencyRateGet($queryParameters, $headerParameters), $fetch); } /** @@ -2202,14 +2202,14 @@ public function getCurrencyRatesApiV1CurrencyRateGet(array $queryParameters = [] * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CurrencyRateModel[]|\Psr\Http\Message\ResponseInterface + * @return Model\CurrencyRateModel[]|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\SetupCurrencyRatesApiV1CurrencyRateSetupPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SetupCurrencyRatesApiV1CurrencyRateSetupPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function setupCurrencyRatesApiV1CurrencyRateSetupPost(Model\SetupRatesPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SetupCurrencyRatesApiV1CurrencyRateSetupPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SetupCurrencyRatesApiV1CurrencyRateSetupPost($requestBody, $headerParameters), $fetch); } /** @@ -2224,14 +2224,14 @@ public function setupCurrencyRatesApiV1CurrencyRateSetupPost(Model\SetupRatesPay * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\CurrencyRateModel|\Psr\Http\Message\ResponseInterface + * @return Model\CurrencyRateModel|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetCurrencyRateApiV1CurrencyRateCurrencyCodeGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetCurrencyRateApiV1CurrencyRateCurrencyCodeGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getCurrencyRateApiV1CurrencyRateCurrencyCodeGet(string $currencyCode, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetCurrencyRateApiV1CurrencyRateCurrencyCodeGet($currencyCode, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetCurrencyRateApiV1CurrencyRateCurrencyCodeGet($currencyCode, $headerParameters), $fetch); } /** @@ -2247,14 +2247,14 @@ public function getCurrencyRateApiV1CurrencyRateCurrencyCodeGet(string $currency * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\DeleteWebhookSchema|\Psr\Http\Message\ResponseInterface + * @return Model\DeleteWebhookSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\DeleteWebhookApiV1WebhookDeleteUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\DeleteWebhookApiV1WebhookDeleteUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function deleteWebhookApiV1WebhookDelete(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\DeleteWebhookApiV1WebhookDelete($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\DeleteWebhookApiV1WebhookDelete($headerParameters), $fetch); } /** @@ -2270,14 +2270,14 @@ public function deleteWebhookApiV1WebhookDelete(array $headerParameters = [], st * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\WebhookInfoSchema|\Psr\Http\Message\ResponseInterface + * @return Model\WebhookInfoSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\GetWebhookInfoApiV1WebhookGetUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\GetWebhookInfoApiV1WebhookGetUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function getWebhookInfoApiV1WebhookGet(array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\GetWebhookInfoApiV1WebhookGet($headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetWebhookInfoApiV1WebhookGet($headerParameters), $fetch); } /** @@ -2325,14 +2325,14 @@ public function getWebhookInfoApiV1WebhookGet(array $headerParameters = [], stri * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \RevoTale\CheckboxUA\Model\WebhookInfoResponseSchema|\Psr\Http\Message\ResponseInterface + * @return Model\WebhookInfoResponseSchema|\Psr\Http\Message\ResponseInterface * - * @throws \RevoTale\CheckboxUA\Exception\SetWebhookApiV1WebhookPostUnprocessableEntityException - * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException + * @throws Exception\SetWebhookApiV1WebhookPostUnprocessableEntityException + * @throws Exception\UnexpectedStatusCodeException */ public function setWebhookApiV1WebhookPost(Model\SetWebhookPayload $requestBody, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \RevoTale\CheckboxUA\Endpoint\SetWebhookApiV1WebhookPost($requestBody, $headerParameters), $fetch); + return $this->executeEndpoint(new Endpoint\SetWebhookApiV1WebhookPost($requestBody, $headerParameters), $fetch); } public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) @@ -2347,7 +2347,7 @@ public static function create($httpClient = null, array $additionalPlugins = [], } $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); - $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \RevoTale\CheckboxUA\Normalizer\JaneObjectNormalizer()]; + $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new Normalizer\JaneObjectNormalizer()]; if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } diff --git a/src/ClientFactory.php b/src/ClientFactory.php index 382b330..e9bf10a 100644 --- a/src/ClientFactory.php +++ b/src/ClientFactory.php @@ -11,18 +11,30 @@ use Http\Discovery\Psr18ClientDiscovery; use Jane\Component\OpenApiRuntime\Client\Plugin\AuthenticationRegistry; use Psr\Http\Client\ClientInterface; +use UnexpectedValueException; final readonly class ClientFactory { - public static function createClient(string $token = null, - HttpAsyncClient|ClientInterface $client = null): Client - { + public static function createClient( + /* + * Sunce recent time, client name is required. + */ + string $clientName, + string $clientVersion = '', + ?string $token = null, + HttpAsyncClient|ClientInterface|null $client = null, + ): Client { $plugins = []; if (null !== $token) { $plugins[] = new AuthenticationRegistry([new BearerAuthentication($token)]); } + if ('' === $clientName) { + throw new UnexpectedValueException('Client name is required'); + } $plugins[] = new AddHostPlugin(new Uri('https://api.checkbox.in.ua'), ['replace' => true]); - $pluginClient = new PluginClient($client??Psr18ClientDiscovery::find(), $plugins); + $plugins[] = new ClientNamePlugin($clientName, $clientVersion); + + $pluginClient = new PluginClient($client ?? Psr18ClientDiscovery::find(), $plugins); return Client::create($pluginClient); } diff --git a/src/ClientNamePlugin.php b/src/ClientNamePlugin.php new file mode 100644 index 0000000..0156743 --- /dev/null +++ b/src/ClientNamePlugin.php @@ -0,0 +1,29 @@ +withHeader('X-Client-Name', $this->clientName); + + if ('' !== $this->clientVersion) { + $request = $request->withHeader('X-Client-Version', $this->clientVersion); + } + + return $next($request); + } +} diff --git a/src/Endpoint/AddExternalReceiptApiV1ReceiptsAddExternalPost.php b/src/Endpoint/AddExternalReceiptApiV1ReceiptsAddExternalPost.php index b46b8cc..a0c070a 100644 --- a/src/Endpoint/AddExternalReceiptApiV1ReceiptsAddExternalPost.php +++ b/src/Endpoint/AddExternalReceiptApiV1ReceiptsAddExternalPost.php @@ -68,12 +68,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\AddExternalReceiptApiV1ReceiptsAddExternalPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/AddExternalReportApiV1ReportsAddExternalPost.php b/src/Endpoint/AddExternalReportApiV1ReportsAddExternalPost.php index fe30ea8..781acdb 100644 --- a/src/Endpoint/AddExternalReportApiV1ReportsAddExternalPost.php +++ b/src/Endpoint/AddExternalReportApiV1ReportsAddExternalPost.php @@ -64,12 +64,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportModel + * @return ReportModel * * @throws \RevoTale\CheckboxUA\Exception\AddExternalReportApiV1ReportsAddExternalPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/AddOrdersApiV1OrdersPost.php b/src/Endpoint/AddOrdersApiV1OrdersPost.php index d110f67..5984e33 100644 --- a/src/Endpoint/AddOrdersApiV1OrdersPost.php +++ b/src/Endpoint/AddOrdersApiV1OrdersPost.php @@ -71,7 +71,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\AddOrdersApiV1OrdersPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/AskOfflineCodesApiV1CashRegistersAskOfflineCodesGet.php b/src/Endpoint/AskOfflineCodesApiV1CashRegistersAskOfflineCodesGet.php index 40e493f..c3c63f6 100644 --- a/src/Endpoint/AskOfflineCodesApiV1CashRegistersAskOfflineCodesGet.php +++ b/src/Endpoint/AskOfflineCodesApiV1CashRegistersAskOfflineCodesGet.php @@ -96,7 +96,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\AskOfflineCodesApiV1CashRegistersAskOfflineCodesGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CancelOrderApiV1OrdersOrderIdPatch.php b/src/Endpoint/CancelOrderApiV1OrdersOrderIdPatch.php index 3d76643..bf6fff5 100644 --- a/src/Endpoint/CancelOrderApiV1OrdersOrderIdPatch.php +++ b/src/Endpoint/CancelOrderApiV1OrdersOrderIdPatch.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OrderModel + * @return OrderModel * * @throws \RevoTale\CheckboxUA\Exception\CancelOrderApiV1OrdersOrderIdPatchUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CashWithdrawalApiV1ReceiptsCashWithdrawalPost.php b/src/Endpoint/CashWithdrawalApiV1ReceiptsCashWithdrawalPost.php index 25ff15e..263d28c 100644 --- a/src/Endpoint/CashWithdrawalApiV1ReceiptsCashWithdrawalPost.php +++ b/src/Endpoint/CashWithdrawalApiV1ReceiptsCashWithdrawalPost.php @@ -66,12 +66,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\CashWithdrawalApiV1ReceiptsCashWithdrawalPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CheckSignatureApiV1CashierCheckSignatureGet.php b/src/Endpoint/CheckSignatureApiV1CashierCheckSignatureGet.php index cb49393..0e22e56 100644 --- a/src/Endpoint/CheckSignatureApiV1CashierCheckSignatureGet.php +++ b/src/Endpoint/CheckSignatureApiV1CashierCheckSignatureGet.php @@ -57,12 +57,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CashierSignatureStatus + * @return CashierSignatureStatus * * @throws \RevoTale\CheckboxUA\Exception\CheckSignatureApiV1CashierCheckSignatureGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CloseNotFiscalizeOrderApiV1OrdersClosePatch.php b/src/Endpoint/CloseNotFiscalizeOrderApiV1OrdersClosePatch.php index 78e7531..499f97d 100644 --- a/src/Endpoint/CloseNotFiscalizeOrderApiV1OrdersClosePatch.php +++ b/src/Endpoint/CloseNotFiscalizeOrderApiV1OrdersClosePatch.php @@ -79,12 +79,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OrderModel + * @return OrderModel * * @throws \RevoTale\CheckboxUA\Exception\CloseNotFiscalizeOrderApiV1OrdersClosePatchUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CloseShiftApiV1ShiftsClosePost.php b/src/Endpoint/CloseShiftApiV1ShiftsClosePost.php index ebe18f6..8d48caf 100644 --- a/src/Endpoint/CloseShiftApiV1ShiftsClosePost.php +++ b/src/Endpoint/CloseShiftApiV1ShiftsClosePost.php @@ -36,7 +36,7 @@ class CloseShiftApiV1ShiftsClosePost extends \RevoTale\CheckboxUA\Runtime\Client * @var string $X-Device-ID ID RRO Agent або мобільного пристрою каси (Для блокування дублікатів) * } */ - public function __construct(\RevoTale\CheckboxUA\Model\CloseShiftPayload $requestBody = null, array $headerParameters = []) + public function __construct(?\RevoTale\CheckboxUA\Model\CloseShiftPayload $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -81,12 +81,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister + * @return ShiftWithCashierAndCashRegister * * @throws \RevoTale\CheckboxUA\Exception\CloseShiftApiV1ShiftsClosePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePost.php b/src/Endpoint/CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePost.php index 622900a..7de5281 100644 --- a/src/Endpoint/CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePost.php +++ b/src/Endpoint/CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePost.php @@ -22,7 +22,7 @@ class CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePost extends \RevoTale\Che * @var string $X-License-Key * } */ - public function __construct(string $shiftId, \RevoTale\CheckboxUA\Model\ShortCloseShiftPayload $requestBody = null, array $headerParameters = []) + public function __construct(string $shiftId, ?\RevoTale\CheckboxUA\Model\ShortCloseShiftPayload $requestBody = null, array $headerParameters = []) { $this->shift_id = $shiftId; $this->body = $requestBody; @@ -67,12 +67,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister + * @return ShiftWithCashierAndCashRegister * * @throws \RevoTale\CheckboxUA\Exception\CloseShiftBySeniorCashierApiV1ShiftsShiftIdClosePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePost.php b/src/Endpoint/CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePost.php index acaf709..84d30d2 100644 --- a/src/Endpoint/CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePost.php +++ b/src/Endpoint/CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePost.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema + * @return ReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\CreateActualRevenueReportApiV1ExtendedReportsActualRevenuePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost.php b/src/Endpoint/CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost.php index 45e8d63..c8545f9 100644 --- a/src/Endpoint/CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost.php +++ b/src/Endpoint/CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPost.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema + * @return ReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\CreateBookkeeperZReportApiV1ExtendedReportsBookkeeperZReportPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost.php b/src/Endpoint/CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost.php index b0f887f..4a47df8 100644 --- a/src/Endpoint/CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost.php +++ b/src/Endpoint/CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPost.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema + * @return ReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\CreateDailyCashFlowReportApiV1ExtendedReportsDailyCashFlowPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost.php b/src/Endpoint/CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost.php index d14dae8..7fc676c 100644 --- a/src/Endpoint/CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost.php +++ b/src/Endpoint/CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPost.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema + * @return ReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\CreateNetTurnoverReportApiV1ExtendedReportsNetTurnoverPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateOfflineReceiptApiV1ReceiptsSellOfflinePost.php b/src/Endpoint/CreateOfflineReceiptApiV1ReceiptsSellOfflinePost.php index 00051e2..0639b9b 100644 --- a/src/Endpoint/CreateOfflineReceiptApiV1ReceiptsSellOfflinePost.php +++ b/src/Endpoint/CreateOfflineReceiptApiV1ReceiptsSellOfflinePost.php @@ -66,12 +66,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\CreateOfflineReceiptApiV1ReceiptsSellOfflinePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateReceiptApiV1ReceiptsSellPost.php b/src/Endpoint/CreateReceiptApiV1ReceiptsSellPost.php index 2687134..b3255e6 100644 --- a/src/Endpoint/CreateReceiptApiV1ReceiptsSellPost.php +++ b/src/Endpoint/CreateReceiptApiV1ReceiptsSellPost.php @@ -66,12 +66,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\CreateReceiptApiV1ReceiptsSellPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateReceiptReportApiV1ExtendedReportsReceiptPost.php b/src/Endpoint/CreateReceiptReportApiV1ExtendedReportsReceiptPost.php index 7432716..1e280ef 100644 --- a/src/Endpoint/CreateReceiptReportApiV1ExtendedReportsReceiptPost.php +++ b/src/Endpoint/CreateReceiptReportApiV1ExtendedReportsReceiptPost.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportTaskSchema + * @return ReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\CreateReceiptReportApiV1ExtendedReportsReceiptPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost.php b/src/Endpoint/CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost.php index 11e1c0a..a37a3c8 100644 --- a/src/Endpoint/CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost.php +++ b/src/Endpoint/CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPost.php @@ -66,12 +66,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\CreateServiceCurrencyReceiptApiV1ReceiptsServiceCurrencyPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateServiceReceiptApiV1ReceiptsServicePost.php b/src/Endpoint/CreateServiceReceiptApiV1ReceiptsServicePost.php index ba5f44f..24567f6 100644 --- a/src/Endpoint/CreateServiceReceiptApiV1ReceiptsServicePost.php +++ b/src/Endpoint/CreateServiceReceiptApiV1ReceiptsServicePost.php @@ -68,12 +68,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\CreateServiceReceiptApiV1ReceiptsServicePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateShiftApiV1ShiftsPost.php b/src/Endpoint/CreateShiftApiV1ShiftsPost.php index 3780d1c..5851ed3 100644 --- a/src/Endpoint/CreateShiftApiV1ShiftsPost.php +++ b/src/Endpoint/CreateShiftApiV1ShiftsPost.php @@ -40,7 +40,7 @@ class CreateShiftApiV1ShiftsPost extends \RevoTale\CheckboxUA\Runtime\Client\Bas * @var string $X-License-Key * } */ - public function __construct(\RevoTale\CheckboxUA\Model\CreateShiftPayload $requestBody = null, array $headerParameters = []) + public function __construct(?\RevoTale\CheckboxUA\Model\CreateShiftPayload $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -85,12 +85,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister + * @return ShiftWithCashierAndCashRegister * * @throws \RevoTale\CheckboxUA\Exception\CreateShiftApiV1ShiftsPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateXReportApiV1ReportsPost.php b/src/Endpoint/CreateXReportApiV1ReportsPost.php index 96c9e19..f51d559 100644 --- a/src/Endpoint/CreateXReportApiV1ReportsPost.php +++ b/src/Endpoint/CreateXReportApiV1ReportsPost.php @@ -59,12 +59,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportModel + * @return ReportModel * * @throws \RevoTale\CheckboxUA\Exception\CreateXReportApiV1ReportsPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/CreateZReportApiV1ExtendedReportsZPost.php b/src/Endpoint/CreateZReportApiV1ExtendedReportsZPost.php index f644338..c1e9335 100644 --- a/src/Endpoint/CreateZReportApiV1ExtendedReportsZPost.php +++ b/src/Endpoint/CreateZReportApiV1ExtendedReportsZPost.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema + * @return PublicReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\CreateZReportApiV1ExtendedReportsZPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/DeleteIntegrationApiV1OrdersIntegrationDelete.php b/src/Endpoint/DeleteIntegrationApiV1OrdersIntegrationDelete.php index 3e4ddb8..62dbd75 100644 --- a/src/Endpoint/DeleteIntegrationApiV1OrdersIntegrationDelete.php +++ b/src/Endpoint/DeleteIntegrationApiV1OrdersIntegrationDelete.php @@ -59,12 +59,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\DeleteIntegrationSchema + * @return DeleteIntegrationSchema * * @throws \RevoTale\CheckboxUA\Exception\DeleteIntegrationApiV1OrdersIntegrationDeleteUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/DeleteWebhookApiV1WebhookDelete.php b/src/Endpoint/DeleteWebhookApiV1WebhookDelete.php index 5045001..b6986dd 100644 --- a/src/Endpoint/DeleteWebhookApiV1WebhookDelete.php +++ b/src/Endpoint/DeleteWebhookApiV1WebhookDelete.php @@ -60,12 +60,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\DeleteWebhookSchema + * @return DeleteWebhookSchema * * @throws \RevoTale\CheckboxUA\Exception\DeleteWebhookApiV1WebhookDeleteUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/EditOrderApiV1OrdersIntegrationEditOrderPost.php b/src/Endpoint/EditOrderApiV1OrdersIntegrationEditOrderPost.php index af5dbd2..bcb5a0e 100644 --- a/src/Endpoint/EditOrderApiV1OrdersIntegrationEditOrderPost.php +++ b/src/Endpoint/EditOrderApiV1OrdersIntegrationEditOrderPost.php @@ -38,7 +38,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \RevoTale\CheckboxUA\Model\IntegrationEditOrderReceiptSchema) { + if ($this->body instanceof IntegrationEditOrderReceiptSchema) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } @@ -64,12 +64,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\IntegrationEditOrderReceiptSchema + * @return IntegrationEditOrderReceiptSchema * * @throws \RevoTale\CheckboxUA\Exception\EditOrderApiV1OrdersIntegrationEditOrderPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ExchangeApiV1ReceiptsCurrencyExchangePost.php b/src/Endpoint/ExchangeApiV1ReceiptsCurrencyExchangePost.php index cccee0e..7ddc59f 100644 --- a/src/Endpoint/ExchangeApiV1ReceiptsCurrencyExchangePost.php +++ b/src/Endpoint/ExchangeApiV1ReceiptsCurrencyExchangePost.php @@ -64,12 +64,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\ExchangeApiV1ReceiptsCurrencyExchangePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ExportGoodsApiV1GoodsExportExportExtensionGet.php b/src/Endpoint/ExportGoodsApiV1GoodsExportExportExtensionGet.php index 9720100..2e8c672 100644 --- a/src/Endpoint/ExportGoodsApiV1GoodsExportExportExtensionGet.php +++ b/src/Endpoint/ExportGoodsApiV1GoodsExportExportExtensionGet.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema + * @return OperationBaseResponseSchema * * @throws \RevoTale\CheckboxUA\Exception\ExportGoodsApiV1GoodsExportExportExtensionGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ExportGoodsFileApiV1GoodsExportFileTaskIdGet.php b/src/Endpoint/ExportGoodsFileApiV1GoodsExportFileTaskIdGet.php index b3dff34..7e7f598 100644 --- a/src/Endpoint/ExportGoodsFileApiV1GoodsExportFileTaskIdGet.php +++ b/src/Endpoint/ExportGoodsFileApiV1GoodsExportFileTaskIdGet.php @@ -83,7 +83,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\ExportGoodsFileApiV1GoodsExportFileTaskIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet.php b/src/Endpoint/ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet.php index 5cd6a8c..1e03f57 100644 --- a/src/Endpoint/ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet.php +++ b/src/Endpoint/ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CheckStatusResponseSchema + * @return CheckStatusResponseSchema * * @throws \RevoTale\CheckboxUA\Exception\ExportGoodsTaskStatusApiV1GoodsExportTaskStatusTaskIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetAllTaxesApiV1TaxGet.php b/src/Endpoint/GetAllTaxesApiV1TaxGet.php index fbc333e..d6731f6 100644 --- a/src/Endpoint/GetAllTaxesApiV1TaxGet.php +++ b/src/Endpoint/GetAllTaxesApiV1TaxGet.php @@ -65,7 +65,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetAllTaxesApiV1TaxGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCashRegisterApiV1CashRegistersCashRegisterIdGet.php b/src/Endpoint/GetCashRegisterApiV1CashRegistersCashRegisterIdGet.php index 9dd2ebf..22ddb1c 100644 --- a/src/Endpoint/GetCashRegisterApiV1CashRegistersCashRegisterIdGet.php +++ b/src/Endpoint/GetCashRegisterApiV1CashRegistersCashRegisterIdGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\DetailedCashRegisterModel + * @return DetailedCashRegisterModel * * @throws \RevoTale\CheckboxUA\Exception\GetCashRegisterApiV1CashRegistersCashRegisterIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCashRegisterInfoApiV1CashRegistersInfoGet.php b/src/Endpoint/GetCashRegisterInfoApiV1CashRegistersInfoGet.php index 2924bf0..83ae5fb 100644 --- a/src/Endpoint/GetCashRegisterInfoApiV1CashRegistersInfoGet.php +++ b/src/Endpoint/GetCashRegisterInfoApiV1CashRegistersInfoGet.php @@ -60,12 +60,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CashRegisterDeviceModel + * @return CashRegisterDeviceModel * * @throws \RevoTale\CheckboxUA\Exception\GetCashRegisterInfoApiV1CashRegistersInfoGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCashRegisterShiftsApiV1CashRegistersShiftsGet.php b/src/Endpoint/GetCashRegisterShiftsApiV1CashRegistersShiftsGet.php index b414d9b..862beb3 100644 --- a/src/Endpoint/GetCashRegisterShiftsApiV1CashRegistersShiftsGet.php +++ b/src/Endpoint/GetCashRegisterShiftsApiV1CashRegistersShiftsGet.php @@ -83,12 +83,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultShiftModel + * @return PaginatedResultShiftModel * * @throws \RevoTale\CheckboxUA\Exception\GetCashRegisterShiftsApiV1CashRegistersShiftsGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCashRegistersApiV1CashRegistersGet.php b/src/Endpoint/GetCashRegistersApiV1CashRegistersGet.php index 1e33647..0f4e168 100644 --- a/src/Endpoint/GetCashRegistersApiV1CashRegistersGet.php +++ b/src/Endpoint/GetCashRegistersApiV1CashRegistersGet.php @@ -82,12 +82,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModel + * @return PaginatedResultDetailedCashRegisterModel * * @throws \RevoTale\CheckboxUA\Exception\GetCashRegistersApiV1CashRegistersGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCashierProfileApiV1CashierMeGet.php b/src/Endpoint/GetCashierProfileApiV1CashierMeGet.php index 6bc86a4..05de96e 100644 --- a/src/Endpoint/GetCashierProfileApiV1CashierMeGet.php +++ b/src/Endpoint/GetCashierProfileApiV1CashierMeGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\DetailedCashierModel + * @return DetailedCashierModel * * @throws \RevoTale\CheckboxUA\Exception\GetCashierProfileApiV1CashierMeGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCashierShiftApiV1CashierShiftGet.php b/src/Endpoint/GetCashierShiftApiV1CashierShiftGet.php index f34bd95..8f285c3 100644 --- a/src/Endpoint/GetCashierShiftApiV1CashierShiftGet.php +++ b/src/Endpoint/GetCashierShiftApiV1CashierShiftGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashRegisterModel + * @return ShiftWithCashRegisterModel * * @throws \RevoTale\CheckboxUA\Exception\GetCashierShiftApiV1CashierShiftGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCurrencyRateApiV1CurrencyRateCurrencyCodeGet.php b/src/Endpoint/GetCurrencyRateApiV1CurrencyRateCurrencyCodeGet.php index 811ec54..a2f741a 100644 --- a/src/Endpoint/GetCurrencyRateApiV1CurrencyRateCurrencyCodeGet.php +++ b/src/Endpoint/GetCurrencyRateApiV1CurrencyRateCurrencyCodeGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CurrencyRateModel + * @return CurrencyRateModel * * @throws \RevoTale\CheckboxUA\Exception\GetCurrencyRateApiV1CurrencyRateCurrencyCodeGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCurrencyRatesApiV1CurrencyRateGet.php b/src/Endpoint/GetCurrencyRatesApiV1CurrencyRateGet.php index 578bdde..73b7868 100644 --- a/src/Endpoint/GetCurrencyRatesApiV1CurrencyRateGet.php +++ b/src/Endpoint/GetCurrencyRatesApiV1CurrencyRateGet.php @@ -81,7 +81,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetCurrencyRatesApiV1CurrencyRateGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCurrentOrganizationLogoApiV1OrganizationLogoPngGet.php b/src/Endpoint/GetCurrentOrganizationLogoApiV1OrganizationLogoPngGet.php index f92e7b0..a80852c 100644 --- a/src/Endpoint/GetCurrentOrganizationLogoApiV1OrganizationLogoPngGet.php +++ b/src/Endpoint/GetCurrentOrganizationLogoApiV1OrganizationLogoPngGet.php @@ -63,7 +63,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationLogoApiV1OrganizationLogoPngGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGet.php b/src/Endpoint/GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGet.php index f9e3da6..ce0c44f 100644 --- a/src/Endpoint/GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGet.php +++ b/src/Endpoint/GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGet.php @@ -57,12 +57,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OrganizationReceiptConfigSchema + * @return OrganizationReceiptConfigSchema * * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationReceiptSettingsApiV1OrganizationReceiptConfigGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGet.php b/src/Endpoint/GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGet.php index 72c6ad4..da1dea9 100644 --- a/src/Endpoint/GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGet.php +++ b/src/Endpoint/GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGet.php @@ -57,12 +57,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OrganizationBillingSchema + * @return OrganizationBillingSchema * * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationSmsBillingBalanceApiV1OrganizationSmsBillingGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet.php b/src/Endpoint/GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet.php index ced6989..8c99d16 100644 --- a/src/Endpoint/GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet.php +++ b/src/Endpoint/GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGet.php @@ -63,7 +63,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetCurrentOrganizationTextLogoApiV1OrganizationTextLogoPngGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetGoodApiV1GoodsGoodIdGet.php b/src/Endpoint/GetGoodApiV1GoodsGoodIdGet.php index ceafc1c..a4bcc4c 100644 --- a/src/Endpoint/GetGoodApiV1GoodsGoodIdGet.php +++ b/src/Endpoint/GetGoodApiV1GoodsGoodIdGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\SrsoSchemaGoodSchemaGoodModel + * @return SrsoSchemaGoodSchemaGoodModel * * @throws \RevoTale\CheckboxUA\Exception\GetGoodApiV1GoodsGoodIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetGoodsApiV1GoodsGet.php b/src/Endpoint/GetGoodsApiV1GoodsGet.php index b8c9dad..e2298e8 100644 --- a/src/Endpoint/GetGoodsApiV1GoodsGet.php +++ b/src/Endpoint/GetGoodsApiV1GoodsGet.php @@ -89,12 +89,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultGoodModel + * @return PaginatedResultGoodModel * * @throws \RevoTale\CheckboxUA\Exception\GetGoodsApiV1GoodsGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetIntegrationApiV1OrdersIntegrationGet.php b/src/Endpoint/GetIntegrationApiV1OrdersIntegrationGet.php index a7fa8bc..5b74fe4 100644 --- a/src/Endpoint/GetIntegrationApiV1OrdersIntegrationGet.php +++ b/src/Endpoint/GetIntegrationApiV1OrdersIntegrationGet.php @@ -59,12 +59,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\IntegrationInfoSchema + * @return IntegrationInfoSchema * * @throws \RevoTale\CheckboxUA\Exception\GetIntegrationApiV1OrdersIntegrationGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetOfflineCodesApiV1CashRegistersGetOfflineCodesGet.php b/src/Endpoint/GetOfflineCodesApiV1CashRegistersGetOfflineCodesGet.php index 2f88f2e..315990b 100644 --- a/src/Endpoint/GetOfflineCodesApiV1CashRegistersGetOfflineCodesGet.php +++ b/src/Endpoint/GetOfflineCodesApiV1CashRegistersGetOfflineCodesGet.php @@ -86,7 +86,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetOfflineCodesApiV1CashRegistersGetOfflineCodesGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet.php b/src/Endpoint/GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet.php index 962be9e..9282929 100644 --- a/src/Endpoint/GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet.php +++ b/src/Endpoint/GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGet.php @@ -60,12 +60,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OfflineCodesCountSchema + * @return OfflineCodesCountSchema * * @throws \RevoTale\CheckboxUA\Exception\GetOfflineCodesCountApiV1CashRegistersGetOfflineCodesCountGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetOfflineTimeApiV1CashRegistersGetOfflineTimeGet.php b/src/Endpoint/GetOfflineTimeApiV1CashRegistersGetOfflineTimeGet.php index 7974c9b..7f0b6fb 100644 --- a/src/Endpoint/GetOfflineTimeApiV1CashRegistersGetOfflineTimeGet.php +++ b/src/Endpoint/GetOfflineTimeApiV1CashRegistersGetOfflineTimeGet.php @@ -77,12 +77,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CashRegisterOfflineTime + * @return CashRegisterOfflineTime * * @throws \RevoTale\CheckboxUA\Exception\GetOfflineTimeApiV1CashRegistersGetOfflineTimeGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetOrderApiV1OrdersOrderIdGet.php b/src/Endpoint/GetOrderApiV1OrdersOrderIdGet.php index 4d706e6..db1615c 100644 --- a/src/Endpoint/GetOrderApiV1OrdersOrderIdGet.php +++ b/src/Endpoint/GetOrderApiV1OrdersOrderIdGet.php @@ -76,12 +76,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OrderModel + * @return OrderModel * * @throws \RevoTale\CheckboxUA\Exception\GetOrderApiV1OrdersOrderIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetOrdersApiV1OrdersGet.php b/src/Endpoint/GetOrdersApiV1OrdersGet.php index 71bc45a..714f3e7 100644 --- a/src/Endpoint/GetOrdersApiV1OrdersGet.php +++ b/src/Endpoint/GetOrdersApiV1OrdersGet.php @@ -87,12 +87,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultOrderModel + * @return PaginatedResultOrderModel * * @throws \RevoTale\CheckboxUA\Exception\GetOrdersApiV1OrdersGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetPeriodicalReportApiV1ReportsPeriodicalGet.php b/src/Endpoint/GetPeriodicalReportApiV1ReportsPeriodicalGet.php index 6e97d9b..f8ce1f8 100644 --- a/src/Endpoint/GetPeriodicalReportApiV1ReportsPeriodicalGet.php +++ b/src/Endpoint/GetPeriodicalReportApiV1ReportsPeriodicalGet.php @@ -92,7 +92,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetPeriodicalReportApiV1ReportsPeriodicalGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptApiV1ReceiptsReceiptIdGet.php b/src/Endpoint/GetReceiptApiV1ReceiptsReceiptIdGet.php index 1d56cc7..49ad13b 100644 --- a/src/Endpoint/GetReceiptApiV1ReceiptsReceiptIdGet.php +++ b/src/Endpoint/GetReceiptApiV1ReceiptsReceiptIdGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReceiptModel + * @return ReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\GetReceiptApiV1ReceiptsReceiptIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet.php b/src/Endpoint/GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet.php index c6ab13b..6340478 100644 --- a/src/Endpoint/GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet.php +++ b/src/Endpoint/GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGet.php @@ -89,7 +89,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReceiptHtmlApiV1ReceiptsReceiptIdHtmlGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptPdfApiV1ReceiptsReceiptIdPdfGet.php b/src/Endpoint/GetReceiptPdfApiV1ReceiptsReceiptIdPdfGet.php index bb53ed1..5db9c33 100644 --- a/src/Endpoint/GetReceiptPdfApiV1ReceiptsReceiptIdPdfGet.php +++ b/src/Endpoint/GetReceiptPdfApiV1ReceiptsReceiptIdPdfGet.php @@ -83,7 +83,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReceiptPdfApiV1ReceiptsReceiptIdPdfGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptPngApiV1ReceiptsReceiptIdPngGet.php b/src/Endpoint/GetReceiptPngApiV1ReceiptsReceiptIdPngGet.php index 3ec8e82..b58d29e 100644 --- a/src/Endpoint/GetReceiptPngApiV1ReceiptsReceiptIdPngGet.php +++ b/src/Endpoint/GetReceiptPngApiV1ReceiptsReceiptIdPngGet.php @@ -87,7 +87,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReceiptPngApiV1ReceiptsReceiptIdPngGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet.php b/src/Endpoint/GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet.php index 0a80d3e..883d2f2 100644 --- a/src/Endpoint/GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet.php +++ b/src/Endpoint/GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGet.php @@ -66,7 +66,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReceiptQrCodeImageApiV1ReceiptsReceiptIdQrcodeGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptTextApiV1ReceiptsReceiptIdTextGet.php b/src/Endpoint/GetReceiptTextApiV1ReceiptsReceiptIdTextGet.php index ae390ef..0112c8f 100644 --- a/src/Endpoint/GetReceiptTextApiV1ReceiptsReceiptIdTextGet.php +++ b/src/Endpoint/GetReceiptTextApiV1ReceiptsReceiptIdTextGet.php @@ -89,7 +89,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReceiptTextApiV1ReceiptsReceiptIdTextGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptXmlApiV1ReceiptsReceiptIdXmlGet.php b/src/Endpoint/GetReceiptXmlApiV1ReceiptsReceiptIdXmlGet.php index 057dfd4..a2ce36f 100644 --- a/src/Endpoint/GetReceiptXmlApiV1ReceiptsReceiptIdXmlGet.php +++ b/src/Endpoint/GetReceiptXmlApiV1ReceiptsReceiptIdXmlGet.php @@ -66,7 +66,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReceiptXmlApiV1ReceiptsReceiptIdXmlGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptsApiV1ReceiptsGet.php b/src/Endpoint/GetReceiptsApiV1ReceiptsGet.php index e6ca8d6..7831976 100644 --- a/src/Endpoint/GetReceiptsApiV1ReceiptsGet.php +++ b/src/Endpoint/GetReceiptsApiV1ReceiptsGet.php @@ -89,12 +89,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModel + * @return PaginatedResultReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\GetReceiptsApiV1ReceiptsGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReceiptsSearchApiV1ReceiptsSearchGet.php b/src/Endpoint/GetReceiptsSearchApiV1ReceiptsSearchGet.php index 3f32844..e2a3508 100644 --- a/src/Endpoint/GetReceiptsSearchApiV1ReceiptsSearchGet.php +++ b/src/Endpoint/GetReceiptsSearchApiV1ReceiptsSearchGet.php @@ -98,12 +98,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModel + * @return PaginatedResultReceiptModel * * @throws \RevoTale\CheckboxUA\Exception\GetReceiptsSearchApiV1ReceiptsSearchGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReportApiV1ReportsReportIdGet.php b/src/Endpoint/GetReportApiV1ReportsReportIdGet.php index 513c420..84bd22d 100644 --- a/src/Endpoint/GetReportApiV1ReportsReportIdGet.php +++ b/src/Endpoint/GetReportApiV1ReportsReportIdGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ReportModel + * @return ReportModel * * @throws \RevoTale\CheckboxUA\Exception\GetReportApiV1ReportsReportIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet.php b/src/Endpoint/GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet.php index 1221d5c..2bc1850 100644 --- a/src/Endpoint/GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet.php +++ b/src/Endpoint/GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGet.php @@ -59,12 +59,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema + * @return PublicReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\GetReportJsonByIdApiV1ExtendedReportsReportTaskIdReportJsonGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReportPngApiV1ReportsReportIdPngGet.php b/src/Endpoint/GetReportPngApiV1ReportsReportIdPngGet.php index f6accbc..cc6c930 100644 --- a/src/Endpoint/GetReportPngApiV1ReportsReportIdPngGet.php +++ b/src/Endpoint/GetReportPngApiV1ReportsReportIdPngGet.php @@ -85,7 +85,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReportPngApiV1ReportsReportIdPngGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGet.php b/src/Endpoint/GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGet.php index 6ca1298..35d0d9c 100644 --- a/src/Endpoint/GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGet.php +++ b/src/Endpoint/GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGet.php @@ -59,12 +59,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema + * @return PublicReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\GetReportTaskByIdApiV1ExtendedReportsReportTaskIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReportTextApiV1ReportsReportIdTextGet.php b/src/Endpoint/GetReportTextApiV1ReportsReportIdTextGet.php index 9abd805..d55b7d7 100644 --- a/src/Endpoint/GetReportTextApiV1ReportsReportIdTextGet.php +++ b/src/Endpoint/GetReportTextApiV1ReportsReportIdTextGet.php @@ -89,7 +89,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GetReportTextApiV1ReportsReportIdTextGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet.php b/src/Endpoint/GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet.php index 8ca4971..d3c66fb 100644 --- a/src/Endpoint/GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet.php +++ b/src/Endpoint/GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGet.php @@ -59,12 +59,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema + * @return PublicReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\GetReportXlsxByIdApiV1ExtendedReportsReportTaskIdReportXlsxGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetReportsApiV1ReportsGet.php b/src/Endpoint/GetReportsApiV1ReportsGet.php index 19108be..23ef1d4 100644 --- a/src/Endpoint/GetReportsApiV1ReportsGet.php +++ b/src/Endpoint/GetReportsApiV1ReportsGet.php @@ -90,12 +90,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReportModel + * @return PaginatedResultReportModel * * @throws \RevoTale\CheckboxUA\Exception\GetReportsApiV1ReportsGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetSearchReportsApiV1ReportsSearchGet.php b/src/Endpoint/GetSearchReportsApiV1ReportsSearchGet.php index 83eb0d9..cfbd014 100644 --- a/src/Endpoint/GetSearchReportsApiV1ReportsSearchGet.php +++ b/src/Endpoint/GetSearchReportsApiV1ReportsSearchGet.php @@ -92,12 +92,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultReportModel + * @return PaginatedResultReportModel * * @throws \RevoTale\CheckboxUA\Exception\GetSearchReportsApiV1ReportsSearchGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetShiftApiV1ShiftsShiftIdGet.php b/src/Endpoint/GetShiftApiV1ShiftsShiftIdGet.php index db1ecf4..10c61b8 100644 --- a/src/Endpoint/GetShiftApiV1ShiftsShiftIdGet.php +++ b/src/Endpoint/GetShiftApiV1ShiftsShiftIdGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister + * @return ShiftWithCashierAndCashRegister * * @throws \RevoTale\CheckboxUA\Exception\GetShiftApiV1ShiftsShiftIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetShiftsApiV1ShiftsGet.php b/src/Endpoint/GetShiftsApiV1ShiftsGet.php index 5f75f4c..d7889c0 100644 --- a/src/Endpoint/GetShiftsApiV1ShiftsGet.php +++ b/src/Endpoint/GetShiftsApiV1ShiftsGet.php @@ -86,12 +86,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModel + * @return PaginatedResultShiftWithCashRegisterModel * * @throws \RevoTale\CheckboxUA\Exception\GetShiftsApiV1ShiftsGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetTransactionApiV1TransactionsTransactionIdGet.php b/src/Endpoint/GetTransactionApiV1TransactionsTransactionIdGet.php index 19f7f79..bc18987 100644 --- a/src/Endpoint/GetTransactionApiV1TransactionsTransactionIdGet.php +++ b/src/Endpoint/GetTransactionApiV1TransactionsTransactionIdGet.php @@ -59,12 +59,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\TransactionModel + * @return TransactionModel * * @throws \RevoTale\CheckboxUA\Exception\GetTransactionApiV1TransactionsTransactionIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetTransactionsApiV1TransactionsGet.php b/src/Endpoint/GetTransactionsApiV1TransactionsGet.php index cf30067..59569ea 100644 --- a/src/Endpoint/GetTransactionsApiV1TransactionsGet.php +++ b/src/Endpoint/GetTransactionsApiV1TransactionsGet.php @@ -82,12 +82,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PaginatedResultShortTransaction + * @return PaginatedResultShortTransaction * * @throws \RevoTale\CheckboxUA\Exception\GetTransactionsApiV1TransactionsGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetWebhookInfoApiV1WebhookGet.php b/src/Endpoint/GetWebhookInfoApiV1WebhookGet.php index 5102ee8..b108ece 100644 --- a/src/Endpoint/GetWebhookInfoApiV1WebhookGet.php +++ b/src/Endpoint/GetWebhookInfoApiV1WebhookGet.php @@ -60,12 +60,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\WebhookInfoSchema + * @return WebhookInfoSchema * * @throws \RevoTale\CheckboxUA\Exception\GetWebhookInfoApiV1WebhookGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GoOfflineActionApiV1CashRegistersGoOfflinePost.php b/src/Endpoint/GoOfflineActionApiV1CashRegistersGoOfflinePost.php index 1a4ef45..4f88a5a 100644 --- a/src/Endpoint/GoOfflineActionApiV1CashRegistersGoOfflinePost.php +++ b/src/Endpoint/GoOfflineActionApiV1CashRegistersGoOfflinePost.php @@ -24,7 +24,7 @@ class GoOfflineActionApiV1CashRegistersGoOfflinePost extends \RevoTale\CheckboxU * @var string $X-License-Key * } */ - public function __construct(\RevoTale\CheckboxUA\Model\GoOfflinePayload $requestBody = null, array $headerParameters = []) + public function __construct(?\RevoTale\CheckboxUA\Model\GoOfflinePayload $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -74,7 +74,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GoOfflineActionApiV1CashRegistersGoOfflinePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GoOnlineActionApiV1CashRegistersGoOnlinePost.php b/src/Endpoint/GoOnlineActionApiV1CashRegistersGoOnlinePost.php index d65d305..afcd1a9 100644 --- a/src/Endpoint/GoOnlineActionApiV1CashRegistersGoOnlinePost.php +++ b/src/Endpoint/GoOnlineActionApiV1CashRegistersGoOnlinePost.php @@ -69,7 +69,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\GoOnlineActionApiV1CashRegistersGoOnlinePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GoodsReportApiV1ExtendedReportsGoodsPost.php b/src/Endpoint/GoodsReportApiV1ExtendedReportsGoodsPost.php index dc7a01b..b6a11d0 100644 --- a/src/Endpoint/GoodsReportApiV1ExtendedReportsGoodsPost.php +++ b/src/Endpoint/GoodsReportApiV1ExtendedReportsGoodsPost.php @@ -62,12 +62,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\PublicReportTaskSchema + * @return PublicReportTaskSchema * * @throws \RevoTale\CheckboxUA\Exception\GoodsReportApiV1ExtendedReportsGoodsPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost.php b/src/Endpoint/ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost.php index 3dcfb5c..06cb57d 100644 --- a/src/Endpoint/ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost.php +++ b/src/Endpoint/ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPost.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema + * @return OperationBaseResponseSchema * * @throws \RevoTale\CheckboxUA\Exception\ImportGoodsApplyChangesApiV1GoodsImportApplyChangesTaskIdPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImportGoodsFromFileApiV1GoodsImportUploadPost.php b/src/Endpoint/ImportGoodsFromFileApiV1GoodsImportUploadPost.php index 69777f2..d5addea 100644 --- a/src/Endpoint/ImportGoodsFromFileApiV1GoodsImportUploadPost.php +++ b/src/Endpoint/ImportGoodsFromFileApiV1GoodsImportUploadPost.php @@ -90,12 +90,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema + * @return OperationBaseResponseSchema * * @throws \RevoTale\CheckboxUA\Exception\ImportGoodsFromFileApiV1GoodsImportUploadPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet.php b/src/Endpoint/ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet.php index 4e6e761..7f21bb5 100644 --- a/src/Endpoint/ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet.php +++ b/src/Endpoint/ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGet.php @@ -61,12 +61,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CheckStatusResponseSchema + * @return CheckStatusResponseSchema * * @throws \RevoTale\CheckboxUA\Exception\ImportGoodsTaskStatusApiV1GoodsImportTaskStatusTaskIdGetUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PingTaxServiceActionApiV1CashRegistersPingTaxServicePost.php b/src/Endpoint/PingTaxServiceActionApiV1CashRegistersPingTaxServicePost.php index f8c3bcc..49885fb 100644 --- a/src/Endpoint/PingTaxServiceActionApiV1CashRegistersPingTaxServicePost.php +++ b/src/Endpoint/PingTaxServiceActionApiV1CashRegistersPingTaxServicePost.php @@ -65,7 +65,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\PingTaxServiceActionApiV1CashRegistersPingTaxServicePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/RunOrdersSynchronizationApiV1OrdersSyncPost.php b/src/Endpoint/RunOrdersSynchronizationApiV1OrdersSyncPost.php index 27c1a76..3b5855d 100644 --- a/src/Endpoint/RunOrdersSynchronizationApiV1OrdersSyncPost.php +++ b/src/Endpoint/RunOrdersSynchronizationApiV1OrdersSyncPost.php @@ -62,7 +62,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\RunOrdersSynchronizationApiV1OrdersSyncPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost.php b/src/Endpoint/SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost.php index 2e13a71..0448556 100644 --- a/src/Endpoint/SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost.php +++ b/src/Endpoint/SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPost.php @@ -70,7 +70,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\SendReceiptToEmailApiV1ReceiptsReceiptIdEmailPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost.php b/src/Endpoint/SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost.php index 2ca0f96..05ba786 100644 --- a/src/Endpoint/SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost.php +++ b/src/Endpoint/SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPost.php @@ -73,7 +73,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\SendReceiptViaSmsApiV1ReceiptsReceiptIdSmsPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SetIntegrationApiV1OrdersIntegrationPost.php b/src/Endpoint/SetIntegrationApiV1OrdersIntegrationPost.php index 5c634e8..5b871bf 100644 --- a/src/Endpoint/SetIntegrationApiV1OrdersIntegrationPost.php +++ b/src/Endpoint/SetIntegrationApiV1OrdersIntegrationPost.php @@ -93,12 +93,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\IntegrationInfoResponseSchema + * @return IntegrationInfoResponseSchema * * @throws \RevoTale\CheckboxUA\Exception\SetIntegrationApiV1OrdersIntegrationPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SetWebhookApiV1WebhookPost.php b/src/Endpoint/SetWebhookApiV1WebhookPost.php index 26fd3d8..40acc78 100644 --- a/src/Endpoint/SetWebhookApiV1WebhookPost.php +++ b/src/Endpoint/SetWebhookApiV1WebhookPost.php @@ -97,12 +97,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\WebhookInfoResponseSchema + * @return WebhookInfoResponseSchema * * @throws \RevoTale\CheckboxUA\Exception\SetWebhookApiV1WebhookPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SetupCurrencyRatesApiV1CurrencyRateSetupPost.php b/src/Endpoint/SetupCurrencyRatesApiV1CurrencyRateSetupPost.php index 58bfcf2..11ee0a7 100644 --- a/src/Endpoint/SetupCurrencyRatesApiV1CurrencyRateSetupPost.php +++ b/src/Endpoint/SetupCurrencyRatesApiV1CurrencyRateSetupPost.php @@ -71,7 +71,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\SetupCurrencyRatesApiV1CurrencyRateSetupPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SignInCashierApiV1CashierSigninPost.php b/src/Endpoint/SignInCashierApiV1CashierSigninPost.php index a64b5da..e0c5eec 100644 --- a/src/Endpoint/SignInCashierApiV1CashierSigninPost.php +++ b/src/Endpoint/SignInCashierApiV1CashierSigninPost.php @@ -66,13 +66,13 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CashierAccessTokenResponseModel + * @return CashierAccessTokenResponseModel * * @throws \RevoTale\CheckboxUA\Exception\SignInCashierApiV1CashierSigninPostForbiddenException * @throws \RevoTale\CheckboxUA\Exception\SignInCashierApiV1CashierSigninPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SignInCashierViaPinCodeApiV1CashierSigninPinCodePost.php b/src/Endpoint/SignInCashierViaPinCodeApiV1CashierSigninPinCodePost.php index 318d8fe..50748ac 100644 --- a/src/Endpoint/SignInCashierViaPinCodeApiV1CashierSigninPinCodePost.php +++ b/src/Endpoint/SignInCashierViaPinCodeApiV1CashierSigninPinCodePost.php @@ -67,13 +67,13 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\CashierAccessTokenResponseModel + * @return CashierAccessTokenResponseModel * * @throws \RevoTale\CheckboxUA\Exception\SignInCashierViaPinCodeApiV1CashierSigninPinCodePostForbiddenException * @throws \RevoTale\CheckboxUA\Exception\SignInCashierViaPinCodeApiV1CashierSigninPinCodePostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SignOutCashierApiV1CashierSignoutPost.php b/src/Endpoint/SignOutCashierApiV1CashierSignoutPost.php index 628ae5f..eb54e76 100644 --- a/src/Endpoint/SignOutCashierApiV1CashierSignoutPost.php +++ b/src/Endpoint/SignOutCashierApiV1CashierSignoutPost.php @@ -66,7 +66,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \RevoTale\CheckboxUA\Exception\SignOutCashierApiV1CashierSignoutPostUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch.php b/src/Endpoint/UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch.php index c241704..05956fc 100644 --- a/src/Endpoint/UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch.php +++ b/src/Endpoint/UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatch.php @@ -75,12 +75,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\OrderModel + * @return OrderModel * * @throws \RevoTale\CheckboxUA\Exception\UpdateCustomOrderStatusApiV1OrdersCustomStatusOrderIdPatchUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/UpdateTransactionApiV1TransactionsTransactionIdPatch.php b/src/Endpoint/UpdateTransactionApiV1TransactionsTransactionIdPatch.php index 31c3ea6..70ae117 100644 --- a/src/Endpoint/UpdateTransactionApiV1TransactionsTransactionIdPatch.php +++ b/src/Endpoint/UpdateTransactionApiV1TransactionsTransactionIdPatch.php @@ -66,12 +66,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * @return \RevoTale\CheckboxUA\Model\TransactionModel + * @return TransactionModel * * @throws \RevoTale\CheckboxUA\Exception\UpdateTransactionApiV1TransactionsTransactionIdPatchUnprocessableEntityException * @throws \RevoTale\CheckboxUA\Exception\UnexpectedStatusCodeException */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Normalizer/AddressModelNormalizer.php b/src/Normalizer/AddressModelNormalizer.php index fb82d25..92b3c34 100644 --- a/src/Normalizer/AddressModelNormalizer.php +++ b/src/Normalizer/AddressModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\AddressModel; + return is_object($data) && $data instanceof AddressModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\AddressModel(); + $object = new AddressModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -79,10 +79,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['address_type'] = $object->getAddressType(); @@ -111,7 +108,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [AddressModel::class => false]; } diff --git a/src/Normalizer/BalanceModelNormalizer.php b/src/Normalizer/BalanceModelNormalizer.php index cb1a7f6..0e626d0 100644 --- a/src/Normalizer/BalanceModelNormalizer.php +++ b/src/Normalizer/BalanceModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BalanceModel; + return is_object($data) && $data instanceof BalanceModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -96,10 +96,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['initial'] = $object->getInitial(); @@ -128,7 +125,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [BalanceModel::class => false]; } diff --git a/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php b/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php index 041a765..54b8aaf 100644 --- a/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php +++ b/src/Normalizer/BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BodyImportGoodsFromFileApiV1GoodsImportUploadPost; + return is_object($data) && $data instanceof BodyImportGoodsFromFileApiV1GoodsImportUploadPost; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\BodyImportGoodsFromFileApiV1GoodsImportUploadPost(); + $object = new BodyImportGoodsFromFileApiV1GoodsImportUploadPost(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['file'] = $object->getFile(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [BodyImportGoodsFromFileApiV1GoodsImportUploadPost::class => false]; } diff --git a/src/Normalizer/BonusPayloadNormalizer.php b/src/Normalizer/BonusPayloadNormalizer.php index 8bfe582..dd310ea 100644 --- a/src/Normalizer/BonusPayloadNormalizer.php +++ b/src/Normalizer/BonusPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BonusPayload; + return is_object($data) && $data instanceof BonusPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\BonusPayload(); + $object = new BonusPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['bonus_card'] = $object->getBonusCard(); @@ -83,7 +80,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [BonusPayload::class => false]; } diff --git a/src/Normalizer/BranchModelNormalizer.php b/src/Normalizer/BranchModelNormalizer.php index 8bc8666..18e4ea9 100644 --- a/src/Normalizer/BranchModelNormalizer.php +++ b/src/Normalizer/BranchModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\BranchModel; + return is_object($data) && $data instanceof BranchModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\BranchModel(); + $object = new BranchModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -76,10 +76,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -99,7 +96,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [BranchModel::class => false]; } diff --git a/src/Normalizer/CalculatedDiscountPayloadNormalizer.php b/src/Normalizer/CalculatedDiscountPayloadNormalizer.php index 6da5b3d..cf4d89e 100644 --- a/src/Normalizer/CalculatedDiscountPayloadNormalizer.php +++ b/src/Normalizer/CalculatedDiscountPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedDiscountPayload; + return is_object($data) && $data instanceof CalculatedDiscountPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CalculatedDiscountPayload(); + $object = new CalculatedDiscountPayload(); if (array_key_exists('value', $data) && is_int($data['value'])) { $data['value'] = (float) $data['value']; } @@ -90,10 +90,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['type'] = $object->getType(); @@ -121,7 +118,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CalculatedDiscountPayload::class => false]; } diff --git a/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php b/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php index 096a405..f23f478 100644 --- a/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php +++ b/src/Normalizer/CalculatedGoodDetailsPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedGoodDetailsPayload; + return is_object($data) && $data instanceof CalculatedGoodDetailsPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CalculatedGoodDetailsPayload(); + $object = new CalculatedGoodDetailsPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -91,10 +91,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -131,7 +128,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CalculatedGoodDetailsPayload::class => false]; } diff --git a/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php b/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php index 3178845..bb4b8cc 100644 --- a/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php +++ b/src/Normalizer/CalculatedGoodItemPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedGoodItemPayload; + return is_object($data) && $data instanceof CalculatedGoodItemPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CalculatedGoodItemPayload(); + $object = new CalculatedGoodItemPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -91,10 +91,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['good'] = $this->normalizer->normalize($object->getGood(), 'json', $context); @@ -130,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CalculatedGoodItemPayload::class => false]; } diff --git a/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php b/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php index 56bdb7e..985f920 100644 --- a/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php +++ b/src/Normalizer/CalculatedGoodTaxPayloadNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedGoodTaxPayload; + return is_object($data) && $data instanceof CalculatedGoodTaxPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CalculatedGoodTaxPayload(); + $object = new CalculatedGoodTaxPayload(); if (array_key_exists('rate', $data) && is_int($data['rate'])) { $data['rate'] = (float) $data['rate']; } @@ -101,10 +101,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -127,7 +124,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CalculatedGoodTaxPayload::class => false]; } diff --git a/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php b/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php index c498256..6fa9932 100644 --- a/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php +++ b/src/Normalizer/CalculatedReceiptSellPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedReceiptSellPayload; + return is_object($data) && $data instanceof CalculatedReceiptSellPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CalculatedReceiptSellPayload(); + $object = new CalculatedReceiptSellPayload(); if (array_key_exists('total_payment', $data) && is_int($data['total_payment'])) { $data['total_payment'] = (float) $data['total_payment']; } @@ -184,10 +184,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -281,7 +278,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CalculatedReceiptSellPayload::class => false]; } diff --git a/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php b/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php index 961c6e6..f5fb58b 100644 --- a/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php +++ b/src/Normalizer/CalculatedReceiptTaxPayloadNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CalculatedReceiptTaxPayload; + return is_object($data) && $data instanceof CalculatedReceiptTaxPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CalculatedReceiptTaxPayload(); + $object = new CalculatedReceiptTaxPayload(); if (array_key_exists('rate', $data) && is_int($data['rate'])) { $data['rate'] = (float) $data['rate']; } @@ -123,10 +123,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -161,7 +158,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CalculatedReceiptTaxPayload::class => false]; } diff --git a/src/Normalizer/CardPaymentPayloadNormalizer.php b/src/Normalizer/CardPaymentPayloadNormalizer.php index c6db35e..2cccf9f 100644 --- a/src/Normalizer/CardPaymentPayloadNormalizer.php +++ b/src/Normalizer/CardPaymentPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CardPaymentPayload; + return is_object($data) && $data instanceof CardPaymentPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CardPaymentPayload(); + $object = new CardPaymentPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -127,10 +127,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { @@ -197,7 +194,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CardPaymentPayload::class => false]; } diff --git a/src/Normalizer/CashPaymentPayloadNormalizer.php b/src/Normalizer/CashPaymentPayloadNormalizer.php index 9827a42..b2e0d27 100644 --- a/src/Normalizer/CashPaymentPayloadNormalizer.php +++ b/src/Normalizer/CashPaymentPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashPaymentPayload; + return is_object($data) && $data instanceof CashPaymentPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashPaymentPayload(); + $object = new CashPaymentPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -67,10 +67,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { @@ -92,7 +89,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashPaymentPayload::class => false]; } diff --git a/src/Normalizer/CashRegisterDeviceModelNormalizer.php b/src/Normalizer/CashRegisterDeviceModelNormalizer.php index a69cab9..f5f31a6 100644 --- a/src/Normalizer/CashRegisterDeviceModelNormalizer.php +++ b/src/Normalizer/CashRegisterDeviceModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterDeviceModel; + return is_object($data) && $data instanceof CashRegisterDeviceModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashRegisterDeviceModel(); + $object = new CashRegisterDeviceModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -116,10 +116,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -157,7 +154,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashRegisterDeviceModel::class => false]; } diff --git a/src/Normalizer/CashRegisterModelNormalizer.php b/src/Normalizer/CashRegisterModelNormalizer.php index d9105d2..3864f2e 100644 --- a/src/Normalizer/CashRegisterModelNormalizer.php +++ b/src/Normalizer/CashRegisterModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterModel; + return is_object($data) && $data instanceof CashRegisterModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -61,9 +61,9 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } if (array_key_exists('updated_at', $data)) { $updatedAt = null; - if ($data['updated_at'] !== null) { + if (null !== $data['updated_at']) { $updatedAt = DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['updated_at']); - if ($updatedAt === false) { + if (false === $updatedAt) { $updatedAt = null; } } @@ -83,10 +83,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -108,7 +105,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashRegisterModel::class => false]; } diff --git a/src/Normalizer/CashRegisterOfflineTimeNormalizer.php b/src/Normalizer/CashRegisterOfflineTimeNormalizer.php index 744d7bb..df3fec2 100644 --- a/src/Normalizer/CashRegisterOfflineTimeNormalizer.php +++ b/src/Normalizer/CashRegisterOfflineTimeNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterOfflineTime; + return is_object($data) && $data instanceof CashRegisterOfflineTime; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashRegisterOfflineTime(); + $object = new CashRegisterOfflineTime(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('status') && null !== $object->getStatus()) { @@ -88,7 +85,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashRegisterOfflineTime::class => false]; } diff --git a/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php b/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php index 9b4a7c5..cd53d9f 100644 --- a/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php +++ b/src/Normalizer/CashRegisterOfflineTimeSessionNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterOfflineTimeSession; + return is_object($data) && $data instanceof CashRegisterOfflineTimeSession; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashRegisterOfflineTimeSession(); + $object = new CashRegisterOfflineTimeSession(); if (array_key_exists('duration', $data) && is_int($data['duration'])) { $data['duration'] = (float) $data['duration']; } @@ -68,10 +68,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('start') && null !== $object->getStart()) { @@ -92,7 +89,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashRegisterOfflineTimeSession::class => false]; } diff --git a/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php b/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php index e1f96cb..f9225a1 100644 --- a/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php +++ b/src/Normalizer/CashRegisterOfflineTimeStatusNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashRegisterOfflineTimeStatus; + return is_object($data) && $data instanceof CashRegisterOfflineTimeStatus; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashRegisterOfflineTimeStatus(); + $object = new CashRegisterOfflineTimeStatus(); if (array_key_exists('current', $data) && is_int($data['current'])) { $data['current'] = (float) $data['current']; } @@ -66,10 +66,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('current') && null !== $object->getCurrent()) { @@ -87,7 +84,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashRegisterOfflineTimeStatus::class => false]; } diff --git a/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php b/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php index 82b4e5f..5caab9b 100644 --- a/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php +++ b/src/Normalizer/CashWithdrawalReceiptPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashWithdrawalReceiptPayload; + return is_object($data) && $data instanceof CashWithdrawalReceiptPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashWithdrawalReceiptPayload(); + $object = new CashWithdrawalReceiptPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -104,10 +104,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -157,7 +154,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashWithdrawalReceiptPayload::class => false]; } diff --git a/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php b/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php index f075f3d..776dfc0 100644 --- a/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php +++ b/src/Normalizer/CashierAccessTokenResponseModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierAccessTokenResponseModel; + return is_object($data) && $data instanceof CashierAccessTokenResponseModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashierAccessTokenResponseModel(); + $object = new CashierAccessTokenResponseModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { @@ -85,7 +82,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashierAccessTokenResponseModel::class => false]; } diff --git a/src/Normalizer/CashierModelNormalizer.php b/src/Normalizer/CashierModelNormalizer.php index 1a7a4fb..a984e53 100644 --- a/src/Normalizer/CashierModelNormalizer.php +++ b/src/Normalizer/CashierModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierModel; + return is_object($data) && $data instanceof CashierModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -69,14 +69,14 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } if (array_key_exists('created_at', $data)) { $createdAt = DateTime::createFromFormat('Y-m-d\\TH:i:s.uP', $data['created_at']); - $object->setCreatedAt($createdAt === false? new DateTime() :$createdAt); + $object->setCreatedAt(false === $createdAt ? new DateTime() : $createdAt); unset($data['created_at']); } if (array_key_exists('updated_at', $data)) { $updatedAt = null; - if ($data['updated_at'] !== null) { + if (null !== $data['updated_at']) { $updatedAt = DateTime::createFromFormat('Y-m-d\\TH:i:s.uP', $data['updated_at']); - if ($updatedAt === false) { + if (false === $updatedAt) { $updatedAt = null; } } @@ -100,10 +100,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -133,7 +130,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashierModel::class => false]; } diff --git a/src/Normalizer/CashierPermissionsModelNormalizer.php b/src/Normalizer/CashierPermissionsModelNormalizer.php index afe9937..79b819d 100644 --- a/src/Normalizer/CashierPermissionsModelNormalizer.php +++ b/src/Normalizer/CashierPermissionsModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierPermissionsModel; + return is_object($data) && $data instanceof CashierPermissionsModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashierPermissionsModel(); + $object = new CashierPermissionsModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -123,10 +123,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('orders') && null !== $object->getOrders()) { @@ -192,7 +189,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashierPermissionsModel::class => false]; } diff --git a/src/Normalizer/CashierSignInNormalizer.php b/src/Normalizer/CashierSignInNormalizer.php index 89878e3..bd14291 100644 --- a/src/Normalizer/CashierSignInNormalizer.php +++ b/src/Normalizer/CashierSignInNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierSignIn; + return is_object($data) && $data instanceof CashierSignIn; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashierSignIn(); + $object = new CashierSignIn(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['login'] = $object->getLogin(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashierSignIn::class => false]; } diff --git a/src/Normalizer/CashierSignInPinCodeNormalizer.php b/src/Normalizer/CashierSignInPinCodeNormalizer.php index c903939..95bdf61 100644 --- a/src/Normalizer/CashierSignInPinCodeNormalizer.php +++ b/src/Normalizer/CashierSignInPinCodeNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierSignInPinCode; + return is_object($data) && $data instanceof CashierSignInPinCode; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashierSignInPinCode(); + $object = new CashierSignInPinCode(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['pin_code'] = $object->getPinCode(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashierSignInPinCode::class => false]; } diff --git a/src/Normalizer/CashierSignatureStatusNormalizer.php b/src/Normalizer/CashierSignatureStatusNormalizer.php index d2977c4..cb04781 100644 --- a/src/Normalizer/CashierSignatureStatusNormalizer.php +++ b/src/Normalizer/CashierSignatureStatusNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CashierSignatureStatus; + return is_object($data) && $data instanceof CashierSignatureStatus; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CashierSignatureStatus(); + $object = new CashierSignatureStatus(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['online'] = $object->getOnline(); @@ -81,7 +78,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CashierSignatureStatus::class => false]; } diff --git a/src/Normalizer/CheckStatusResponseSchemaNormalizer.php b/src/Normalizer/CheckStatusResponseSchemaNormalizer.php index 0481049..f5dea01 100644 --- a/src/Normalizer/CheckStatusResponseSchemaNormalizer.php +++ b/src/Normalizer/CheckStatusResponseSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CheckStatusResponseSchema; + return is_object($data) && $data instanceof CheckStatusResponseSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CheckStatusResponseSchema(); + $object = new CheckStatusResponseSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -79,10 +79,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['task_id'] = $object->getTaskId(); @@ -112,7 +109,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CheckStatusResponseSchema::class => false]; } diff --git a/src/Normalizer/CloseShiftPayloadNormalizer.php b/src/Normalizer/CloseShiftPayloadNormalizer.php index 66595b5..45ffefe 100644 --- a/src/Normalizer/CloseShiftPayloadNormalizer.php +++ b/src/Normalizer/CloseShiftPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CloseShiftPayload; + return is_object($data) && $data instanceof CloseShiftPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CloseShiftPayload(); + $object = new CloseShiftPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -68,10 +68,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('skipClientNameCheck') && null !== $object->getSkipClientNameCheck()) { @@ -95,7 +92,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CloseShiftPayload::class => false]; } diff --git a/src/Normalizer/CloseShiftPayloadReportNormalizer.php b/src/Normalizer/CloseShiftPayloadReportNormalizer.php index 11150cb..911bb82 100644 --- a/src/Normalizer/CloseShiftPayloadReportNormalizer.php +++ b/src/Normalizer/CloseShiftPayloadReportNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CloseShiftPayloadReport; + return is_object($data) && $data instanceof CloseShiftPayloadReport; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -128,10 +128,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -190,7 +187,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CloseShiftPayloadReport::class => false]; } diff --git a/src/Normalizer/CreateOrderModelNormalizer.php b/src/Normalizer/CreateOrderModelNormalizer.php index c8af06a..853baf6 100644 --- a/src/Normalizer/CreateOrderModelNormalizer.php +++ b/src/Normalizer/CreateOrderModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CreateOrderModel; + return is_object($data) && $data instanceof CreateOrderModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CreateOrderModel(); + $object = new CreateOrderModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -87,10 +87,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -127,7 +124,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CreateOrderModel::class => false]; } diff --git a/src/Normalizer/CreateShiftPayloadNormalizer.php b/src/Normalizer/CreateShiftPayloadNormalizer.php index e4ceeda..98a6894 100644 --- a/src/Normalizer/CreateShiftPayloadNormalizer.php +++ b/src/Normalizer/CreateShiftPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CreateShiftPayload; + return is_object($data) && $data instanceof CreateShiftPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CreateShiftPayload(); + $object = new CreateShiftPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -64,10 +64,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -88,7 +85,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CreateShiftPayload::class => false]; } diff --git a/src/Normalizer/CurrencyExchangePayloadNormalizer.php b/src/Normalizer/CurrencyExchangePayloadNormalizer.php index 8a95943..d31337c 100644 --- a/src/Normalizer/CurrencyExchangePayloadNormalizer.php +++ b/src/Normalizer/CurrencyExchangePayloadNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyExchangePayload; + return is_object($data) && $data instanceof CurrencyExchangePayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CurrencyExchangePayload(); + $object = new CurrencyExchangePayload(); if (array_key_exists('commission', $data) && is_int($data['commission'])) { $data['commission'] = (float) $data['commission']; } @@ -104,10 +104,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -153,7 +150,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CurrencyExchangePayload::class => false]; } diff --git a/src/Normalizer/CurrencyExchangeSchemaNormalizer.php b/src/Normalizer/CurrencyExchangeSchemaNormalizer.php index bc6383a..bf18edc 100644 --- a/src/Normalizer/CurrencyExchangeSchemaNormalizer.php +++ b/src/Normalizer/CurrencyExchangeSchemaNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyExchangeSchema; + return is_object($data) && $data instanceof CurrencyExchangeSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CurrencyExchangeSchema(); + $object = new CurrencyExchangeSchema(); if (array_key_exists('commission', $data) && is_int($data['commission'])) { $data['commission'] = (float) $data['commission']; } @@ -86,10 +86,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('sell') && null !== $object->getSell()) { @@ -120,7 +117,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CurrencyExchangeSchema::class => false]; } diff --git a/src/Normalizer/CurrencyPayloadNormalizer.php b/src/Normalizer/CurrencyPayloadNormalizer.php index 9783233..c0188b1 100644 --- a/src/Normalizer/CurrencyPayloadNormalizer.php +++ b/src/Normalizer/CurrencyPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyPayload; + return is_object($data) && $data instanceof CurrencyPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CurrencyPayload(); + $object = new CurrencyPayload(); if (array_key_exists('value', $data) && is_int($data['value'])) { $data['value'] = (float) $data['value']; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['currency'] = $object->getCurrency(); @@ -82,7 +79,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CurrencyPayload::class => false]; } diff --git a/src/Normalizer/CurrencyRateModelNormalizer.php b/src/Normalizer/CurrencyRateModelNormalizer.php index 44a5852..8b80ac0 100644 --- a/src/Normalizer/CurrencyRateModelNormalizer.php +++ b/src/Normalizer/CurrencyRateModelNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyRateModel; + return is_object($data) && $data instanceof CurrencyRateModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CurrencyRateModel(); + $object = new CurrencyRateModel(); if (array_key_exists('sell', $data) && is_int($data['sell'])) { $data['sell'] = (float) $data['sell']; } @@ -106,10 +106,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -138,7 +135,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CurrencyRateModel::class => false]; } diff --git a/src/Normalizer/CurrencyRatePayloadNormalizer.php b/src/Normalizer/CurrencyRatePayloadNormalizer.php index b968d73..1393f0f 100644 --- a/src/Normalizer/CurrencyRatePayloadNormalizer.php +++ b/src/Normalizer/CurrencyRatePayloadNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencyRatePayload; + return is_object($data) && $data instanceof CurrencyRatePayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CurrencyRatePayload(); + $object = new CurrencyRatePayload(); if (array_key_exists('sell', $data) && is_int($data['sell'])) { $data['sell'] = (float) $data['sell']; } @@ -90,10 +90,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -118,7 +115,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CurrencyRatePayload::class => false]; } diff --git a/src/Normalizer/CurrencySchemaNormalizer.php b/src/Normalizer/CurrencySchemaNormalizer.php index c62b093..bd41a56 100644 --- a/src/Normalizer/CurrencySchemaNormalizer.php +++ b/src/Normalizer/CurrencySchemaNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\CurrencySchema; + return is_object($data) && $data instanceof CurrencySchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\CurrencySchema(); + $object = new CurrencySchema(); if (array_key_exists('value', $data) && is_int($data['value'])) { $data['value'] = (float) $data['value']; } @@ -67,10 +67,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['currency'] = $object->getCurrency(); @@ -87,7 +84,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [CurrencySchema::class => false]; } diff --git a/src/Normalizer/DailyCashFlowPayloadNormalizer.php b/src/Normalizer/DailyCashFlowPayloadNormalizer.php index 100b2a2..bbeb5a6 100644 --- a/src/Normalizer/DailyCashFlowPayloadNormalizer.php +++ b/src/Normalizer/DailyCashFlowPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DailyCashFlowPayload; + return is_object($data) && $data instanceof DailyCashFlowPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DailyCashFlowPayload(); + $object = new DailyCashFlowPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -72,10 +72,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d'); @@ -100,7 +97,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DailyCashFlowPayload::class => false]; } diff --git a/src/Normalizer/DeleteIntegrationSchemaNormalizer.php b/src/Normalizer/DeleteIntegrationSchemaNormalizer.php index fb16c75..961f9df 100644 --- a/src/Normalizer/DeleteIntegrationSchemaNormalizer.php +++ b/src/Normalizer/DeleteIntegrationSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DeleteIntegrationSchema; + return is_object($data) && $data instanceof DeleteIntegrationSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DeleteIntegrationSchema(); + $object = new DeleteIntegrationSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['ok'] = $object->getOk(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DeleteIntegrationSchema::class => false]; } diff --git a/src/Normalizer/DeleteWebhookSchemaNormalizer.php b/src/Normalizer/DeleteWebhookSchemaNormalizer.php index 771cea2..bce1528 100644 --- a/src/Normalizer/DeleteWebhookSchemaNormalizer.php +++ b/src/Normalizer/DeleteWebhookSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DeleteWebhookSchema; + return is_object($data) && $data instanceof DeleteWebhookSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DeleteWebhookSchema(); + $object = new DeleteWebhookSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['ok'] = $object->getOk(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DeleteWebhookSchema::class => false]; } diff --git a/src/Normalizer/DeliveryPayloadNormalizer.php b/src/Normalizer/DeliveryPayloadNormalizer.php index 4662285..5090efa 100644 --- a/src/Normalizer/DeliveryPayloadNormalizer.php +++ b/src/Normalizer/DeliveryPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DeliveryPayload; + return is_object($data) && $data instanceof DeliveryPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DeliveryPayload(); + $object = new DeliveryPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -67,10 +67,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('email') && null !== $object->getEmail()) { @@ -95,7 +92,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DeliveryPayload::class => false]; } diff --git a/src/Normalizer/DetailedCashRegisterModelNormalizer.php b/src/Normalizer/DetailedCashRegisterModelNormalizer.php index 40c7adb..076c59e 100644 --- a/src/Normalizer/DetailedCashRegisterModelNormalizer.php +++ b/src/Normalizer/DetailedCashRegisterModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DetailedCashRegisterModel; + return is_object($data) && $data instanceof DetailedCashRegisterModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DetailedCashRegisterModel(); + $object = new DetailedCashRegisterModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -96,10 +96,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -136,7 +133,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DetailedCashRegisterModel::class => false]; } diff --git a/src/Normalizer/DetailedCashierModelNormalizer.php b/src/Normalizer/DetailedCashierModelNormalizer.php index 49f6898..a931055 100644 --- a/src/Normalizer/DetailedCashierModelNormalizer.php +++ b/src/Normalizer/DetailedCashierModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DetailedCashierModel; + return is_object($data) && $data instanceof DetailedCashierModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -96,10 +96,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -130,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DetailedCashierModel::class => false]; } diff --git a/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php b/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php index d8ceb47..f1e11eb 100644 --- a/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php +++ b/src/Normalizer/DetailedOfflineFiscalCodeModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DetailedOfflineFiscalCodeModel; + return is_object($data) && $data instanceof DetailedOfflineFiscalCodeModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DetailedOfflineFiscalCodeModel(); + $object = new DetailedOfflineFiscalCodeModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -68,10 +68,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['fiscal_code'] = $object->getFiscalCode(); @@ -87,7 +84,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DetailedOfflineFiscalCodeModel::class => false]; } diff --git a/src/Normalizer/DiscountModelNormalizer.php b/src/Normalizer/DiscountModelNormalizer.php index 03f0609..8d5ea5b 100644 --- a/src/Normalizer/DiscountModelNormalizer.php +++ b/src/Normalizer/DiscountModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DiscountModel; + return is_object($data) && $data instanceof DiscountModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DiscountModel(); + $object = new DiscountModel(); if (array_key_exists('value', $data) && is_int($data['value'])) { $data['value'] = (float) $data['value']; } @@ -87,10 +87,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['type'] = $object->getType(); @@ -118,7 +115,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DiscountModel::class => false]; } diff --git a/src/Normalizer/DiscountPayloadNormalizer.php b/src/Normalizer/DiscountPayloadNormalizer.php index a9e806d..a8304a6 100644 --- a/src/Normalizer/DiscountPayloadNormalizer.php +++ b/src/Normalizer/DiscountPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DiscountPayload; + return is_object($data) && $data instanceof DiscountPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DiscountPayload(); + $object = new DiscountPayload(); if (array_key_exists('value', $data) && is_int($data['value'])) { $data['value'] = (float) $data['value']; } @@ -83,10 +83,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['type'] = $object->getType(); @@ -113,7 +110,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DiscountPayload::class => false]; } diff --git a/src/Normalizer/DocumentsStateModelNormalizer.php b/src/Normalizer/DocumentsStateModelNormalizer.php index 2a8fd8d..6ae8d9a 100644 --- a/src/Normalizer/DocumentsStateModelNormalizer.php +++ b/src/Normalizer/DocumentsStateModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\DocumentsStateModel; + return is_object($data) && $data instanceof DocumentsStateModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\DocumentsStateModel(); + $object = new DocumentsStateModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['last_receipt_code'] = $object->getLastReceiptCode(); @@ -81,7 +78,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [DocumentsStateModel::class => false]; } diff --git a/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php b/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php index 9e338f4..ce96778 100644 --- a/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php +++ b/src/Normalizer/ExtendedReceiptReportFiltersPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedReceiptReportFiltersPayload; + return is_object($data) && $data instanceof ExtendedReceiptReportFiltersPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ExtendedReceiptReportFiltersPayload(); + $object = new ExtendedReceiptReportFiltersPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -80,10 +80,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); @@ -111,7 +108,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ExtendedReceiptReportFiltersPayload::class => false]; } diff --git a/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php b/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php index 93504e2..92ce4ae 100644 --- a/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php +++ b/src/Normalizer/ExtendedReportFiltersPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedReportFiltersPayload; + return is_object($data) && $data instanceof ExtendedReportFiltersPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ExtendedReportFiltersPayload(); + $object = new ExtendedReportFiltersPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -80,10 +80,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); @@ -113,7 +110,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ExtendedReportFiltersPayload::class => false]; } diff --git a/src/Normalizer/ExtendedReportPayloadShortNormalizer.php b/src/Normalizer/ExtendedReportPayloadShortNormalizer.php index ffa4f81..b5723c0 100644 --- a/src/Normalizer/ExtendedReportPayloadShortNormalizer.php +++ b/src/Normalizer/ExtendedReportPayloadShortNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedReportPayloadShort; + return is_object($data) && $data instanceof ExtendedReportPayloadShort; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ExtendedReportPayloadShort(); + $object = new ExtendedReportPayloadShort(); if (null === $data || false === is_array($data)) { return $object; } @@ -72,10 +72,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); @@ -99,7 +96,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ExtendedReportPayloadShort::class => false]; } diff --git a/src/Normalizer/ExtendedTaxModelNormalizer.php b/src/Normalizer/ExtendedTaxModelNormalizer.php index 75b7d69..ffc0897 100644 --- a/src/Normalizer/ExtendedTaxModelNormalizer.php +++ b/src/Normalizer/ExtendedTaxModelNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ExtendedTaxModel; + return is_object($data) && $data instanceof ExtendedTaxModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ExtendedTaxModel(); + $object = new ExtendedTaxModel(); if (array_key_exists('rate', $data) && is_int($data['rate'])) { $data['rate'] = (float) $data['rate']; } @@ -117,10 +117,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -157,7 +154,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ExtendedTaxModel::class => false]; } diff --git a/src/Normalizer/GoOfflinePayloadNormalizer.php b/src/Normalizer/GoOfflinePayloadNormalizer.php index 8887b12..af955cd 100644 --- a/src/Normalizer/GoOfflinePayloadNormalizer.php +++ b/src/Normalizer/GoOfflinePayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoOfflinePayload; + return is_object($data) && $data instanceof GoOfflinePayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\GoOfflinePayload(); + $object = new GoOfflinePayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -60,10 +60,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('goOfflineDate') && null !== $object->getGoOfflineDate()) { @@ -81,7 +78,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [GoOfflinePayload::class => false]; } diff --git a/src/Normalizer/GoodDetailsPayloadNormalizer.php b/src/Normalizer/GoodDetailsPayloadNormalizer.php index 4049689..decca9c 100644 --- a/src/Normalizer/GoodDetailsPayloadNormalizer.php +++ b/src/Normalizer/GoodDetailsPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodDetailsPayload; + return is_object($data) && $data instanceof GoodDetailsPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\GoodDetailsPayload(); + $object = new GoodDetailsPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -95,10 +95,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -138,7 +135,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [GoodDetailsPayload::class => false]; } diff --git a/src/Normalizer/GoodItemModelNormalizer.php b/src/Normalizer/GoodItemModelNormalizer.php index 3b0fcb2..800eb88 100644 --- a/src/Normalizer/GoodItemModelNormalizer.php +++ b/src/Normalizer/GoodItemModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodItemModel; + return is_object($data) && $data instanceof GoodItemModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\GoodItemModel(); + $object = new GoodItemModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -87,10 +87,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['good'] = $this->normalizer->normalize($object->getGood(), 'json', $context); @@ -121,7 +118,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [GoodItemModel::class => false]; } diff --git a/src/Normalizer/GoodItemPayloadGoodNormalizer.php b/src/Normalizer/GoodItemPayloadGoodNormalizer.php index 0e06327..d6075c6 100644 --- a/src/Normalizer/GoodItemPayloadGoodNormalizer.php +++ b/src/Normalizer/GoodItemPayloadGoodNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodItemPayloadGood; + return is_object($data) && $data instanceof GoodItemPayloadGood; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\GoodItemPayloadGood(); + $object = new GoodItemPayloadGood(); if (null === $data || false === is_array($data)) { return $object; } @@ -95,10 +95,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -138,7 +135,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [GoodItemPayloadGood::class => false]; } diff --git a/src/Normalizer/GoodItemPayloadNormalizer.php b/src/Normalizer/GoodItemPayloadNormalizer.php index 6cb49aa..109358d 100644 --- a/src/Normalizer/GoodItemPayloadNormalizer.php +++ b/src/Normalizer/GoodItemPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodItemPayload; + return is_object($data) && $data instanceof GoodItemPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\GoodItemPayload(); + $object = new GoodItemPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -83,10 +83,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['good'] = $this->normalizer->normalize($object->getGood(), 'json', $context); @@ -119,7 +116,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [GoodItemPayload::class => false]; } diff --git a/src/Normalizer/GoodModelBaseNormalizer.php b/src/Normalizer/GoodModelBaseNormalizer.php index f10a0f2..c131c15 100644 --- a/src/Normalizer/GoodModelBaseNormalizer.php +++ b/src/Normalizer/GoodModelBaseNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodModelBase; + return is_object($data) && $data instanceof GoodModelBase; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\GoodModelBase(); + $object = new GoodModelBase(); if (null === $data || false === is_array($data)) { return $object; } @@ -104,10 +104,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -147,7 +144,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [GoodModelBase::class => false]; } diff --git a/src/Normalizer/GoodTaxNormalizer.php b/src/Normalizer/GoodTaxNormalizer.php index 07096b8..02d3103 100644 --- a/src/Normalizer/GoodTaxNormalizer.php +++ b/src/Normalizer/GoodTaxNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\GoodTax; + return is_object($data) && $data instanceof GoodTax; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\GoodTax(); + $object = new GoodTax(); if (null === $data || false === is_array($data)) { return $object; } @@ -104,10 +104,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -140,7 +137,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [GoodTax::class => false]; } diff --git a/src/Normalizer/HTTPErrorNormalizer.php b/src/Normalizer/HTTPErrorNormalizer.php index 641ed01..3c16998 100644 --- a/src/Normalizer/HTTPErrorNormalizer.php +++ b/src/Normalizer/HTTPErrorNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\HTTPError; + return is_object($data) && $data instanceof HTTPError; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\HTTPError(); + $object = new HTTPError(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['message'] = $object->getMessage(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [HTTPError::class => false]; } diff --git a/src/Normalizer/HTTPValidationErrorNormalizer.php b/src/Normalizer/HTTPValidationErrorNormalizer.php index cff731c..e43d263 100644 --- a/src/Normalizer/HTTPValidationErrorNormalizer.php +++ b/src/Normalizer/HTTPValidationErrorNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\HTTPValidationError; + return is_object($data) && $data instanceof HTTPValidationError; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\HTTPValidationError(); + $object = new HTTPValidationError(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('detail') && null !== $object->getDetail()) { @@ -86,7 +83,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [HTTPValidationError::class => false]; } diff --git a/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php b/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php index 0573d4c..dd66b76 100644 --- a/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php +++ b/src/Normalizer/IntegrationEditOrderReceiptSchemaNormalizer.php @@ -26,7 +26,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\IntegrationEditOrderReceiptSchema; + return is_object($data) && $data instanceof IntegrationEditOrderReceiptSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -37,7 +37,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\IntegrationEditOrderReceiptSchema(); + $object = new IntegrationEditOrderReceiptSchema(); if (null === $data || false === \is_array($data)) { return $object; } @@ -134,10 +134,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('cashierName') && null !== $object->getCashierName()) { @@ -213,7 +210,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [IntegrationEditOrderReceiptSchema::class => false]; } diff --git a/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php b/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php index 33e5c24..3b58ac0 100644 --- a/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php +++ b/src/Normalizer/IntegrationInfoResponseSchemaNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\IntegrationInfoResponseSchema; + return is_object($data) && $data instanceof IntegrationInfoResponseSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\IntegrationInfoResponseSchema(); + $object = new IntegrationInfoResponseSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -76,10 +76,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); @@ -103,7 +100,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [IntegrationInfoResponseSchema::class => false]; } diff --git a/src/Normalizer/IntegrationInfoSchemaNormalizer.php b/src/Normalizer/IntegrationInfoSchemaNormalizer.php index 2679f38..87052e3 100644 --- a/src/Normalizer/IntegrationInfoSchemaNormalizer.php +++ b/src/Normalizer/IntegrationInfoSchemaNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\IntegrationInfoSchema; + return is_object($data) && $data instanceof IntegrationInfoSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\IntegrationInfoSchema(); + $object = new IntegrationInfoSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -72,10 +72,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); @@ -98,7 +95,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [IntegrationInfoSchema::class => false]; } diff --git a/src/Normalizer/JaneObjectNormalizer.php b/src/Normalizer/JaneObjectNormalizer.php index 79431f2..3984277 100644 --- a/src/Normalizer/JaneObjectNormalizer.php +++ b/src/Normalizer/JaneObjectNormalizer.php @@ -7,9 +7,8 @@ use ArrayObject; use Jane\Component\JsonSchemaRuntime\Reference; use RevoTale\CheckboxUA\Model\{AddressModel, BalanceModel, BodyImportGoodsFromFileApiV1GoodsImportUploadPost, BonusPayload, BranchModel, CalculatedDiscountPayload, CalculatedGoodDetailsPayload, CalculatedGoodItemPayload, CalculatedGoodTaxPayload, CalculatedReceiptSellPayload, CalculatedReceiptTaxPayload, CardPaymentPayload, CashPaymentPayload, CashRegisterDeviceModel, CashRegisterModel, CashRegisterOfflineTime, CashRegisterOfflineTimeSession, CashRegisterOfflineTimeStatus, CashWithdrawalReceiptPayload, CashierAccessTokenResponseModel, CashierModel, CashierPermissionsModel, CashierSignIn, CashierSignInPinCode, CashierSignatureStatus, CheckStatusResponseSchema, CloseShiftPayload, CloseShiftPayloadReport, CreateOrderModel, CreateShiftPayload, CurrencyExchangePayload, CurrencyExchangeSchema, CurrencyPayload, CurrencyRateModel, CurrencyRatePayload, CurrencySchema, DailyCashFlowPayload, DeleteIntegrationSchema, DeleteWebhookSchema, DeliveryPayload, DetailedCashRegisterModel, DetailedCashierModel, DetailedOfflineFiscalCodeModel, DiscountModel, DiscountPayload, DocumentsStateModel, ExtendedReceiptReportFiltersPayload, ExtendedReportFiltersPayload, ExtendedReportPayloadShort, ExtendedTaxModel, GoOfflinePayload, GoodDetailsPayload, GoodItemModel, GoodItemPayload, GoodItemPayloadGood, GoodModelBase, GoodTax, HTTPError, HTTPValidationError, IntegrationEditOrderReceiptSchema, IntegrationInfoResponseSchema, IntegrationInfoSchema, NotificationPayload, ObsoleteCardPaymentPayload, OfflineCodesCountSchema, OfflineReceiptSellPayload, OperationBaseResponseSchema, OperationErrorModel, OrderDeliveryDetailsModel, OrderGoodDetailsModel, OrderGoodItemModel, OrderGoodItemModelGood, OrderModel, OrderReceiptModel, OrderUpdateSchema, OrganizationBillingSchema, OrganizationModel, OrganizationReceiptConfigSchema, PaginatedResultDetailedCashRegisterModel, PaginatedResultDetailedCashRegisterModelMeta, PaginatedResultGoodModel, PaginatedResultGoodModelMeta, PaginatedResultOrderModel, PaginatedResultOrderModelMeta, PaginatedResultReceiptModel, PaginatedResultReceiptModelMeta, PaginatedResultReportModel, PaginatedResultReportModelMeta, PaginatedResultShiftModel, PaginatedResultShiftModelMeta, PaginatedResultShiftWithCashRegisterModel, PaginatedResultShiftWithCashRegisterModelMeta, PaginatedResultShortTransaction, PaginatedResultShortTransactionMeta, PaginationMeta, PublicReportTaskSchema, ReceiptConfigPayload, ReceiptDeliverySmsPayload, ReceiptModel, ReceiptSellPayload, ReceiptServicePayload, ReceiptUpdateSchema, ReportModel, ReportPayload, ReportPaymentsModel, ReportPaymentsPayload, ReportTaskSchema, ReportTaxesModel, ReportTaxesPayload, ReportWithExtensionPayloadShort, ServiceCurrencyItemPayload, ServiceCurrencyPayload, ServiceReceiptUpdateSchema, SetIntegrationPayload, SetWebhookPayload, SetupRatesPayload, ShiftModel, ShiftTaxModel, ShiftUpdateSchema, ShiftWithCashRegisterModel, ShiftWithCashierAndCashRegister, ShiftWithCashierModel, ShortCloseShiftPayload, ShortCloseShiftPayloadReport, ShortOrganizationModel, ShortReceiptModel, ShortTransaction, SrsoSchemaGoodSchemaGoodModel, SrsoSchemaReceiptSchemaGoodModel, TaxModel, TransactionModel, UpdateTransactionPayload, ValidationError, WebhookInfoResponseSchema, WebhookInfoSchema}; -use RevoTale\CheckboxUA\Normalizer\{AddressModelNormalizer, BalanceModelNormalizer, BodyImportGoodsFromFileApiV1GoodsImportUploadPostNormalizer, BonusPayloadNormalizer, BranchModelNormalizer, CalculatedDiscountPayloadNormalizer, CalculatedGoodDetailsPayloadNormalizer, CalculatedGoodItemPayloadNormalizer, CalculatedGoodTaxPayloadNormalizer, CalculatedReceiptSellPayloadNormalizer, CalculatedReceiptTaxPayloadNormalizer, CardPaymentPayloadNormalizer, CashPaymentPayloadNormalizer, CashRegisterDeviceModelNormalizer, CashRegisterModelNormalizer, CashRegisterOfflineTimeNormalizer, CashRegisterOfflineTimeSessionNormalizer, CashRegisterOfflineTimeStatusNormalizer, CashWithdrawalReceiptPayloadNormalizer, CashierAccessTokenResponseModelNormalizer, CashierModelNormalizer, CashierPermissionsModelNormalizer, CashierSignInNormalizer, CashierSignInPinCodeNormalizer, CashierSignatureStatusNormalizer, CheckStatusResponseSchemaNormalizer, CloseShiftPayloadNormalizer, CloseShiftPayloadReportNormalizer, CreateOrderModelNormalizer, CreateShiftPayloadNormalizer, CurrencyExchangePayloadNormalizer, CurrencyExchangeSchemaNormalizer, CurrencyPayloadNormalizer, CurrencyRateModelNormalizer, CurrencyRatePayloadNormalizer, CurrencySchemaNormalizer, DailyCashFlowPayloadNormalizer, DeleteIntegrationSchemaNormalizer, DeleteWebhookSchemaNormalizer, DeliveryPayloadNormalizer, DetailedCashRegisterModelNormalizer, DetailedCashierModelNormalizer, DetailedOfflineFiscalCodeModelNormalizer, DiscountModelNormalizer, DiscountPayloadNormalizer, DocumentsStateModelNormalizer, ExtendedReceiptReportFiltersPayloadNormalizer, ExtendedReportFiltersPayloadNormalizer, ExtendedReportPayloadShortNormalizer, ExtendedTaxModelNormalizer, GoOfflinePayloadNormalizer, GoodDetailsPayloadNormalizer, GoodItemModelNormalizer, GoodItemPayloadGoodNormalizer, GoodItemPayloadNormalizer, GoodModelBaseNormalizer, GoodTaxNormalizer, HTTPErrorNormalizer, HTTPValidationErrorNormalizer, IntegrationEditOrderReceiptSchemaNormalizer, IntegrationInfoResponseSchemaNormalizer, IntegrationInfoSchemaNormalizer, NotificationPayloadNormalizer, ObsoleteCardPaymentPayloadNormalizer, OfflineCodesCountSchemaNormalizer, OfflineReceiptSellPayloadNormalizer, OperationBaseResponseSchemaNormalizer, OperationErrorModelNormalizer, OrderDeliveryDetailsModelNormalizer, OrderGoodDetailsModelNormalizer, OrderGoodItemModelGoodNormalizer, OrderGoodItemModelNormalizer, OrderModelNormalizer, OrderReceiptModelNormalizer, OrderUpdateSchemaNormalizer, OrganizationBillingSchemaNormalizer, OrganizationModelNormalizer, OrganizationReceiptConfigSchemaNormalizer, PaginatedResultDetailedCashRegisterModelMetaNormalizer, PaginatedResultDetailedCashRegisterModelNormalizer, PaginatedResultGoodModelMetaNormalizer, PaginatedResultGoodModelNormalizer, PaginatedResultOrderModelMetaNormalizer, PaginatedResultOrderModelNormalizer, PaginatedResultReceiptModelMetaNormalizer, PaginatedResultReceiptModelNormalizer, PaginatedResultReportModelMetaNormalizer, PaginatedResultReportModelNormalizer, PaginatedResultShiftModelMetaNormalizer, PaginatedResultShiftModelNormalizer, PaginatedResultShiftWithCashRegisterModelMetaNormalizer, PaginatedResultShiftWithCashRegisterModelNormalizer, PaginatedResultShortTransactionMetaNormalizer, PaginatedResultShortTransactionNormalizer, PaginationMetaNormalizer, PublicReportTaskSchemaNormalizer, ReceiptConfigPayloadNormalizer, ReceiptDeliverySmsPayloadNormalizer, ReceiptModelNormalizer, ReceiptSellPayloadNormalizer, ReceiptServicePayloadNormalizer, ReceiptUpdateSchemaNormalizer, ReportModelNormalizer, ReportPayloadNormalizer, ReportPaymentsModelNormalizer, ReportPaymentsPayloadNormalizer, ReportTaskSchemaNormalizer, ReportTaxesModelNormalizer, ReportTaxesPayloadNormalizer, ReportWithExtensionPayloadShortNormalizer, ServiceCurrencyItemPayloadNormalizer, ServiceCurrencyPayloadNormalizer, ServiceReceiptUpdateSchemaNormalizer, SetIntegrationPayloadNormalizer, SetWebhookPayloadNormalizer, SetupRatesPayloadNormalizer, ShiftModelNormalizer, ShiftTaxModelNormalizer, ShiftUpdateSchemaNormalizer, ShiftWithCashRegisterModelNormalizer, ShiftWithCashierAndCashRegisterNormalizer, ShiftWithCashierModelNormalizer, ShortCloseShiftPayloadNormalizer, ShortCloseShiftPayloadReportNormalizer, ShortOrganizationModelNormalizer, ShortReceiptModelNormalizer, ShortTransactionNormalizer, SrsoSchemaGoodSchemaGoodModelNormalizer, SrsoSchemaReceiptSchemaGoodModelNormalizer, TaxModelNormalizer, TransactionModelNormalizer, UpdateTransactionPayloadNormalizer, ValidationErrorNormalizer, WebhookInfoResponseSchemaNormalizer, WebhookInfoSchemaNormalizer}; -use RevoTale\CheckboxUA\Runtime\Normalizer\ReferenceNormalizer; use RevoTale\CheckboxUA\Runtime\Normalizer\{CheckArray, ValidatorTrait}; +use RevoTale\CheckboxUA\Runtime\Normalizer\ReferenceNormalizer; use Symfony\Component\Serializer\Normalizer\{DenormalizerAwareInterface, DenormalizerAwareTrait, DenormalizerInterface, NormalizerAwareInterface, NormalizerAwareTrait, NormalizerInterface}; class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface @@ -31,10 +30,7 @@ public function supportsNormalization($data, $format = null, array $context = [] return is_object($data) && array_key_exists(get_class($data), $this->normalizers); } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $normalizerClass = $this->normalizers[get_class($object)]; $normalizer = $this->getNormalizer($normalizerClass); @@ -65,7 +61,7 @@ private function initNormalizer(string $normalizerClass) return $normalizer; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [AddressModel::class => false, BalanceModel::class => false, BodyImportGoodsFromFileApiV1GoodsImportUploadPost::class => false, BonusPayload::class => false, BranchModel::class => false, CalculatedDiscountPayload::class => false, CalculatedGoodDetailsPayload::class => false, CalculatedGoodItemPayload::class => false, CalculatedGoodTaxPayload::class => false, CalculatedReceiptSellPayload::class => false, CalculatedReceiptTaxPayload::class => false, CardPaymentPayload::class => false, CashPaymentPayload::class => false, CashRegisterDeviceModel::class => false, CashRegisterModel::class => false, CashRegisterOfflineTime::class => false, CashRegisterOfflineTimeSession::class => false, CashRegisterOfflineTimeStatus::class => false, CashWithdrawalReceiptPayload::class => false, CashierAccessTokenResponseModel::class => false, CashierModel::class => false, CashierPermissionsModel::class => false, CashierSignIn::class => false, CashierSignInPinCode::class => false, CashierSignatureStatus::class => false, CheckStatusResponseSchema::class => false, CloseShiftPayload::class => false, CloseShiftPayloadReport::class => false, CreateOrderModel::class => false, CreateShiftPayload::class => false, CurrencyExchangePayload::class => false, CurrencyExchangeSchema::class => false, CurrencyPayload::class => false, CurrencyRateModel::class => false, CurrencyRatePayload::class => false, CurrencySchema::class => false, DailyCashFlowPayload::class => false, DeleteIntegrationSchema::class => false, DeleteWebhookSchema::class => false, DeliveryPayload::class => false, DetailedCashRegisterModel::class => false, DetailedCashierModel::class => false, DetailedOfflineFiscalCodeModel::class => false, DiscountModel::class => false, DiscountPayload::class => false, DocumentsStateModel::class => false, ExtendedReceiptReportFiltersPayload::class => false, ExtendedReportFiltersPayload::class => false, ExtendedReportPayloadShort::class => false, ExtendedTaxModel::class => false, GoOfflinePayload::class => false, GoodDetailsPayload::class => false, GoodItemModel::class => false, GoodItemPayload::class => false, GoodItemPayloadGood::class => false, GoodModelBase::class => false, GoodTax::class => false, HTTPError::class => false, HTTPValidationError::class => false, IntegrationEditOrderReceiptSchema::class => false, IntegrationInfoResponseSchema::class => false, IntegrationInfoSchema::class => false, NotificationPayload::class => false, ObsoleteCardPaymentPayload::class => false, OfflineCodesCountSchema::class => false, OfflineReceiptSellPayload::class => false, OperationBaseResponseSchema::class => false, OperationErrorModel::class => false, OrderDeliveryDetailsModel::class => false, OrderGoodDetailsModel::class => false, OrderGoodItemModel::class => false, OrderGoodItemModelGood::class => false, OrderModel::class => false, OrderReceiptModel::class => false, OrderUpdateSchema::class => false, OrganizationBillingSchema::class => false, OrganizationModel::class => false, OrganizationReceiptConfigSchema::class => false, PaginatedResultDetailedCashRegisterModel::class => false, PaginatedResultDetailedCashRegisterModelMeta::class => false, PaginatedResultGoodModel::class => false, PaginatedResultGoodModelMeta::class => false, PaginatedResultOrderModel::class => false, PaginatedResultOrderModelMeta::class => false, PaginatedResultReceiptModel::class => false, PaginatedResultReceiptModelMeta::class => false, PaginatedResultReportModel::class => false, PaginatedResultReportModelMeta::class => false, PaginatedResultShiftModel::class => false, PaginatedResultShiftModelMeta::class => false, PaginatedResultShiftWithCashRegisterModel::class => false, PaginatedResultShiftWithCashRegisterModelMeta::class => false, PaginatedResultShortTransaction::class => false, PaginatedResultShortTransactionMeta::class => false, PaginationMeta::class => false, PublicReportTaskSchema::class => false, ReceiptConfigPayload::class => false, ReceiptDeliverySmsPayload::class => false, ReceiptModel::class => false, ReceiptSellPayload::class => false, ReceiptServicePayload::class => false, ReceiptUpdateSchema::class => false, ReportModel::class => false, ReportPayload::class => false, ReportPaymentsModel::class => false, ReportPaymentsPayload::class => false, ReportTaskSchema::class => false, ReportTaxesModel::class => false, ReportTaxesPayload::class => false, ReportWithExtensionPayloadShort::class => false, ServiceCurrencyItemPayload::class => false, ServiceCurrencyPayload::class => false, ServiceReceiptUpdateSchema::class => false, SetIntegrationPayload::class => false, SetWebhookPayload::class => false, SetupRatesPayload::class => false, ShiftModel::class => false, ShiftTaxModel::class => false, ShiftUpdateSchema::class => false, ShiftWithCashRegisterModel::class => false, ShiftWithCashierAndCashRegister::class => false, ShiftWithCashierModel::class => false, ShortCloseShiftPayload::class => false, ShortCloseShiftPayloadReport::class => false, ShortOrganizationModel::class => false, ShortReceiptModel::class => false, ShortTransaction::class => false, TaxModel::class => false, TransactionModel::class => false, UpdateTransactionPayload::class => false, ValidationError::class => false, WebhookInfoResponseSchema::class => false, WebhookInfoSchema::class => false, SrsoSchemaGoodSchemaGoodModel::class => false, SrsoSchemaReceiptSchemaGoodModel::class => false, Reference::class => false]; } diff --git a/src/Normalizer/NotificationPayloadNormalizer.php b/src/Normalizer/NotificationPayloadNormalizer.php index 4dde95c..a76c9cc 100644 --- a/src/Normalizer/NotificationPayloadNormalizer.php +++ b/src/Normalizer/NotificationPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\NotificationPayload; + return is_object($data) && $data instanceof NotificationPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\NotificationPayload(); + $object = new NotificationPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['ok'] = $object->getOk(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [NotificationPayload::class => false]; } diff --git a/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php b/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php index a37b45f..67f3038 100644 --- a/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php +++ b/src/Normalizer/ObsoleteCardPaymentPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ObsoleteCardPaymentPayload; + return is_object($data) && $data instanceof ObsoleteCardPaymentPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ObsoleteCardPaymentPayload(); + $object = new ObsoleteCardPaymentPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -127,10 +127,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('type') && null !== $object->getType()) { @@ -197,7 +194,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ObsoleteCardPaymentPayload::class => false]; } diff --git a/src/Normalizer/OfflineCodesCountSchemaNormalizer.php b/src/Normalizer/OfflineCodesCountSchemaNormalizer.php index ef30093..6ba4761 100644 --- a/src/Normalizer/OfflineCodesCountSchemaNormalizer.php +++ b/src/Normalizer/OfflineCodesCountSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OfflineCodesCountSchema; + return is_object($data) && $data instanceof OfflineCodesCountSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OfflineCodesCountSchema(); + $object = new OfflineCodesCountSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -67,10 +67,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('available') && null !== $object->getAvailable()) { @@ -94,7 +91,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OfflineCodesCountSchema::class => false]; } diff --git a/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php b/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php index cf3c861..ae442eb 100644 --- a/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php +++ b/src/Normalizer/OfflineReceiptSellPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OfflineReceiptSellPayload; + return is_object($data) && $data instanceof OfflineReceiptSellPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OfflineReceiptSellPayload(); + $object = new OfflineReceiptSellPayload(); if (null === $data || false === \is_array($data)) { return $object; } @@ -167,10 +167,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -270,7 +267,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OfflineReceiptSellPayload::class => false]; } diff --git a/src/Normalizer/OperationBaseResponseSchemaNormalizer.php b/src/Normalizer/OperationBaseResponseSchemaNormalizer.php index 7216671..f4fc89c 100644 --- a/src/Normalizer/OperationBaseResponseSchemaNormalizer.php +++ b/src/Normalizer/OperationBaseResponseSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema; + return is_object($data) && $data instanceof OperationBaseResponseSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OperationBaseResponseSchema(); + $object = new OperationBaseResponseSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['task_id'] = $object->getTaskId(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OperationBaseResponseSchema::class => false]; } diff --git a/src/Normalizer/OperationErrorModelNormalizer.php b/src/Normalizer/OperationErrorModelNormalizer.php index f8af1dd..a2f40f6 100644 --- a/src/Normalizer/OperationErrorModelNormalizer.php +++ b/src/Normalizer/OperationErrorModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OperationErrorModel; + return is_object($data) && $data instanceof OperationErrorModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OperationErrorModel(); + $object = new OperationErrorModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['error'] = $object->getError(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OperationErrorModel::class => false]; } diff --git a/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php b/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php index ea6107f..fbbbfa0 100644 --- a/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php +++ b/src/Normalizer/OrderDeliveryDetailsModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderDeliveryDetailsModel; + return is_object($data) && $data instanceof OrderDeliveryDetailsModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrderDeliveryDetailsModel(); + $object = new OrderDeliveryDetailsModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -84,10 +84,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['address'] = $this->normalizer->normalize($object->getAddress(), 'json', $context); @@ -110,7 +107,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrderDeliveryDetailsModel::class => false]; } diff --git a/src/Normalizer/OrderGoodDetailsModelNormalizer.php b/src/Normalizer/OrderGoodDetailsModelNormalizer.php index 3034d69..04c1924 100644 --- a/src/Normalizer/OrderGoodDetailsModelNormalizer.php +++ b/src/Normalizer/OrderGoodDetailsModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderGoodDetailsModel; + return is_object($data) && $data instanceof OrderGoodDetailsModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrderGoodDetailsModel(); + $object = new OrderGoodDetailsModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -95,10 +95,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -138,7 +135,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrderGoodDetailsModel::class => false]; } diff --git a/src/Normalizer/OrderGoodItemModelGoodNormalizer.php b/src/Normalizer/OrderGoodItemModelGoodNormalizer.php index 80c5c84..8696b8d 100644 --- a/src/Normalizer/OrderGoodItemModelGoodNormalizer.php +++ b/src/Normalizer/OrderGoodItemModelGoodNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderGoodItemModelGood; + return is_object($data) && $data instanceof OrderGoodItemModelGood; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrderGoodItemModelGood(); + $object = new OrderGoodItemModelGood(); if (null === $data || false === is_array($data)) { return $object; } @@ -95,10 +95,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -138,7 +135,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrderGoodItemModelGood::class => false]; } diff --git a/src/Normalizer/OrderGoodItemModelNormalizer.php b/src/Normalizer/OrderGoodItemModelNormalizer.php index 8899995..ab14eb8 100644 --- a/src/Normalizer/OrderGoodItemModelNormalizer.php +++ b/src/Normalizer/OrderGoodItemModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderGoodItemModel; + return is_object($data) && $data instanceof OrderGoodItemModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrderGoodItemModel(); + $object = new OrderGoodItemModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -79,10 +79,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('good') && null !== $object->getGood()) { @@ -114,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrderGoodItemModel::class => false]; } diff --git a/src/Normalizer/OrderModelNormalizer.php b/src/Normalizer/OrderModelNormalizer.php index c766ec0..b48437a 100644 --- a/src/Normalizer/OrderModelNormalizer.php +++ b/src/Normalizer/OrderModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderModel; + return is_object($data) && $data instanceof OrderModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrderModel(); + $object = new OrderModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -100,10 +100,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -141,7 +138,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrderModel::class => false]; } diff --git a/src/Normalizer/OrderReceiptModelNormalizer.php b/src/Normalizer/OrderReceiptModelNormalizer.php index 952dc92..a5849a4 100644 --- a/src/Normalizer/OrderReceiptModelNormalizer.php +++ b/src/Normalizer/OrderReceiptModelNormalizer.php @@ -26,7 +26,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderReceiptModel; + return is_object($data) && $data instanceof OrderReceiptModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -37,7 +37,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrderReceiptModel(); + $object = new OrderReceiptModel(); if (null === $data || false === \is_array($data)) { return $object; } @@ -126,10 +126,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('cashierName') && null !== $object->getCashierName()) { @@ -203,7 +200,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrderReceiptModel::class => false]; } diff --git a/src/Normalizer/OrderUpdateSchemaNormalizer.php b/src/Normalizer/OrderUpdateSchemaNormalizer.php index c0159b8..82b643d 100644 --- a/src/Normalizer/OrderUpdateSchemaNormalizer.php +++ b/src/Normalizer/OrderUpdateSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrderUpdateSchema; + return is_object($data) && $data instanceof OrderUpdateSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrderUpdateSchema(); + $object = new OrderUpdateSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['order'] = $this->normalizer->normalize($object->getOrder(), 'json', $context); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrderUpdateSchema::class => false]; } diff --git a/src/Normalizer/OrganizationBillingSchemaNormalizer.php b/src/Normalizer/OrganizationBillingSchemaNormalizer.php index 870bcff..e464035 100644 --- a/src/Normalizer/OrganizationBillingSchemaNormalizer.php +++ b/src/Normalizer/OrganizationBillingSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrganizationBillingSchema; + return is_object($data) && $data instanceof OrganizationBillingSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrganizationBillingSchema(); + $object = new OrganizationBillingSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['can_send_sms'] = $object->getCanSendSms(); @@ -83,7 +80,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrganizationBillingSchema::class => false]; } diff --git a/src/Normalizer/OrganizationModelNormalizer.php b/src/Normalizer/OrganizationModelNormalizer.php index 9d6fdb7..38cc511 100644 --- a/src/Normalizer/OrganizationModelNormalizer.php +++ b/src/Normalizer/OrganizationModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrganizationModel; + return is_object($data) && $data instanceof OrganizationModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrganizationModel(); + $object = new OrganizationModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -100,10 +100,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -141,7 +138,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrganizationModel::class => false]; } diff --git a/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php b/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php index e1500f8..046e857 100644 --- a/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php +++ b/src/Normalizer/OrganizationReceiptConfigSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\OrganizationReceiptConfigSchema; + return is_object($data) && $data instanceof OrganizationReceiptConfigSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\OrganizationReceiptConfigSchema(); + $object = new OrganizationReceiptConfigSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -95,10 +95,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('textGlobalHeader') && null !== $object->getTextGlobalHeader()) { @@ -141,7 +138,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [OrganizationReceiptConfigSchema::class => false]; } diff --git a/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php b/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php index ecc28a0..45f9235 100644 --- a/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultDetailedCashRegisterModelMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModelMeta; + return is_object($data) && $data instanceof PaginatedResultDetailedCashRegisterModelMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModelMeta(); + $object = new PaginatedResultDetailedCashRegisterModelMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultDetailedCashRegisterModelMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php b/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php index 6268bc6..a26c899 100644 --- a/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php +++ b/src/Normalizer/PaginatedResultDetailedCashRegisterModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModel; + return is_object($data) && $data instanceof PaginatedResultDetailedCashRegisterModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultDetailedCashRegisterModel(); + $object = new PaginatedResultDetailedCashRegisterModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultDetailedCashRegisterModel::class => false]; } diff --git a/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php b/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php index 31f14d9..5b55462 100644 --- a/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultGoodModelMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultGoodModelMeta; + return is_object($data) && $data instanceof PaginatedResultGoodModelMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultGoodModelMeta(); + $object = new PaginatedResultGoodModelMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultGoodModelMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultGoodModelNormalizer.php b/src/Normalizer/PaginatedResultGoodModelNormalizer.php index d40df21..14cd851 100644 --- a/src/Normalizer/PaginatedResultGoodModelNormalizer.php +++ b/src/Normalizer/PaginatedResultGoodModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultGoodModel; + return is_object($data) && $data instanceof PaginatedResultGoodModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultGoodModel(); + $object = new PaginatedResultGoodModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultGoodModel::class => false]; } diff --git a/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php b/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php index 92ed674..f391237 100644 --- a/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultOrderModelMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultOrderModelMeta; + return is_object($data) && $data instanceof PaginatedResultOrderModelMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultOrderModelMeta(); + $object = new PaginatedResultOrderModelMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultOrderModelMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultOrderModelNormalizer.php b/src/Normalizer/PaginatedResultOrderModelNormalizer.php index ab3b5ee..202984d 100644 --- a/src/Normalizer/PaginatedResultOrderModelNormalizer.php +++ b/src/Normalizer/PaginatedResultOrderModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultOrderModel; + return is_object($data) && $data instanceof PaginatedResultOrderModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultOrderModel(); + $object = new PaginatedResultOrderModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultOrderModel::class => false]; } diff --git a/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php b/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php index e17677d..4dfd481 100644 --- a/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultReceiptModelMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModelMeta; + return is_object($data) && $data instanceof PaginatedResultReceiptModelMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModelMeta(); + $object = new PaginatedResultReceiptModelMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultReceiptModelMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultReceiptModelNormalizer.php b/src/Normalizer/PaginatedResultReceiptModelNormalizer.php index 46dd9ca..f720d59 100644 --- a/src/Normalizer/PaginatedResultReceiptModelNormalizer.php +++ b/src/Normalizer/PaginatedResultReceiptModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModel; + return is_object($data) && $data instanceof PaginatedResultReceiptModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultReceiptModel(); + $object = new PaginatedResultReceiptModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultReceiptModel::class => false]; } diff --git a/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php b/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php index 27370bc..afaa72a 100644 --- a/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultReportModelMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReportModelMeta; + return is_object($data) && $data instanceof PaginatedResultReportModelMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultReportModelMeta(); + $object = new PaginatedResultReportModelMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultReportModelMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultReportModelNormalizer.php b/src/Normalizer/PaginatedResultReportModelNormalizer.php index 8cb64e9..e3dd7fa 100644 --- a/src/Normalizer/PaginatedResultReportModelNormalizer.php +++ b/src/Normalizer/PaginatedResultReportModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultReportModel; + return is_object($data) && $data instanceof PaginatedResultReportModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultReportModel(); + $object = new PaginatedResultReportModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultReportModel::class => false]; } diff --git a/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php b/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php index 462f605..ab4d578 100644 --- a/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftModelMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftModelMeta; + return is_object($data) && $data instanceof PaginatedResultShiftModelMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultShiftModelMeta(); + $object = new PaginatedResultShiftModelMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultShiftModelMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultShiftModelNormalizer.php b/src/Normalizer/PaginatedResultShiftModelNormalizer.php index f112dbf..b60e0f4 100644 --- a/src/Normalizer/PaginatedResultShiftModelNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftModel; + return is_object($data) && $data instanceof PaginatedResultShiftModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultShiftModel(); + $object = new PaginatedResultShiftModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultShiftModel::class => false]; } diff --git a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php index 71a868f..f3f7c36 100644 --- a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModelMeta; + return is_object($data) && $data instanceof PaginatedResultShiftWithCashRegisterModelMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModelMeta(); + $object = new PaginatedResultShiftWithCashRegisterModelMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultShiftWithCashRegisterModelMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php index 4d66483..bc94440 100644 --- a/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php +++ b/src/Normalizer/PaginatedResultShiftWithCashRegisterModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModel; + return is_object($data) && $data instanceof PaginatedResultShiftWithCashRegisterModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultShiftWithCashRegisterModel(); + $object = new PaginatedResultShiftWithCashRegisterModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultShiftWithCashRegisterModel::class => false]; } diff --git a/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php b/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php index 8e0f58d..c448bea 100644 --- a/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php +++ b/src/Normalizer/PaginatedResultShortTransactionMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShortTransactionMeta; + return is_object($data) && $data instanceof PaginatedResultShortTransactionMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultShortTransactionMeta(); + $object = new PaginatedResultShortTransactionMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultShortTransactionMeta::class => false]; } diff --git a/src/Normalizer/PaginatedResultShortTransactionNormalizer.php b/src/Normalizer/PaginatedResultShortTransactionNormalizer.php index fb89051..c1c9542 100644 --- a/src/Normalizer/PaginatedResultShortTransactionNormalizer.php +++ b/src/Normalizer/PaginatedResultShortTransactionNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginatedResultShortTransaction; + return is_object($data) && $data instanceof PaginatedResultShortTransaction; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginatedResultShortTransaction(); + $object = new PaginatedResultShortTransaction(); if (null === $data || false === is_array($data)) { return $object; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['meta'] = $this->normalizer->normalize($object->getMeta(), 'json', $context); @@ -84,7 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginatedResultShortTransaction::class => false]; } diff --git a/src/Normalizer/PaginationMetaNormalizer.php b/src/Normalizer/PaginationMetaNormalizer.php index d2d7c33..a2118b0 100644 --- a/src/Normalizer/PaginationMetaNormalizer.php +++ b/src/Normalizer/PaginationMetaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PaginationMeta; + return is_object($data) && $data instanceof PaginationMeta; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PaginationMeta(); + $object = new PaginationMeta(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['limit'] = $object->getLimit(); @@ -76,7 +73,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PaginationMeta::class => false]; } diff --git a/src/Normalizer/PublicReportTaskSchemaNormalizer.php b/src/Normalizer/PublicReportTaskSchemaNormalizer.php index 000851b..ce2bbf8 100644 --- a/src/Normalizer/PublicReportTaskSchemaNormalizer.php +++ b/src/Normalizer/PublicReportTaskSchemaNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\PublicReportTaskSchema; + return is_object($data) && $data instanceof PublicReportTaskSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\PublicReportTaskSchema(); + $object = new PublicReportTaskSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -76,10 +76,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -99,7 +96,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [PublicReportTaskSchema::class => false]; } diff --git a/src/Normalizer/ReceiptConfigPayloadNormalizer.php b/src/Normalizer/ReceiptConfigPayloadNormalizer.php index 88f9f9d..a69f046 100644 --- a/src/Normalizer/ReceiptConfigPayloadNormalizer.php +++ b/src/Normalizer/ReceiptConfigPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptConfigPayload; + return is_object($data) && $data instanceof ReceiptConfigPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReceiptConfigPayload(); + $object = new ReceiptConfigPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -83,10 +83,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('htmlGlobalHeader') && null !== $object->getHtmlGlobalHeader()) { @@ -122,7 +119,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReceiptConfigPayload::class => false]; } diff --git a/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php b/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php index 00d9911..d8fcf60 100644 --- a/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php +++ b/src/Normalizer/ReceiptDeliverySmsPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptDeliverySmsPayload; + return is_object($data) && $data instanceof ReceiptDeliverySmsPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReceiptDeliverySmsPayload(); + $object = new ReceiptDeliverySmsPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['phone'] = $object->getPhone(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReceiptDeliverySmsPayload::class => false]; } diff --git a/src/Normalizer/ReceiptModelNormalizer.php b/src/Normalizer/ReceiptModelNormalizer.php index a55a0af..f87adac 100644 --- a/src/Normalizer/ReceiptModelNormalizer.php +++ b/src/Normalizer/ReceiptModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptModel; + return is_object($data) && $data instanceof ReceiptModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -216,10 +216,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -337,7 +334,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReceiptModel::class => false]; } diff --git a/src/Normalizer/ReceiptSellPayloadNormalizer.php b/src/Normalizer/ReceiptSellPayloadNormalizer.php index 2ecc913..e91359e 100644 --- a/src/Normalizer/ReceiptSellPayloadNormalizer.php +++ b/src/Normalizer/ReceiptSellPayloadNormalizer.php @@ -26,7 +26,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptSellPayload; + return is_object($data) && $data instanceof ReceiptSellPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -37,7 +37,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReceiptSellPayload(); + $object = new ReceiptSellPayload(); if (null === $data || false === \is_array($data)) { return $object; } @@ -158,10 +158,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -259,7 +256,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReceiptSellPayload::class => false]; } diff --git a/src/Normalizer/ReceiptServicePayloadNormalizer.php b/src/Normalizer/ReceiptServicePayloadNormalizer.php index 07b8722..1866844 100644 --- a/src/Normalizer/ReceiptServicePayloadNormalizer.php +++ b/src/Normalizer/ReceiptServicePayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptServicePayload; + return is_object($data) && $data instanceof ReceiptServicePayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReceiptServicePayload(); + $object = new ReceiptServicePayload(); if (null === $data || false === \is_array($data)) { return $object; } @@ -87,10 +87,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -130,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReceiptServicePayload::class => false]; } diff --git a/src/Normalizer/ReceiptUpdateSchemaNormalizer.php b/src/Normalizer/ReceiptUpdateSchemaNormalizer.php index c73ca9f..2bbc104 100644 --- a/src/Normalizer/ReceiptUpdateSchemaNormalizer.php +++ b/src/Normalizer/ReceiptUpdateSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReceiptUpdateSchema; + return is_object($data) && $data instanceof ReceiptUpdateSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReceiptUpdateSchema(); + $object = new ReceiptUpdateSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['receipt'] = $this->normalizer->normalize($object->getReceipt(), 'json', $context); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReceiptUpdateSchema::class => false]; } diff --git a/src/Normalizer/ReportModelNormalizer.php b/src/Normalizer/ReportModelNormalizer.php index df357dc..b21bb9e 100644 --- a/src/Normalizer/ReportModelNormalizer.php +++ b/src/Normalizer/ReportModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportModel; + return is_object($data) && $data instanceof ReportModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -144,10 +144,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -196,7 +193,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportModel::class => false]; } diff --git a/src/Normalizer/ReportPayloadNormalizer.php b/src/Normalizer/ReportPayloadNormalizer.php index 66ef8a2..991efe8 100644 --- a/src/Normalizer/ReportPayloadNormalizer.php +++ b/src/Normalizer/ReportPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportPayload; + return is_object($data) && $data instanceof ReportPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReportPayload(); + $object = new ReportPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -128,10 +128,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -190,7 +187,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportPayload::class => false]; } diff --git a/src/Normalizer/ReportPaymentsModelNormalizer.php b/src/Normalizer/ReportPaymentsModelNormalizer.php index 1a8a8ad..e33b0c7 100644 --- a/src/Normalizer/ReportPaymentsModelNormalizer.php +++ b/src/Normalizer/ReportPaymentsModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportPaymentsModel; + return is_object($data) && $data instanceof ReportPaymentsModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReportPaymentsModel(); + $object = new ReportPaymentsModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -95,10 +95,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -125,7 +122,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportPaymentsModel::class => false]; } diff --git a/src/Normalizer/ReportPaymentsPayloadNormalizer.php b/src/Normalizer/ReportPaymentsPayloadNormalizer.php index e32e186..7b49a1b 100644 --- a/src/Normalizer/ReportPaymentsPayloadNormalizer.php +++ b/src/Normalizer/ReportPaymentsPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportPaymentsPayload; + return is_object($data) && $data instanceof ReportPaymentsPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReportPaymentsPayload(); + $object = new ReportPaymentsPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -91,10 +91,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['type'] = $object->getType(); @@ -124,7 +121,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportPaymentsPayload::class => false]; } diff --git a/src/Normalizer/ReportTaskSchemaNormalizer.php b/src/Normalizer/ReportTaskSchemaNormalizer.php index e7225a0..7a6b158 100644 --- a/src/Normalizer/ReportTaskSchemaNormalizer.php +++ b/src/Normalizer/ReportTaskSchemaNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportTaskSchema; + return is_object($data) && $data instanceof ReportTaskSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReportTaskSchema(); + $object = new ReportTaskSchema(); if (array_key_exists('execution_time', $data) && is_int($data['execution_time'])) { $data['execution_time'] = (float) $data['execution_time']; } @@ -96,10 +96,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -130,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportTaskSchema::class => false]; } diff --git a/src/Normalizer/ReportTaxesModelNormalizer.php b/src/Normalizer/ReportTaxesModelNormalizer.php index 463fdfb..65cdf76 100644 --- a/src/Normalizer/ReportTaxesModelNormalizer.php +++ b/src/Normalizer/ReportTaxesModelNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportTaxesModel; + return is_object($data) && $data instanceof ReportTaxesModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReportTaxesModel(); + $object = new ReportTaxesModel(); if (array_key_exists('rate', $data) && is_int($data['rate'])) { $data['rate'] = (float) $data['rate']; } @@ -108,10 +108,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -140,7 +137,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportTaxesModel::class => false]; } diff --git a/src/Normalizer/ReportTaxesPayloadNormalizer.php b/src/Normalizer/ReportTaxesPayloadNormalizer.php index 6348a9a..bc09a88 100644 --- a/src/Normalizer/ReportTaxesPayloadNormalizer.php +++ b/src/Normalizer/ReportTaxesPayloadNormalizer.php @@ -29,7 +29,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportTaxesPayload; + return is_object($data) && $data instanceof ReportTaxesPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -40,7 +40,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReportTaxesPayload(); + $object = new ReportTaxesPayload(); if (array_key_exists('rate', $data) && is_int($data['rate'])) { $data['rate'] = (float) $data['rate']; } @@ -123,10 +123,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -157,7 +154,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportTaxesPayload::class => false]; } diff --git a/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php b/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php index 550e97e..f8f82de 100644 --- a/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php +++ b/src/Normalizer/ReportWithExtensionPayloadShortNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ReportWithExtensionPayloadShort; + return is_object($data) && $data instanceof ReportWithExtensionPayloadShort; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ReportWithExtensionPayloadShort(); + $object = new ReportWithExtensionPayloadShort(); if (null === $data || false === is_array($data)) { return $object; } @@ -84,10 +84,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['from_date'] = $object->getFromDate()->format('Y-m-d\\TH:i:s.uP'); @@ -120,7 +117,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ReportWithExtensionPayloadShort::class => false]; } diff --git a/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php b/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php index 5d1499c..858fcb0 100644 --- a/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php +++ b/src/Normalizer/ServiceCurrencyItemPayloadNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ServiceCurrencyItemPayload; + return is_object($data) && $data instanceof ServiceCurrencyItemPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ServiceCurrencyItemPayload(); + $object = new ServiceCurrencyItemPayload(); if (array_key_exists('value', $data) && is_int($data['value'])) { $data['value'] = (float) $data['value']; } @@ -63,10 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['currency'] = $object->getCurrency(); @@ -80,7 +77,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ServiceCurrencyItemPayload::class => false]; } diff --git a/src/Normalizer/ServiceCurrencyPayloadNormalizer.php b/src/Normalizer/ServiceCurrencyPayloadNormalizer.php index 0d6676a..cec5dbb 100644 --- a/src/Normalizer/ServiceCurrencyPayloadNormalizer.php +++ b/src/Normalizer/ServiceCurrencyPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ServiceCurrencyPayload; + return is_object($data) && $data instanceof ServiceCurrencyPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ServiceCurrencyPayload(); + $object = new ServiceCurrencyPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -67,10 +67,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -91,7 +88,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ServiceCurrencyPayload::class => false]; } diff --git a/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php b/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php index 9ea26e2..c1efa3e 100644 --- a/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php +++ b/src/Normalizer/ServiceReceiptUpdateSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ServiceReceiptUpdateSchema; + return is_object($data) && $data instanceof ServiceReceiptUpdateSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ServiceReceiptUpdateSchema(); + $object = new ServiceReceiptUpdateSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['service_receipt'] = $this->normalizer->normalize($object->getServiceReceipt(), 'json', $context); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ServiceReceiptUpdateSchema::class => false]; } diff --git a/src/Normalizer/SetIntegrationPayloadNormalizer.php b/src/Normalizer/SetIntegrationPayloadNormalizer.php index 9e5a46f..7274e3a 100644 --- a/src/Normalizer/SetIntegrationPayloadNormalizer.php +++ b/src/Normalizer/SetIntegrationPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SetIntegrationPayload; + return is_object($data) && $data instanceof SetIntegrationPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\SetIntegrationPayload(); + $object = new SetIntegrationPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [SetIntegrationPayload::class => false]; } diff --git a/src/Normalizer/SetWebhookPayloadNormalizer.php b/src/Normalizer/SetWebhookPayloadNormalizer.php index 2feb125..361698a 100644 --- a/src/Normalizer/SetWebhookPayloadNormalizer.php +++ b/src/Normalizer/SetWebhookPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SetWebhookPayload; + return is_object($data) && $data instanceof SetWebhookPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\SetWebhookPayload(); + $object = new SetWebhookPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [SetWebhookPayload::class => false]; } diff --git a/src/Normalizer/SetupRatesPayloadNormalizer.php b/src/Normalizer/SetupRatesPayloadNormalizer.php index 7061cb9..34f7d78 100644 --- a/src/Normalizer/SetupRatesPayloadNormalizer.php +++ b/src/Normalizer/SetupRatesPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SetupRatesPayload; + return is_object($data) && $data instanceof SetupRatesPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\SetupRatesPayload(); + $object = new SetupRatesPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $values = []; @@ -79,7 +76,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [SetupRatesPayload::class => false]; } diff --git a/src/Normalizer/ShiftModelNormalizer.php b/src/Normalizer/ShiftModelNormalizer.php index 02bc48e..e1b889a 100644 --- a/src/Normalizer/ShiftModelNormalizer.php +++ b/src/Normalizer/ShiftModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftModel; + return is_object($data) && $data instanceof ShiftModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -112,10 +112,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -163,7 +160,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShiftModel::class => false]; } diff --git a/src/Normalizer/ShiftTaxModelNormalizer.php b/src/Normalizer/ShiftTaxModelNormalizer.php index 375be63..8d19638 100644 --- a/src/Normalizer/ShiftTaxModelNormalizer.php +++ b/src/Normalizer/ShiftTaxModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftTaxModel; + return is_object($data) && $data instanceof ShiftTaxModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -112,10 +112,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -150,7 +147,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShiftTaxModel::class => false]; } diff --git a/src/Normalizer/ShiftUpdateSchemaNormalizer.php b/src/Normalizer/ShiftUpdateSchemaNormalizer.php index 4afd2c6..51b1c62 100644 --- a/src/Normalizer/ShiftUpdateSchemaNormalizer.php +++ b/src/Normalizer/ShiftUpdateSchemaNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftUpdateSchema; + return is_object($data) && $data instanceof ShiftUpdateSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ShiftUpdateSchema(); + $object = new ShiftUpdateSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['shift'] = $this->normalizer->normalize($object->getShift(), 'json', $context); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShiftUpdateSchema::class => false]; } diff --git a/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php b/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php index 770fa17..d555676 100644 --- a/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php +++ b/src/Normalizer/ShiftWithCashRegisterModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftWithCashRegisterModel; + return is_object($data) && $data instanceof ShiftWithCashRegisterModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -116,10 +116,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -168,7 +165,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShiftWithCashRegisterModel::class => false]; } diff --git a/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php b/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php index d26b5f0..e6fd05e 100644 --- a/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php +++ b/src/Normalizer/ShiftWithCashierAndCashRegisterNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftWithCashierAndCashRegister; + return is_object($data) && $data instanceof ShiftWithCashierAndCashRegister; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -120,10 +120,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -173,7 +170,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShiftWithCashierAndCashRegister::class => false]; } diff --git a/src/Normalizer/ShiftWithCashierModelNormalizer.php b/src/Normalizer/ShiftWithCashierModelNormalizer.php index ca2d1be..8911065 100644 --- a/src/Normalizer/ShiftWithCashierModelNormalizer.php +++ b/src/Normalizer/ShiftWithCashierModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShiftWithCashierModel; + return is_object($data) && $data instanceof ShiftWithCashierModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -116,10 +116,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -168,7 +165,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShiftWithCashierModel::class => false]; } diff --git a/src/Normalizer/ShortCloseShiftPayloadNormalizer.php b/src/Normalizer/ShortCloseShiftPayloadNormalizer.php index c7c07ee..9e59804 100644 --- a/src/Normalizer/ShortCloseShiftPayloadNormalizer.php +++ b/src/Normalizer/ShortCloseShiftPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortCloseShiftPayload; + return is_object($data) && $data instanceof ShortCloseShiftPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ShortCloseShiftPayload(); + $object = new ShortCloseShiftPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -59,10 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('skipClientNameCheck') && null !== $object->getSkipClientNameCheck()) { @@ -80,7 +77,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShortCloseShiftPayload::class => false]; } diff --git a/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php b/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php index f937faf..36b8d6c 100644 --- a/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php +++ b/src/Normalizer/ShortCloseShiftPayloadReportNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortCloseShiftPayloadReport; + return is_object($data) && $data instanceof ShortCloseShiftPayloadReport; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ShortCloseShiftPayloadReport(); + $object = new ShortCloseShiftPayloadReport(); if (null === $data || false === is_array($data)) { return $object; } @@ -128,10 +128,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; if ($object->isInitialized('id') && null !== $object->getId()) { @@ -190,7 +187,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShortCloseShiftPayloadReport::class => false]; } diff --git a/src/Normalizer/ShortOrganizationModelNormalizer.php b/src/Normalizer/ShortOrganizationModelNormalizer.php index 1eadff6..51e230f 100644 --- a/src/Normalizer/ShortOrganizationModelNormalizer.php +++ b/src/Normalizer/ShortOrganizationModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortOrganizationModel; + return is_object($data) && $data instanceof ShortOrganizationModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ShortOrganizationModel(); + $object = new ShortOrganizationModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -67,10 +67,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -86,7 +83,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShortOrganizationModel::class => false]; } diff --git a/src/Normalizer/ShortReceiptModelNormalizer.php b/src/Normalizer/ShortReceiptModelNormalizer.php index 6a87072..1f558a1 100644 --- a/src/Normalizer/ShortReceiptModelNormalizer.php +++ b/src/Normalizer/ShortReceiptModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortReceiptModel; + return is_object($data) && $data instanceof ShortReceiptModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ShortReceiptModel(); + $object = new ShortReceiptModel(); if (null === $data || false === \is_array($data)) { return $object; } @@ -207,10 +207,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -324,7 +321,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShortReceiptModel::class => false]; } diff --git a/src/Normalizer/ShortTransactionNormalizer.php b/src/Normalizer/ShortTransactionNormalizer.php index d7efec8..e9e1c04 100644 --- a/src/Normalizer/ShortTransactionNormalizer.php +++ b/src/Normalizer/ShortTransactionNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ShortTransaction; + return is_object($data) && $data instanceof ShortTransaction; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -108,10 +108,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -157,7 +154,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ShortTransaction::class => false]; } diff --git a/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php b/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php index 30d7c8c..24291e2 100644 --- a/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php +++ b/src/Normalizer/SrsoSchemaGoodSchemaGoodModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SrsoSchemaGoodSchemaGoodModel; + return is_object($data) && $data instanceof SrsoSchemaGoodSchemaGoodModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\SrsoSchemaGoodSchemaGoodModel(); + $object = new SrsoSchemaGoodSchemaGoodModel(); if (null === $data || false === is_array($data)) { return $object; } @@ -116,10 +116,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -169,7 +166,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [SrsoSchemaGoodSchemaGoodModel::class => false]; } diff --git a/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php b/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php index e0dcad0..44bfb9c 100644 --- a/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php +++ b/src/Normalizer/SrsoSchemaReceiptSchemaGoodModelNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\SrsoSchemaReceiptSchemaGoodModel; + return is_object($data) && $data instanceof SrsoSchemaReceiptSchemaGoodModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -87,10 +87,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['code'] = $object->getCode(); @@ -124,7 +121,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [SrsoSchemaReceiptSchemaGoodModel::class => false]; } diff --git a/src/Normalizer/TaxModelNormalizer.php b/src/Normalizer/TaxModelNormalizer.php index d96a9b8..17c4f64 100644 --- a/src/Normalizer/TaxModelNormalizer.php +++ b/src/Normalizer/TaxModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\TaxModel; + return is_object($data) && $data instanceof TaxModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -96,10 +96,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -130,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [TaxModel::class => false]; } diff --git a/src/Normalizer/TransactionModelNormalizer.php b/src/Normalizer/TransactionModelNormalizer.php index 557eea8..3a9e029 100644 --- a/src/Normalizer/TransactionModelNormalizer.php +++ b/src/Normalizer/TransactionModelNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\TransactionModel; + return is_object($data) && $data instanceof TransactionModel; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -128,10 +128,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['id'] = $object->getId(); @@ -192,7 +189,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [TransactionModel::class => false]; } diff --git a/src/Normalizer/UpdateTransactionPayloadNormalizer.php b/src/Normalizer/UpdateTransactionPayloadNormalizer.php index c6f64d1..e504c2c 100644 --- a/src/Normalizer/UpdateTransactionPayloadNormalizer.php +++ b/src/Normalizer/UpdateTransactionPayloadNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\UpdateTransactionPayload; + return is_object($data) && $data instanceof UpdateTransactionPayload; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\UpdateTransactionPayload(); + $object = new UpdateTransactionPayload(); if (null === $data || false === is_array($data)) { return $object; } @@ -55,10 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['request_signature'] = $object->getRequestSignature(); @@ -71,7 +68,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [UpdateTransactionPayload::class => false]; } diff --git a/src/Normalizer/ValidationErrorNormalizer.php b/src/Normalizer/ValidationErrorNormalizer.php index ef815fb..f4bd863 100644 --- a/src/Normalizer/ValidationErrorNormalizer.php +++ b/src/Normalizer/ValidationErrorNormalizer.php @@ -27,7 +27,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\ValidationError; + return is_object($data) && $data instanceof ValidationError; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\ValidationError(); + $object = new ValidationError(); if (null === $data || false === is_array($data)) { return $object; } @@ -67,10 +67,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $values = []; @@ -89,7 +86,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [ValidationError::class => false]; } diff --git a/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php b/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php index 56f9aee..d849e05 100644 --- a/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php +++ b/src/Normalizer/WebhookInfoResponseSchemaNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\WebhookInfoResponseSchema; + return is_object($data) && $data instanceof WebhookInfoResponseSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\WebhookInfoResponseSchema(); + $object = new WebhookInfoResponseSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -76,10 +76,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); @@ -103,7 +100,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [WebhookInfoResponseSchema::class => false]; } diff --git a/src/Normalizer/WebhookInfoSchemaNormalizer.php b/src/Normalizer/WebhookInfoSchemaNormalizer.php index 4ac758f..fa75623 100644 --- a/src/Normalizer/WebhookInfoSchemaNormalizer.php +++ b/src/Normalizer/WebhookInfoSchemaNormalizer.php @@ -28,7 +28,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return is_object($data) && $data instanceof \RevoTale\CheckboxUA\Model\WebhookInfoSchema; + return is_object($data) && $data instanceof WebhookInfoSchema; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -39,7 +39,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \RevoTale\CheckboxUA\Model\WebhookInfoSchema(); + $object = new WebhookInfoSchema(); if (null === $data || false === is_array($data)) { return $object; } @@ -72,10 +72,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return $object; } - /** - * @return array|string|int|float|bool|ArrayObject|null - */ - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $data = []; $data['url'] = $object->getUrl(); @@ -98,7 +95,7 @@ public function normalize(mixed $object, ?string $format = null, array $context return $data; } - public function getSupportedTypes(string $format = null): array + public function getSupportedTypes(?string $format = null): array { return [WebhookInfoSchema::class => false]; } diff --git a/src/Runtime/Client/BaseEndpoint.php b/src/Runtime/Client/BaseEndpoint.php index 9fc53f0..9e11218 100644 --- a/src/Runtime/Client/BaseEndpoint.php +++ b/src/Runtime/Client/BaseEndpoint.php @@ -23,7 +23,7 @@ abstract public function getUri(): string; abstract public function getAuthenticationScopes(): array; - abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); protected function getExtraHeaders(): array { diff --git a/src/Runtime/Client/EndpointTrait.php b/src/Runtime/Client/EndpointTrait.php index 6274d09..54221c1 100644 --- a/src/Runtime/Client/EndpointTrait.php +++ b/src/Runtime/Client/EndpointTrait.php @@ -9,7 +9,7 @@ trait EndpointTrait { - abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { diff --git a/src/Runtime/Normalizer/ReferenceNormalizer.php b/src/Runtime/Normalizer/ReferenceNormalizer.php index 56d0043..a5fb9dd 100644 --- a/src/Runtime/Normalizer/ReferenceNormalizer.php +++ b/src/Runtime/Normalizer/ReferenceNormalizer.php @@ -4,15 +4,16 @@ namespace RevoTale\CheckboxUA\Runtime\Normalizer; +use ArrayObject; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; class ReferenceNormalizer implements NormalizerInterface { - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null { $ref = []; - $ref['$ref'] = (string)$object->getReferenceUri(); + $ref['$ref'] = (string) $object->getReferenceUri(); return $ref; } @@ -25,7 +26,7 @@ public function supportsNormalization($data, $format = null, array $context = [] public function getSupportedTypes(?string $format): array { return [ - Reference::class + Reference::class, ]; } }